Skip to main content
QUICK REVIEW

[Paper Review] A Survey of Distributed Message Broker Queues

Vineet John, Xia Liu|arXiv (Cornell University)|Apr 3, 2017
Distributed systems and fault toleranceComputer Science1 references34 citations
TL;DR

This paper surveys modern distributed message brokers, focusing on Apache Kafka and AMQP (via RabbitMQ), comparing their architectures, features, and performance under varied workloads. It finds Kafka excels in high-throughput, low-latency log processing with linear scalability, while AMQP offers stronger reliability and flexible routing at the cost of higher latency, especially under high concurrency.

ABSTRACT

This paper surveys the message brokers that are in vogue today for distributed communication. Their primary goal is to facilitate the construction of decentralized topologies without single points of failure, enabling fault tolerance and high availability. These characteristics make them optimal for usage within distributed architectures. However, there are multiple protocols built to achieve this, and it would be beneficial to have a empirical comparison between their features and performance to determine their real-world applicability. This paper focuses on two popular protocols (Kafka and AMQP) and explores the divergence in their features as well as their performance under varied testing workloads.

Motivation & Objective

  • To analyze and compare the architectural designs and operational characteristics of leading distributed message brokers.
  • To evaluate the real-world performance trade-offs between Kafka and AMQP under different workloads.
  • To identify key differences in reliability, partitioning, fault tolerance, and message delivery semantics.
  • To provide empirical benchmarks for system architects choosing between Kafka and AMQP-based solutions.

Proposed method

  • Benchmarked Kafka and RabbitMQ (an AMQP implementation) using a 5-node testbed with consistent hardware: 12-core CPUs, 16GB RAM, 1Gbps network, and HDD storage.
  • Conducted two types of tests: (1) scaling from 1 to 5 nodes with fixed message load (1M messages, 50B each), and (2) keeping nodes constant while increasing producers/consumers per node.
  • Used a custom Go-based benchmarking tool (Flotilla) to measure throughput and latency across configurations.
  • Evaluated Kafka’s pull-based model and partitioned topic architecture versus AMQP’s exchange-queue model with routing keys.
  • Measured performance under both single and multiple producer/consumer workloads to assess horizontal scaling behavior.
  • Analyzed message persistence, durability, and fault recovery mechanisms in both systems.

Experimental results

Research questions

  • RQ1RQ0: What are the message broker implementations commonly in use today?
  • RQ2RQ1: What are the common requirements for the implementation of message queues?
  • RQ3RQ2: What are the divergent functionalities in the current message queue offerings?
  • RQ4RQ3: How do each of the implementations offer reliability, partitioning and fault tolerance?

Key findings

  • Kafka achieved a 3x reduction in latency when scaling from 1 to 5 nodes under a single producer/consumer workload, with only a 1.06x throughput penalty.
  • Kafka’s throughput remained stable under increasing node count with fixed load, demonstrating strong horizontal scalability for log aggregation workloads.
  • Under high-concurrency workloads with multiple producers/consumers per node, Kafka’s latency increased significantly, indicating performance degradation under high connection density.
  • RabbitMQ (AMQP) showed higher latency than Kafka, especially under high-concurrency conditions, due to its push-based model and complex routing logic.
  • AMQP’s message delivery guarantees (e.g., persistent queues with delivery mode 2) ensured message recovery after restarts, but at the cost of reduced throughput compared to Kafka.
  • Kafka’s design prioritizes throughput and low latency, making it optimal for high-volume log processing, while AMQP’s focus on reliability and flexible routing suits transactional and enterprise workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.