AMQ 7: load balancing policy OFF_WITH_REDISTRIBUTION is not respected by shared durable subscribers
Issue
In an AMQ 7 broker mesh, the load balancing policy OFF_WITH_REDISTRIBUTION can be combined with a redistribution delay, to favour the delivery of messages to locally-connected consumers. This is different from the default ON_DEMAND action of the broker, which is to share messages between consumers, wherever they are connected in the network.
A shared durable subscription on a topic has features in common with a queue -- multiple consumers of the same subscription have messages distributed between them, rather than duplicated.
However, despite the semantic similarities, shared durable subscribers do not respect the OFF_WITH_REDISTRIBUTION policy, and messages are always distributed evenly between connected consumers.
Environment
- Red Hat AMQ
- 7.0 - 7.11
It is likely that later versions will also be affected.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.