ایک dead letter queue (DLQ) وہ جگہ ہے جہاں messages جاتے ہیں جب وہ process نہیں ہو سکتے یا کچھ شرائط پوری کریں (مسترد کیے جائیں، منقضی ہوں، queue بھری ہو)۔ DLQs مسائل والے messages کو ضائع ہونے یا processing کو روکنے سے روکتے ہیں، بعد میں 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
