Creating a geographical cluster replication
Besides ha-mirror
and federation plugins, there is a shovel plugin to increase the application reliably. The shovel is a queue-to-exchange pumper. It's a sort of RabbitMQ client integrated in the broker as a plugin that can consume messages from one or more queues and redirect them to other ones either locally or on remote brokers.
As a client, it's ready for WAN connections and can tolerate network interruptions.
In this recipe, we are going to show you how to use the plugin with an easy configuration. We will pump messages between two queues on different brokers with a WAN connection in between, which can be seen as follows:
Getting ready
You need two RabbitMQ instances; name them rabbitmq@rabbitmqc1
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.