-1

My understanding is that durable subscriptions, when used with ActiveMQ, 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 ActiveMQ 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 ActiveMQ?

mig81
  • 127
  • 11

1 Answers1

1

Some examples

  • Your consumers are not interested in historical data when they come online. Think of a screen displaying time until a bus arrives at the bus station.

  • You need to distribute load among several nodes in a consumer cluster. Then you need to use queues (VirtualTopics) instead, or go for JMS2.0 in ActiveMQ Artemis.

Petter Nordlander
  • 22,053
  • 5
  • 50
  • 84