एक dead letter queue (DLQ) वह जगह है जहाँ messages तब जाते हैं जब वे process नहीं किए जा सकते या कुछ शर्तों को पूरा करते हैं (rejected, expired, queue full)। DLQs problematic messages को खोने या processing को block करने से रोकते हैं, बाद में inspection और handling को सक्षम बनाते हैं।
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
