title: Correct way to set up ActiveMQ network of brokers
body: <p>As explained in <a href="https://stackoverflow.com/questions/64205379/large-delays-in-message-consumption-of-messages-in-activemq">this question</a>, we have a network of brokers consisting of three brokers on different servers.
  The network connectors are configured as follows:</p>
  <pre><code>    &lt;networkConnectors&gt;
        &lt;networkConnector uri=&quot;static:(ssl://broker2:61616,ssl://broker3:61616)&quot; networkTTL=&quot;5&quot;/&gt;
      &lt;/networkConnectors&gt;
  </code></pre>
  <p>We are also considering to add the following parameters to the network connector as we think this might improve the behavior (due to advise on this <a href="https://medium.com/thg-tech-blog/multi-data-centre-message-brokers-with-activemq-28495046370e" rel="nofollow noreferrer">blog post</a>):</p>
  <pre><code>dynamicOnly=&quot;true&quot;
  decreaseNetworkConsumerPriority=&quot;true&quot;
  suppressDuplicateQueueSubscriptions=&quot;true&quot;
  </code></pre>
  <p>However, it is also scary to do as we feel we do not fully understand what is happening right now and so cannot really be sure of the effect these settings will have on the behavior. The official documentation is not really clear on this (neither on this point nor many others by the way).</p>
  <p><strong>UPDATE:</strong></p>
  <p>What we want to achieve is that messages are as much as possible handled on the broker where they first arrive. Clients (as shown in the other post) are connected via Wifi, but have a fallback to 4G. In practice, we see that they regularly switch network and therefore connect to a different broker. We want to limit the traffic over the network connectors.</p>