StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Utilities
  3. Background Jobs
  4. Message Queue
  5. Kafka vs RabbitMQ vs ZeroMQ

Kafka vs RabbitMQ vs ZeroMQ

OverviewDecisionsComparisonAlternatives

Overview

RabbitMQ
RabbitMQ
Stacks21.8K
Followers18.9K
Votes558
GitHub Stars13.2K
Forks4.0K
Kafka
Kafka
Stacks24.2K
Followers22.3K
Votes607
GitHub Stars31.2K
Forks14.8K
ZeroMQ
ZeroMQ
Stacks258
Followers586
Votes71
GitHub Stars10.6K
Forks2.5K

Kafka vs RabbitMQ vs ZeroMQ: What are the differences?

Introduction

Kafka, RabbitMQ, and ZeroMQ are all messaging systems that facilitate communication between different components in a distributed system. While they may serve similar purposes, there are key differences that distinguish them from each other.

  1. Message Brokers: Kafka and RabbitMQ are message brokers, meaning they act as intermediaries between message senders and recipients. They provide features such as message queuing, routing, and reliability. In contrast, ZeroMQ is a messaging library that facilitates direct communication between applications without the need for a centralized broker.

  2. Message Persistence: Kafka is designed for high-throughput, fault-tolerant, and durable messaging. It ensures that all messages are persisted to disk, allowing for message replay and fault recovery. RabbitMQ also supports message persistence but requires additional configuration for persistence to disk. ZeroMQ, on the other hand, does not provide built-in message persistence.

  3. Message Delivery Guarantees: Kafka guarantees at-least-once message delivery semantics, meaning that messages will be delivered to consumers at least once, ensuring no message loss. RabbitMQ provides several delivery modes, including at-most-once, at-least-once, and exactly-once, allowing developers to choose the level of reliability. ZeroMQ does not provide built-in delivery guarantees and requires the application layer to handle reliability mechanisms.

  4. Protocol Support: Kafka uses its own custom TCP-based protocol for communication between clients and brokers. RabbitMQ supports various protocols, including Advanced Message Queuing Protocol (AMQP), Streaming Text Oriented Messaging Protocol (STOMP), and Message Queue Telemetry Transport (MQTT). ZeroMQ uses its proprietary protocol, which is lightweight and optimized for low-latency messaging.

  5. Scalability: Kafka is designed to handle high message throughput and supports distributed data storage and processing. It can scale horizontally by adding more broker nodes to the cluster. RabbitMQ supports clustering as well but has limitations in terms of scalability due to the centralized broker architecture. ZeroMQ is a lightweight library and will require custom implementation for distributed scalability.

  6. Message Routing: Kafka and RabbitMQ both support flexible message routing based on topics or routing keys. Kafka uses a publish-subscribe model where messages are categorized into topics, and consumers subscribe to specific topics. RabbitMQ uses exchanges and queues, allowing for different types of routing patterns such as direct, fanout, and topic. ZeroMQ does not provide built-in message routing and requires developers to handle the routing logic at the application layer.

In summary, Kafka provides durable messaging with at-least-once delivery guarantees and is highly scalable. RabbitMQ offers more flexibility in terms of protocol support and delivery guarantees. ZeroMQ is a lightweight messaging library without a centralized broker, requiring custom implementation for scalability and delivery guarantees.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on RabbitMQ, Kafka, ZeroMQ

Pulkit
Pulkit

Software Engineer

Oct 30, 2020

Needs adviceonDjangoDjangoAmazon SQSAmazon SQSRabbitMQRabbitMQ

Hi! I am creating a scraping system in Django, which involves long running tasks between 1 minute & 1 Day. As I am new to Message Brokers and Task Queues, I need advice on which architecture to use for my system. ( Amazon SQS, RabbitMQ, or Celery). The system should be autoscalable using Kubernetes(K8) based on the number of pending tasks in the queue.

474k views474k
Comments
André
André

Technology Manager at GS1 Portugal - Codipor

Jul 30, 2020

Needs adviceon.NET Core.NET Core

Hello dear developers, our company is starting a new project for a new Web App, and we are currently designing the Architecture (we will be using .NET Core). We want to embark on something new, so we are thinking about migrating from a monolithic perspective to a microservices perspective. We wish to containerize those microservices and make them independent from each other. Is it the best way for microservices to communicate with each other via ESB, or is there a new way of doing this? Maybe complementing with an API Gateway? Can you recommend something else different than the two tools I provided?

We want something good for Cost/Benefit; performance should be high too (but not the primary constraint).

Thank you very much in advance :)

461k views461k
Comments
mediafinger
mediafinger

Feb 13, 2019

ReviewonKafkaKafkaRabbitMQRabbitMQ

The question for which Message Queue to use mentioned "availability, distributed, scalability, and monitoring". I don't think that this excludes many options already. I does not sound like you would take advantage of Kafka's strengths (replayability, based on an even sourcing architecture). You could pick one of the AMQP options.

I would recommend the RabbitMQ message broker, which not only implements the AMQP standard 0.9.1 (it can support 1.x or other protocols as well) but has also several very useful extensions built in. It ticks the boxes you mentioned and on top you will get a very flexible system, that allows you to build the architecture, pick the options and trade-offs that suite your case best.

For more information about RabbitMQ, please have a look at the linked markdown I assembled. The second half explains many configuration options. It also contains links to managed hosting and to libraries (though it is missing Python's - which should be Puka, I assume).

159k views159k
Comments

Detailed Comparison

RabbitMQ
RabbitMQ
Kafka
Kafka
ZeroMQ
ZeroMQ

RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.

Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.

The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialised messaging middleware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more.

Robust messaging for applications;Easy to use;Runs on all major operating systems;Supports a huge number of developer platforms;Open source and commercially supported
Written at LinkedIn in Scala;Used by LinkedIn to offload processing of all page and other views;Defaults to using persistence, uses OS disk cache for hot data (has higher throughput then any of the above having persistence enabled);Supports both on-line as off-line processing
Connect your code in any language, on any platform.;Carries messages across inproc, IPC, TCP, TPIC, multicast.;Smart patterns like pub-sub, push-pull, and router-dealer.;High-speed asynchronous I/O engines, in a tiny library.;Backed by a large and active open source community.;Supports every modern language and platform.;Build any architecture: centralized, distributed, small, or large.;Free software with full commercial support.
Statistics
GitHub Stars
13.2K
GitHub Stars
31.2K
GitHub Stars
10.6K
GitHub Forks
4.0K
GitHub Forks
14.8K
GitHub Forks
2.5K
Stacks
21.8K
Stacks
24.2K
Stacks
258
Followers
18.9K
Followers
22.3K
Followers
586
Votes
558
Votes
607
Votes
71
Pros & Cons
Pros
  • 235
    It's fast and it works with good metrics/monitoring
  • 80
    Ease of configuration
  • 60
    I like the admin interface
  • 52
    Easy to set-up and start with
  • 22
    Durable
Cons
  • 9
    Too complicated cluster/HA config and management
  • 6
    Needs Erlang runtime. Need ops good with Erlang runtime
  • 5
    Configuration must be done first, not by your code
  • 4
    Slow
Pros
  • 126
    High-throughput
  • 119
    Distributed
  • 92
    Scalable
  • 86
    High-Performance
  • 66
    Durable
Cons
  • 32
    Non-Java clients are second-class citizens
  • 29
    Needs Zookeeper
  • 9
    Operational difficulties
  • 5
    Terrible Packaging
Pros
  • 23
    Fast
  • 20
    Lightweight
  • 11
    Transport agnostic
  • 7
    No broker required
  • 4
    Low latency
Cons
  • 5
    No message durability
  • 3
    Not a very reliable system - message delivery wise
  • 1
    M x N problem with M producers and N consumers

What are some alternatives to RabbitMQ, Kafka, ZeroMQ?

Celery

Celery

Celery is an asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.

Amazon SQS

Amazon SQS

Transmit any volume of data, at any level of throughput, without losing messages or requiring other services to be always available. With SQS, you can offload the administrative burden of operating and scaling a highly available messaging cluster, while paying a low price for only what you use.

NSQ

NSQ

NSQ is a realtime distributed messaging platform designed to operate at scale, handling billions of messages per day. It promotes distributed and decentralized topologies without single points of failure, enabling fault tolerance and high availability coupled with a reliable message delivery guarantee. See features & guarantees.

ActiveMQ

ActiveMQ

Apache ActiveMQ is fast, supports many Cross Language Clients and Protocols, comes with easy to use Enterprise Integration Patterns and many advanced features while fully supporting JMS 1.1 and J2EE 1.4. Apache ActiveMQ is released under the Apache 2.0 License.

Apache NiFi

Apache NiFi

An easy to use, powerful, and reliable system to process and distribute data. It supports powerful and scalable directed graphs of data routing, transformation, and system mediation logic.

Gearman

Gearman

Gearman allows you to do work in parallel, to load balance processing, and to call functions between languages. It can be used in a variety of applications, from high-availability web sites to the transport of database replication events.

Memphis

Memphis

Highly scalable and effortless data streaming platform. Made to enable developers and data teams to collaborate and build real-time and streaming apps fast.

IronMQ

IronMQ

An easy-to-use highly available message queuing service. Built for distributed cloud applications with critical messaging needs. Provides on-demand message queuing with advanced features and cloud-optimized performance.

Apache Pulsar

Apache Pulsar

Apache Pulsar is a distributed messaging solution developed and released to open source at Yahoo. Pulsar supports both pub-sub messaging and queuing in a platform designed for performance, scalability, and ease of development and operation.

Confluent

Confluent

It is a data streaming platform based on Apache Kafka: a full-scale streaming platform, capable of not only publish-and-subscribe, but also the storage and processing of data within the stream

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase