javaactivemq-classicdurable-subscription

When are JMS durable subscriptions a bad idea?


My understanding is that JMS durable subscriptions allow the consumer to receive all messages that are published to a topic, say if there was a lost connection and then connectivity is restored.

Having said this, it seems like durable subscriptions can also cause the JMS broker's message buffer to fill up, eventually creating an overhead for the broker.

What are any other common best practices for not using durable subscriptions with JMS?

For reference, I'm using ActiveMQ "Classic."


Solution

  • Some examples