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

Combining high-availability technologies together

RabbitMQ has three different ways to distribute messages among brokers:

  • Cluster queue mirroring
  • Federation
  • Shovel

In this recipe we will show you how to combine cluster, high-availability queue mirroring, and shovel to transfer messages across the WAN from an ha-cluster to a single RabbitMQ node, as shown in the following diagram:

Combining high-availability technologies together

The aim is to implement a shovel capable of draining messages from a cluster using its high-availability properties.

Getting ready

You need three RabbitMQ nodes.

How to do it…

You should have two nodes on the same LAN, and the third node eventually should be outside the network. ...

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