Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Information Provided
-
2.32.0
-
None
-
None
Description
In Artemis, messages expire by their individual message setting. With some variations possible via address settings in the broker configuration.
But unused subscription-queues are never removed, except for the non-durable ones.
Request is to add a idle-timeout for queues from durable subscriptions. The subscription and its queue should then be deleted when there are no subscribers during a given time-period.
I believe ActiveMQ Classic has this via the offlineDurableSubscriberTimeout setting, see also https://activemq.apache.org/components/classic/documentation/manage-durable-subscribers.
This subject was also mentioned a while back in https://stackoverflow.com/questions/56115426/apache-activemq-artemis-durable-subscription-ttl; but, for our use-cases, using only message-expiry is not sufficient. this is because each abandonned durable subscription still stores messages, and is thus using resources.