RabbitMQ queue sharding and HA

Viewed 103

I wonder if it possible to have a cluster with HA and sharding queues on the same machine?

I'll explain by example:

Machine1: 
    Queues: 
        Queue_001
        Queue_002
    HA: 
        Copy of the queues of machine2 (003 and 004)
        
Machine2: 
    Queues: 
        Queue_003
        Queue_004
    HA: 
        Copy of the queues of machine1 (001 and 002)

As you can see, if you take one of those servers, the other server has all the needed information in order to answer requests.

Basically, the advantage of architecture like this is:

  1. HA
  2. Performance. Since we are using both machines to serve data. In contrast to a situation that the replica is just for backup.

This architecture is possible with RabbitMQ?

0 Answers
Related