Kafka, RabbitMQ & Queues
Dead letter queues
A dead letter exchange catches messages that are rejected, expired, overflowed or redelivered too often, so failed work is kept for inspection instead of being lost.
What you will be able to do
- Explain which events send a message to a dead letter exchange.
- Decide how to read x-death reasons before replaying dead messages.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kafka, RabbitMQ & Queues
- Min in sync replicasAdvanced · 4 min
The min.insync.replicas setting sets how many in-sync replicas a write with acks=all must reach. Paired with the replication factor, it decides whether one broker…
- Kafka lag metricsAdvanced · 4 min
Consumer lag is the gap between the newest message and the group's committed position on each partition, and it is the first number to read when delivery slows down.
- RabbitMQ exchangesAdvanced · 4 min
In RabbitMQ, publishers send to an exchange, and bindings decide which queues receive a copy, so a successful publish does not prove that any queue got the message.
- Direct routingAdvanced · 4 min
A direct exchange sends each message to queues whose binding key matches the routing key exactly, so a difference in case or spacing silently sends the message nowhere.
- Topic routingAdvanced · 4 min
A topic exchange routes by matching the words of a dotted routing key against patterns, where star matches one word and hash matches zero or more, so word count decides…
- Fanout routingAdvanced · 4 min
A fanout exchange copies every message to every bound queue and ignores the routing key, which suits events many services need in full, but each extra binding adds a…