Explain it simpler
Sometimes a message cannot be delivered or keeps failing. Instead of throwing it away or letting it block everything else, Service Bus moves it to a side shelf called the dead-letter queue. Every queue and every subscription has its own side shelf automatically. Messages land there when they fail too many times, when they get too old (only if you turned that option on), or when your code decides they are broken. Nothing on the shelf gets processed or deleted on its own. Someone has to look at it, fix the cause and send the messages back. It is like a lost-and-found box: items stay there until a person deals with them.
Marcus, the operations lead at Fernhill Pharmacy Group, forwards you a dashboard screenshot with one line: "Why is this number 40 and climbing?" The number is the dead-lettered message count on the prescriptions queue. The main queue looks healthy, the worker is running and no errors reached the help desk. Yet forty refill requests have quietly stepped out of the normal flow. Where exactly are those messages, how did they get there, and how do you get them processed without losing a single one?
Every Service Bus queue and every topic subscription has a secondary subqueue called the dead-letter queue (DLQ). It holds messages that could not be delivered or processed, so they stop blocking or looping in the main queue but are not silently lost. You do not create it and cannot delete it; it always exists alongside its parent entity. Its path is the entity path followed by /$DeadLetterQueue, for example orders/$DeadLetterQueue for a queue or orders/subscriptions/billing/$DeadLetterQueue for a subscription. Note that a topic itself has no DLQ to read from; the dead-letter queues belong to its subscriptions.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 5 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.