SteelReed

Search

Search posts, questions…

Messaging & KafkaQuestion 4 / 21

Middle

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.

YesNoYesNoYesNoNeed replay or streaming?KafkaRouting, priority, delay?RabbitMQVery high throughput?Whatever the teamoperates

3 points to say:

  1. Kafka: durable log, pull, replay, high throughput; RabbitMQ: queue, push, flexible routing, deleted after ack.
  2. Choose by semantics first (replay or routing), then durability/ordering, scale, and finally operations.
  3. 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.