Dead letter queue (DLQ) je fronta, kam se zprávy posílají, když nemohou být zpracovány nebo splňují určité podmínky (odmítnuty, vypršely, fronta plná). DLQ brání ztrátě problematických zpráv nebo jejich blokování zpracování, což umožňuje pozdější kontrolu a zpracování.
Co je dead letter queue
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
