एक dead letter queue (DLQ) हा असा queue आहे जिथे संदेश जातात जेव्हा ते प्रक्रिया केले जाऊ शकत नाहीत किंवा विशिष्ट परिस्थिती पूर्ण होतात (नाकारलेले, मेयादी संपलेले, queue भरलेला). DLQs समस्याग्रस्त संदेश गमवण्यापासून किंवा प्रक्रियाकरण अवरोधित करण्यापासून रोकतात, नंतर तपासणी आणि हाताळणी सक्षम करतात.
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
