Skip to main content
QUICK REVIEW

[Paper Review] A study on Modern Messaging Systems- Kafka, RabbitMQ and NATS Streaming

T Sharvari, Sowmya Nag K|arXiv (Cornell University)|Dec 8, 2019
Peer-to-Peer Network TechnologiesComputer Science11 references24 citations
TL;DR

This paper provides a comparative analysis of three modern messaging systems—Apache Kafka, RabbitMQ, and NATS Streaming—evaluating their architectures, features, and suitability for real-time, scalable, and fault-tolerant distributed applications. It identifies key differences in message persistence, throughput, latency, and deployment patterns to guide system architects in selecting the optimal messaging platform for specific use cases in microservices and big data streaming.

ABSTRACT

Distributed messaging systems form the core of big data streaming, cloud native applications and microservice architecture. With real-time critical applications there is a growing need for well-built messaging platform that is scalable, fault tolerant and has low latency. There are multiple modern messaging systems that have come up in the recent past, all with their own pros and cons. This has become problematic for the industry to decide which messaging system is the most suitable for a specific application. An in-depth study is required to decide which features of a messaging system meet the needs of the application. This survey paper outlines the modern messaging technologies and delves deep on three popular publisher/subscriber systems- Apache Kafka, RabbitMQ and NATS Streaming. The paper provides information about messaging systems, the use cases, similarities and differences of features to facilitate users to make an informed decision and also pave way for future research and development.

Motivation & Objective

  • To evaluate and compare the design, features, and performance characteristics of modern messaging systems in distributed computing environments.
  • To identify the strengths and limitations of Apache Kafka, RabbitMQ, and NATS Streaming in real-time, scalable, and fault-tolerant workloads.
  • To provide a decision framework for selecting the most suitable messaging system based on application-specific requirements such as throughput, latency, and message durability.
  • To highlight architectural differences and feature trade-offs to support informed adoption in microservices and big data streaming systems.
  • To lay the foundation for future research in messaging system optimization and interoperability.

Proposed method

  • Conduct a comparative survey of three prominent publish/subscribe messaging systems: Apache Kafka, RabbitMQ, and NATS Streaming.
  • Analyze system architectures, message persistence models, and support for message ordering and delivery guarantees.
  • Evaluate performance aspects including throughput, latency, and scalability under varying workloads.
  • Compare features such as message retention, clustering, and support for different messaging patterns (e.g., queues, topics, streams).
  • Use a structured framework to map system capabilities to common use cases in cloud-native and microservices architectures.
  • Present a tabular and graphical summary of feature comparisons to enable side-by-side evaluation.

Experimental results

Research questions

  • RQ1How do Kafka, RabbitMQ, and NATS Streaming differ in their underlying architectures and message delivery semantics?
  • RQ2What are the performance trade-offs between throughput, latency, and message durability in these systems?
  • RQ3In what types of workloads is each system most suitable, based on features like message retention and scalability?
  • RQ4How do the systems handle fault tolerance and high availability in production environments?
  • RQ5What are the key architectural decisions that influence system selection for real-time data pipelines and microservices?

Key findings

  • Apache Kafka provides high-throughput, persistent log-based messaging with strong durability and horizontal scalability, making it ideal for event streaming and big data workloads.
  • RabbitMQ offers rich routing capabilities and flexible message patterns through exchanges and queues, suitable for complex message routing in enterprise microservices.
  • NATS Streaming delivers low-latency, lightweight messaging with simple APIs, ideal for cloud-native and containerized environments requiring minimal resource overhead.
  • Kafka excels in message retention and replayability due to its log-based storage, while RabbitMQ supports more advanced message routing and filtering.
  • NATS Streaming provides lower latency and simpler deployment than Kafka and RabbitMQ, but with fewer advanced persistence and replication features.
  • The choice among the three systems depends heavily on workload characteristics: Kafka for high-volume, durable streaming; RabbitMQ for complex routing; NATS for low-latency, lightweight scenarios.

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.