Dead Letter Queue Max Size and behavior when reach the throttling thresholds?

Jorge Ramirez Duran 0 Reputation points
2023-08-14T13:25:39.1866667+00:00

I'm needing to gather more technical info regarding the dead-letter queue, unfortunatelly I can not find online things like its maximum size or what is the behavior when it reach the max allowed quota (whatever it is)? messages got lost? where will they go?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
703 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,464 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,276 Reputation points
    2023-08-14T14:54:00.1966667+00:00

    Hi Jorge Ramirez Duran Thanks for reaching out. There is no separate size limit for the dead letter queue. The overall size value for the queue or topic applies. So, the size is calculated bases on sum of active, scheduled, deferred and deadlettered messages.

    If the dead-letter queue is full and a message cannot be delivered to any receiver, or if a message couldn't be processed and is moved to the dead-letter queue, the message will not be lost rather the incoming messages will be throttled. It's important to monitor the size of the dead-letter queue and take corrective action if it approaches its maximum size.

    To avoid such conditions, you can configure Service Bus to automatically forward dead-lettered messages to another queue. This can be useful for implementing a retry mechanism or for further processing of dead-lettered messages usinghttps://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.management.queuedescription.forwarddeadletteredmessagesto?view=azure-dotnet#Microsoft_Azure_ServiceBus_Management_QueueDescription_ForwardDeadLetteredMessagesTo

    You can also use Azure Monitor to monitor the size of the dead-letter queue and set up alerts to notify you when the queue reaches a certain size. This can help you take proactive measures to prevent the queue from reaching its maximum size and losing messages.

    https://learn.microsoft.com/en-us/azure/service-bus-messaging/monitor-service-bus-reference#message-metrics

    I hope this information helps. Let me know if you have any other questions.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.