How do Kafka and RabbitMQ differ fundamentally, and what criteria do you use to choose a message broker?
Short answer
Kafka is a distributed log: it keeps messages by retention, consumers manage their own offsets and can re-read. RabbitMQ is a smart message queue: the broker routes through exchanges, pushes to consumers and deletes after ack.
3 points to say:
- Kafka: durable log, pull, replay, high throughput; RabbitMQ: queue, push, flexible routing, deleted after ack.
- Choose by semantics first (replay or routing), then durability/ordering, scale, and finally operations.
- You can use both for two kinds of work; easy to remember: RabbitMQ is a mailbox, Kafka is a ledger.
Keep reading the deep dive
Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.