-
Book Overview & Buying
-
Table Of Contents
RabbitMQ Cookbook
By :
RabbitMQ clusters don't mirror queues by default. The queues are stored in the broker nodes connected to the clients that created them. Whenever such a node fails, all the queues and the messages stored within it aren't available.
If you have defined the queues as durable and the messages as persistent, it's possible to restore the node without losing data but this is not sufficient.
In fact, designing a highly available application can't be acceptable. There are many cases where the application must be able to survive the death of one component without interruption.
The ha-policies help to solve this problem. In this recipe, we will show you how to mirror a queue across all the nodes in the cluster.
You need a RabbitMQ cluster with three nodes.
In order to configure a mirror queue, there are two ways that can be used; that is, it can be configured using rabbitmqctl or using the web management plugin (or its API). We will show both the ways in the following...
Change the font size
Change margin width
Change background colour