Dead Letter Channel Pattern
Learn Dead Letter Channel Pattern (Core Messaging Patterns, Integration & Messaging Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is a Dead Letter Channel? A Dead Letter Channel (DLC) , or dead letter queue (DLQ), is a separate destination that a broker routes a message to after it has repeatedly failed to be processed successfully (or expired, or was rejected). Instead of retrying forever or silently dropping the message, it gets "parked" somewhere a human or a separate process can inspect it. Why You Need One • Without a DLQ, a "poison message" (one that always causes the consumer to throw) can get redelivered endlessly, wasting resources and possibly blocking the rest of the queue. • With a DLQ, that message is...