Which bi-directional ZeroMQ pattern should I use for multiple clients connecting to a single server?
<p>I have multiple ( 1000s ) of clients connecting to a single server and sending some log data.</p>

<p>The server analyses the data and responds, if necessary.</p>

<p><code>PUB</code>/<code>SUB</code> is one directional (monitor example ).<br>
<code>REQ</code>/<code>REP</code> cannot identify the peer and reply specifically to a peer ( it is more for ACK and such only ).</p>

<p>I need to register these clients, identify them and be able to respond after analysis of their logs.</p>

<p>With sockets, I have the client sockets, after accept and I can respond using that socket and the clients can receive on the same socket that I connected to.</p>

<p>I am not finding such a thing in ZeroMQ in my first week of 0mq.</p>

<p><code>ROUTER</code> socket can print peer's id, but how do I reply to that peer using that id ?</p>

<p>Is there a better way to deal with this?</p>