Antrian surat mati (DLQ) adalah tempat pesan masuk ketika mereka tidak dapat diproses atau memenuhi kondisi tertentu (ditolak, kadaluarsa, antrian penuh). DLQ mencegah pesan bermasalah hilang atau memblokir pemrosesan, memungkinkan inspeksi dan penanganan kemudian.
Apa itu antrian surat mati
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
