[zeromq-dev] sending messages to a specific peer

Oliver Smith oliver at kfs.org
Tue Dec 21 19:49:06 CET 2010


mike castleman said the following on 12/20/2010 1:50 PM:
> One solution which may work is to use XREP/XREQ sockets: the client sets
> its identity on connect and then proceeds to ignore the usual REP/REQ
> pattern in favor of just waiting for messages from the server. A minimal
> implementation of this pattern (in Ruby) is at
> <https://gist.github.com/748886>. This seems to work, but it also seems
> like an abuse of XREP/XREQ.

My understanding was that XREP/XREQ are basically abuse-friendly 
variants of REP/REQ, for exactly this kind of use case :)

- Oliver




More information about the zeromq-dev mailing list