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. Application & Data
  3. In-Memory Databases
  4. In Memory Databases
  5. Kafka vs RabbitMQ vs Redis

Kafka vs RabbitMQ vs Redis

OverviewDecisionsComparisonAlternatives

Overview

Redis
Redis
Stacks61.9K
Followers46.5K
Votes3.9K
GitHub Stars42
Forks6
RabbitMQ
RabbitMQ
Stacks21.8K
Followers18.9K
Votes558
GitHub Stars13.2K
Forks4.0K
Kafka
Kafka
Stacks24.2K
Followers22.3K
Votes607
GitHub Stars31.2K
Forks14.8K

Kafka vs RabbitMQ vs Redis: What are the differences?

Introduction

This Markdown code provides a comparison between Kafka, RabbitMQ, and Redis, highlighting their key differences in a concise manner.

  1. In terms of messaging model: Kafka uses a publish-subscribe model, where producers write messages to topics and consumers subscribe to these topics to receive messages. RabbitMQ uses a traditional message queue model, where producers send messages to queues and consumers consume messages from these queues. Redis, on the other hand, offers pub/sub functionality similar to Kafka but lacks advanced features like message persistence and fault-tolerance.

  2. In terms of scalability: Kafka is highly scalable and can handle large amounts of data and high message throughput. It is designed for high performance and low latency, making it suitable for use cases that require real-time processing. RabbitMQ is also scalable but to a lesser degree compared to Kafka. Redis, while capable of handling high loads, is primarily used for caching and small-scale pub/sub scenarios.

  3. In terms of message persistence: Kafka is designed for durability and provides long-term message retention by persisting messages to disks. RabbitMQ offers message persistence as well but it provides shorter-term storage options and relies on disk I/O for durability. Redis, however, does not offer built-in message persistence and relies on the client to handle it.

  4. In terms of message ordering: Kafka guarantees the order of messages within a partition, ensuring that messages are delivered in the order they were produced. RabbitMQ guarantees ordering within a single queue but not across multiple queues. Redis does not guarantee message ordering as it focuses more on performance and low latency.

  5. In terms of message delivery semantics: Kafka provides at-least-once delivery semantics, where messages are guaranteed to be delivered to consumers but duplicates may occur. RabbitMQ offers configurable delivery semantics, such as at-most-once, at-least-once, and exactly-once, depending on the configuration. Redis, however, does not provide built-in support for delivery semantics and it is up to the client to handle it.

  6. In terms of message persistence and fault-tolerance: Kafka is designed to be highly fault-tolerant with built-in replication and distributed commit logs. It provides guarantees for message durability and fault tolerance in case of node failures. RabbitMQ offers basic fault-tolerance capabilities through clustering and mirroring, but it lacks the same level of fault-tolerance as Kafka. Redis, on the other hand, does not provide built-in fault-tolerance mechanisms and is primarily used for caching purposes.

In summary, Kafka excels in handling large amounts of data and high message throughput with strong durability and fault-tolerance capabilities. RabbitMQ offers good scalability and flexible delivery semantics. Redis is suitable for caching and small-scale pub/sub scenarios, but lacks advanced features like message persistence and fault-tolerance.

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 Redis, RabbitMQ, Kafka

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
Meili
Meili

Software engineer at Digital Science

Sep 24, 2020

Needs adviceonZeroMQZeroMQRabbitMQRabbitMQAmazon SQSAmazon SQS

Hi, we are in a ZMQ set up in a push/pull pattern, and we currently start to have more traffic and cases that the service is unavailable or stuck. We want to:

  • Not loose messages in services outages
  • Safely restart service without losing messages (@{ZeroMQ}|tool:1064| seems to need to close the socket in the receiver before restart manually)

Do you have experience with this setup with ZeroMQ? Would you suggest RabbitMQ or Amazon SQS (we are in AWS setup) instead? Something else?

Thank you for your time

500k views500k
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

Detailed Comparison

Redis
Redis
RabbitMQ
RabbitMQ
Kafka
Kafka

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.

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.

-
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
Statistics
GitHub Stars
42
GitHub Stars
13.2K
GitHub Stars
31.2K
GitHub Forks
6
GitHub Forks
4.0K
GitHub Forks
14.8K
Stacks
61.9K
Stacks
21.8K
Stacks
24.2K
Followers
46.5K
Followers
18.9K
Followers
22.3K
Votes
3.9K
Votes
558
Votes
607
Pros & Cons
Pros
  • 888
    Performance
  • 542
    Super fast
  • 514
    Ease of use
  • 444
    In-memory cache
  • 324
    Advanced key-value cache
Cons
  • 15
    Cannot query objects directly
  • 3
    No secondary indexes for non-numeric data types
  • 1
    No WAL
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

What are some alternatives to Redis, RabbitMQ, Kafka?

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.

ZeroMQ

ZeroMQ

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.

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.

Hazelcast

Hazelcast

With its various distributed data structures, distributed caching capabilities, elastic nature, memcache support, integration with Spring and Hibernate and more importantly with so many happy users, Hazelcast is feature-rich, enterprise-ready and developer-friendly in-memory data grid solution.

Aerospike

Aerospike

Aerospike is an open-source, modern database built from the ground up to push the limits of flash storage, processors and networks. It was designed to operate with predictable low latency at high throughput with uncompromising reliability – both high availability and ACID guarantees.

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.

MemSQL

MemSQL

MemSQL converges transactions and analytics for sub-second data processing and reporting. Real-time businesses can build robust applications on a simple and scalable infrastructure that complements and extends existing data pipelines.

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