Do messages in dead letter queues in Azure Service Bus expire?

后端 未结 2 1171
旧巷少年郎
旧巷少年郎 2021-02-09 01:13

Do messages in dead letter queues in Azure Service Bus expire?

Some explanation

I have these queue settings:

var queueDescription = new QueueDe         


        
2条回答
  •  梦谈多话
    2021-02-09 02:08

    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.

提交回复
热议问题