Literadix
Literadix

Reputation: 1407

Compression for ActiveMQ to ActiveMQ

I do have two ActiveMQ brokers connected and do forward messages from broker one to broker two automatically. This is done by following configuration:

<networkConnectors>
    <networkConnector name="linkToRemote" uri="static(tcp://172.19.63.3:61616)?jms.useCompression=true" staticBridge="true"> 
        <staticallyIncludedDestinations>
           <queue physicalName="xyz.queue"/>
        </staticallyIncludedDestinations> 
    </networkConnector>
</networkConnectors>

Everything except the compression is working fine. My messages are 180KB in size. I have seen that the traffic is not compressed at all. Is jms.useCompression=true not functional? Has someone any alternatives to compress the traffic between two brokers? What about ssh tunnels if compression in ActiveMQ this is not working? My ActiveMQ version is 5.14.13.

Upvotes: 2

Views: 1147

Answers (1)

Literadix
Literadix

Reputation: 1407

I am now using autossh and compression. This combination works great. Active MQ does not compress the messages well if we use many small messages as it does not share a common compression dictionary.

Upvotes: 2

Related Questions