Kafka vs Rabbit: Who’s Who and How to Live with Them
summary
Comparison of message brokers RabbitMQ and Kafka, explaining differences between queues, topics and streams, their architectures and intended use cases, plus implementation nuances. Deep dive into Kafka internals: topics, partitions, how many are needed and how to manage them. Presentation of an in-house library for broker integration that provides asynchronous message processing, batch handling, delayed events, retry/error handling, reuse of consumers/producers to save threads, and input shaping, with reasons for not using Spring and implementation details for Kafka.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:36Message queues vs event streams
- 8:10RabbitMQ vs Kafka differences
- 16:38Choosing RabbitMQ or Kafka
- 19:35Kafka architecture
- 24:15Kafka partitions and offsets
- 27:48Kafka not a broker
- 28:54Custom Kafka library
- 33:37Library design goals
- 38:00Consumer details
- 41:34Error handling and retries
- 45:14Delayed messages
- 47:02Configuration and runtime
- 49:51Custom abstraction benefits
- 52:30Q&A
