<div dir="ltr"><div>Hi, <br><br>I'm new to Rabbit, just want to confirm if my understanding of mirror-queues is correct. <br><br></div><div>Here is the scenario:<br></div><div><br>- I set up a mirrored queue, on Node1 (master) and Node2 (slave), <br>
- have a load-balancer LB in front of both, roundrobin<br></div><div>- have my consumer app establish a TCP connection to the LB, which forwards the consumer subscription requests randomly to either Node1 or Node2<br></div>
<div>- under no failure condition, the master Node1 will send messages to all my consumers. <br></div><div>- if master fails, the slave Node2 will be promoted to the new master and start sending the remaining messages to my consumers. <br>
</div><div>- since the consumer TCP connection is to the LB, the consumer wouldn't notice anything (and don't need to reconnect), except for the "normal" out-of-sync and message loss considerations. <br>
<br></div><div>Would this work? <br><br>Thanks, <br>James<br></div></div>