O'Reilly logo

RabbitMQ Cookbook by Sigismondo Boschi, Gabriele Santomaggio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required