Kafka, RabbitMQ & Queues
Retry delay queues
A retry delay queue uses a TTL and a dead letter exchange to hold a failed message for a fixed wait, then return it to the work queue, so the consumer stays free.
What you will be able to do
- Explain how a TTL and a dead letter exchange produce a fixed retry delay.
- Decide how many delay queues a retry schedule needs and how to route them.
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
- Prefetch tuningAdvanced · 4 min
Prefetch sets how many unacknowledged messages each consumer may hold, where a large window favors throughput for quick uniform work and a small window spreads slow…
- Poison messagesAdvanced · 4 min
A poison message fails on every attempt, so a requeue loop turns one bad message into a blocked queue, and permanent errors should be rejected while a delivery limit…
- BackpressureAdvanced · 4 min
Backpressure slows publishers when queues cannot keep up, and a memory or disk alarm blocks every publisher on the node, so one burst can stall services that have…
- Outbox patternAdvanced · 4 min
The outbox pattern writes an event row in the same database transaction as the business change and relays it to the broker later, which closes the gap where a crash or…
- RabbitMQ exchanges: operational verificationAdvanced · 4 min
Verification compares the live exchanges, queues and bindings with the intended design and then checks alarms, which catches a deploy that reported success while one…