BeginnerCore Concepts
What is the difference between Kafka and RabbitMQ?
Reference answer
Kafka is a distributed log with long-term retention and replay capability; RabbitMQ is a traditional message broker with routing logic. Key differences: Kafka retains messages after consumption (RabbitMQ deletes them). Kafka supports replay and time-travel; RabbitMQ does not. Kafka excels at high-throughput streaming; RabbitMQ excels at complex routing (exchanges, bindings). Kafka consumers pull messages; RabbitMQ pushes. Kafka is better for event sourcing, streaming analytics, audit logs. RabbitMQ is better for task queues and complex routing.
Expected key concepts: distributed log, retention, replay, routing, exchanges, pull, push, event sourcing, streaming, task queues