Do messages in dead letter queues in Azure Service Bus expire?
I have these queue settings:
var queueDescription = new QueueDe
After doing some research I stumbled over a fact I missed completely:
Messages can expire even when dead lettering is disabled.
When messages expire while dead lettering is disabled (which is the default), they'll just get deleted.
So, Microsoft's reasoning for not auto-deleting messages from the dead letter queue is probably:
If you're enabling dead lettering, you explicitly want expired message not to be thrown away but stored somewhere else (the dead letter queue) so that you can review them.