<div dir="ltr">Hi all,<div><br></div><div>i'm new to RabbitMQ/AMQP. I am trying to solve an application level high-availability problem and belive i'm not thinking about things in the right way, I could use some advice!</div><div><br></div><div>Here is what I would like to achieve, I could use some help understanding the RabbitMQ way of doing it.</div><div><br></div><div>1) I have several message producers, only 1 of these is the primary, the remainder as all backups. </div><div>2) The primary is defined as the process that controls a single queue and can post messages to it.</div><div>3) If the primary process fails, I want a backup to take over immediately.</div><div>4) All backups are in a race to get control of the queue (from 2)</div><div>5) Once a backup gains control, it is now the primary.</div><div><br></div><div>Using Rabbit speak, I feel like I need something called an "exclusive producer". </div><div><br></div><div>Do I need to fudge this by introducing a second queue and having all the processes connect to this using the "exclusive consumer" pattern, and then use this to determine who can control the main queue?</div><div><br></div><div>Appreciate any advice</div><div><br></div><div>Cheers</div><div>TM</div><div><br></div><div><br></div><div><br></div></div>