طابور الرسائل المرفوضة (DLQ) هو المكان الذي تذهب إليه الرسائل عندما لا يمكن معالجتها أو تستوفي شروطًا معينة (مرفوضة، منتهية الصلاحية، الطابور ممتلئ). تمنع طوابير الرسائل المرفوضة فقدان الرسائل الإشكالية أو حجب المعالجة، مما يتيح الفحص والمعالجة لاحقًا.
ما طابور الرسائل المرفوضة
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
