RabbitMQ & AMQP (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What are the differences between RabbitMQ, Apache Kafka, and Redis Pub/Sub?
junior LevelRabbitMQApache KafkaMicroservices
In Simple Words:
| Feature | RabbitMQ | Apache Kafka | Redis Pub/Sub |
|---|---|---|---|
| Paradigm | Smart Broker / Dumb Consumer | Dumb Broker / Smart Consumer | In-Memory Ephemeral Pub/Sub |
| Storage Model | Queues (Messages deleted after ACK) | Append-Only Log (Immutable, retained) | RAM buffer (Discarded if no listener) |
| Consumer Tracking | Broker tracks ACK per consumer | Consumer tracks own offset | No tracking (Fire-and-forget) |
| Routing Flexibility | Complex (Direct, Topic, Headers, DLQ) | Key-based partition hashing | Simple channel pattern matching |
| Best Used For | Transactional workflows, RPC, task queues | Event streaming, analytics, CDC, metrics | Real-time chat, live UI notifications |