In the Mirroring queues recipe, we have seen how to mirror a queue across all the nodes in the cluster. Replicating messages on more than two nodes improves the system availability minimally, but if the cluster grows because of the higher load, it will negatively impact the application's performance. In this recipe we'll show you how to distribute each queue to a pair of nodes, in order to have two copies for each queue as follows:
In this way, each queue has one master and one slave.
You need a RabbitMQ cluster with mirror policies (refer to the Mirroring queues recipe).
In this recipe we have used ...