-
Book Overview & Buying
-
Table Of Contents
RabbitMQ Cookbook
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 distribution toward the nodes of the cluster is performed in parallel, so the overhead does not grow linearly with the number of nodes. On the other side, the replication is usually limited to two or three replicas at the most, as we saw in Chapter...
Change the font size
Change margin width
Change background colour