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.
You need Java 1.7 or higher and Apache Maven.
You can use the source code from the Improving bandwidth recipe, then you have to create a RabbitMQ cluster with two nodes.
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.
That's not as bad as it might seem. On one side, the ...