How to implement an active & standby queue job-processing system in JeroMQ?
<p>Using ZeroMQ <code>.Context</code> and <code>.Socket</code> instances, I am able to push/pull messages<br> 
for example below my code for a Queue like setup:</p>

<pre><code> ZMQ.Context context = ZMQ.context(1);

 //  Socket to send messages on
 ZMQ.Socket sender = context.socket(ZMQ.PUSH);
 sender.bind("tcp://*:5557");

 // Send messages
 sender.send("0", 0);

 ZMQ.Socket receiver = context.socket(ZMQ.PULL);
 receiver.connect("tcp://localhost:5557");

 // receive messages
 String string = new String(receiver.recv(0)).trim();
</code></pre>

<hr>

<h2><strong>My questions are</strong>:</h2>

<p><strong>Q1: How to implement an active / standby mode in queues?</strong></p>

<p>I mean there will be 2 queues, created for one host and port, if one queue ( the active ) fails, another ( i.e. the standby ) queue, will be started immediately to listen/pull messages.</p>

<p>Any example or guidance to implement it, will be more helpful.</p>

<p><strong>Q2: Is there any built-in Class to do this type of task?</strong></p>