Video in progress

Your organization needs to pick a standard among Kafka, RabbitMQ and cloud queues (like SQS). What criteria do you use to decide?

First I determine which messaging model is needed: a replayable event log (Kafka) or a work queue where each task is processed once (RabbitMQ, SQS). Then operational load, team experience and volume. Often I come out not with one standard but with two clear areas of use.

📖 Answer

The main difference is the data model.

Kafka is an immutable, partitioned log. A message stays after it's been read, and each consumer group has its own offset. The same event is read by 5 different services, and a new service can read the history from the beginning. There's ordering within a partition. The volume can be very large. But "retry one message with a delay", priorities, and message-level routing aren't natural.

RabbitMQ: the broker routes messages (exchange, routing key), and a message is removed when the consumer acknowledges it. Handy for work queues, RPC style, priority queues and complex routing. It's not meant for long retention and replay (even if streams were added, that's not its main strength).

Managed cloud queues: almost zero operational load and automatic scaling. They have ordering and throughput limits, and you get tied to the cloud.

The criteria table, as I usually fill it in:

Question Kafka Rabbit Cloud queue
Do several services read the event? ✓ natural with a fan-out exchange with an extra service
Replaying history ✓ ✗ ✗
Separate retry/delay per message manual ✓ ✓
Who runs it needs a platform team moderate the provider

The organization-level decision often comes out like this: domain events and CDC go on Kafka (run by one platform team); background tasks inside a service use a managed queue or Rabbit. Adding a third technology requires an ADR and a concrete reason.

The most expensive mistake is picking a technology by fashion and then forcing it into a different model: using Kafka as a work queue and building "delayed retry" for every message by hand.