-
Book Overview & Buying
-
Table Of Contents
RabbitMQ Cookbook
By :
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:

The aim is to implement a shovel capable of draining messages from a cluster using its high-availability properties.
You need three RabbitMQ nodes.
You should have two nodes on the same LAN, and the third node eventually should be outside the network. We will name the nodes rabbit@rabbitmqc1, rabbit@rabbitmqc2, and rabbit@rabbitmqShovel as follows:
Create a cluster using rabbit@rabbitmqc1 and rabbit@rabbitmqc2, as seen in the Creating a Simple Cluster recipe in Chapter 6, Developing Scalable Applications. We will refer to the cluster as Cluster1.
In Cluster1, create a topic exchange on the cluster...
Change the font size
Change margin width
Change background colour