Skip to content
skillbld
Day 12 of 14 35 minRabbitMQDead lettersOutbox

Compare Kafka with RabbitMQ and learn when to choose each. Then learn three patterns every Kafka system needs - retries with a dead-letter topic, the outbox pattern for reliable publishing, and choosing what to put in an event.

By the end of today you can

  • Explain how RabbitMQ's exchanges, queues and acknowledgements work
  • Choose between Kafka and RabbitMQ for a given job
  • Handle failing messages with retries and a dead-letter topic
  • Explain the dual-write problem and solve it with the outbox pattern
  • Choose between notification events and events that carry state

What's inside

  • 5 sections
  • 4 diagrams and mind maps
  • 3 code examples you can run
  • 5-question quiz
  1. 1How RabbitMQ works
  2. 2Kafka or RabbitMQ?
  3. 3Pattern 1: retries and a dead-letter topic
  4. 4Pattern 2: the outbox
  5. 5Pattern 3: what to put in an event

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 12: Kafka vs RabbitMQ & Patterns · Apache Kafka · SkillBld