Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4688

add idle subscription removal after timeout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 2.32.0
    • None
    • Broker
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            erwindon Erwin Dondorp
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: