Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When an exchange receives a message that it needs to route, currently it will deliver it to all queues that have matching bindings. It may be useful to be able to load balance the routing of messages across a group of queues, instead of delivering to all of them. For example, if you have one exchange and 3 queues: q1, q2, q3. You could create bindings like this:
qpid-config bind amq.topic q1 "usa.#" qpid.binding.load-balanced=1
qpid-config bind amq.topic q2 "usa.#" qpid.binding.load-balanced=1
qpid-config bind amq.topic q3 "usa.#" qpid.binding.load-balanced=1
When amq.topic receives a message that matches usa.#, it would try to round-robin the delivery of messages to q1, q2, and q3, instead of delivering a copy of each message to each queue.