skip to Main Content

According to Microsoft Docs:

Auto-delete on idle enables you to specify an idle interval after which a queue or topic subscription is automatically deleted. The interval is reset when there is traffic on the entity. The minimum duration is 5 minutes.

I also understand, that this is not the same as Message Time to Live, because the whole queue or topic subscription is deleted, not a single message.

Question: What are some real life examples and use cases where Auto-delete on idle is useful?

2

Answers


  1. Chosen as BEST ANSWER

    In Automated Testing

    If your project is using Automated Tests, which are scheduled every week or every release, you can create a queue programmatically before the test will start. In such case, you can enable Auto-delete on idle feature, so the testing queue will be deleted after all tests will end.


  2. You can create queue’s or topics through the SDK.

    When you want to process a batch of items, you could create a queue programmatically for this batch. This has the advantage that for example all dlq items will remain separated from other batches.
    After a the batch has been processed, the Auto-Delete will clean up the queue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search