Eine Dead Letter Queue (DLQ) ist der Ort, an den Nachrichten gehen, wenn sie nicht verarbeitet werden können oder bestimmte Bedingungen erfüllen (abgelehnt, abgelaufen, Warteschlange voll). DLQs verhindern, dass problematische Nachrichten verloren gehen oder die Verarbeitung blockieren, und ermöglichen eine spätere Überprüfung und Verarbeitung.
Was eine Dead Letter Queue ist
DEAD LETTER QUEUE → a queue that receives messages that couldn't be delivered/processed
normally:
→ messages are "dead-lettered" (routed to the DLQ) when they:
- are REJECTED/nacked (consumer can't process them) without requeue
- EXPIRE (message TTL exceeded)
- exceed the queue's MAX LENGTH (overflow)
→ the DLQ collects these for inspection/handling instead of losing them
→ a "holding area" for problematic messages
