Why queue of (auto-delete=true) doesn't disappear automatically after no consumer?

StackOverflow https://stackoverflow.com/questions/23167091

  •  06-07-2023
  •  | 
  •  

Вопрос

The rabbitmq version is 3.1.5 Queue parameter is auto-deleted, exclusive owner is none, consumer is 0 and it is idle since yesterday.

From the web manager, I found it was still exist and waste resource.

My question is is auto-deleted mean the queue will be deleted after it is no consumer? If so, how long it will exist after no consumer?

Это было полезно?

Решение

Not necessarily,

As you can read here:

If the queue never has consumers it will not autodelete (otherwise it would autodelete as soon as you created it).

Ayway, if you want be sure to delete your queue you can also use QueueTTL

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top