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. ...

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.