Synchronizing queues

As we have seen in the Mirroring queues recipe, when a mirror is configured, the messages are copied across the cluster.

However, a new node can be added to the cluster at any time and can start to host mirrored queues that already contain messages. How does the cluster behave with respect to the stored messages?

Let's suppose that we have a typical scenario with a standalone node that has some messages stored in one of its queues as follows:

Synchronizing queues

Now, if we add a node to the cluster and properly configure the ha-policies, the queue of the first node gets mirrored and subsequent messages start to get replicated on the newly added node, ...

Get RabbitMQ Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.