Using different distribution tools

When the application needs performance, you have to choose the right distribution tool. In this example, we will show the differences between publishing a message between a mirrored queue and non-mirrored one.

Getting ready

You need Java 1.7 or higher and Apache Maven.

How to do it…

You can use the source code from the Improving bandwidth recipe, then you have to create a RabbitMQ cluster with two nodes.

How it works…

A cluster using HA mirrored queues is slower than a single broker. Higher the number of mirroring servers, slower the application will be because the producer can send more messages only after the message being sent is stored to all the mirrors.

Note

That's not as bad as it might seem. On one side, the ...

Get RabbitMQ Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.