Red Hat AMQ 6
As of February 2025, Red Hat is no longer supporting Red Hat AMQ 6. If you are using AMQ 6, please upgrade: Migrating to AMQ 7.Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 9. Load Balancing
Abstract
9.1. Balancing Consumer Load Copier lienLien copié sur presse-papiers!
Abstract
Overview Copier lienLien copié sur presse-papiers!
Default load behavior Copier lienLien copié sur presse-papiers!
Figure 9.1. Message Flow when Conduit Subscriptions Enabled
TEST.FOO
queue. Producer, P, connects to Broker A and sends 12 messages to the TEST.FOO
queue. By default conduit subscriptions are enabled and Broker A sees only a single subscription from Broker B and a single subscription from consumer C1. So, Broker A sends messages alternately to C1 and B. Assuming that C1 and B process messages at the same speed, A sends a total of 6 messages to C1 and 6 messages to B.
Disabling conduit subscriptions Copier lienLien copié sur presse-papiers!
networkConnector
element's conduitSubscriptions
to false
. Example 9.1, “Disabling Conduit Subscriptions” shows configuration for a network connector with conduit subscriptions disabled.
Example 9.1. Disabling Conduit Subscriptions
Balanced load behavior Copier lienLien copié sur presse-papiers!
Figure 9.2. Message Flow when Conduit Subscriptions Disabled
TEST.FOO
queue. Producer, P, connects to Broker A and sends 12 messages to the TEST.FOO
queue. With conduit subscriptions disabled, Broker A sees both of the subscriptions on Broker B and a single subscription from consumer C1. Broker A sends messages alternately to each of the subscriptions. Assuming that all of the consumers process messages at equal speeds, C1 receives 4 messages and Broker B receives 8 messages.
Separate connectors for topics and queues Copier lienLien copié sur presse-papiers!
conduitSubscriptions
attribute applies simultaneously to queues and topics, you cannot configure this using a single network connector. It is possible to configure topics and queues differently by using multiple network connectors: one for queues and another for topics.
queuesOnly
network connector, which has conduit subscriptions disabled, is equipped with a filter that transmits only queue messages. The topicsOnly
network connector, which has conduit subscriptions enabled, is equipped with a filter that transmits only topic messages.
Example 9.2. Separate Configuration of Topics and Queues