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

后端 未结 2 1169
旧巷少年郎
旧巷少年郎 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 01:58

    Sebastian your observation is correct, in that messages once placed in the DeadLetter sub-queue never expire. They will be available there forever until removed explicitly from the DeadLetter sub-queue. In the above error regarding the tooling/api it could be a refresh issue? The call to GetQueueAsync() needs to be made after the messages have been dead-lettered which is not a deterministic time, say if you had a queue with a thousand messages that were expired but that Queue was not being used (send/receive operations) then the count may still return as Active until some operations are performed.

提交回复
热议问题