[zeromq-dev] Introduction and Best Practices Question

Martin Sustrik sustrik at 250bpm.com
Thu Feb 3 11:19:27 CET 2011

Hi Adam,

See few comments inlined.

> 2) Asynchronous “requests”, i.e. broadcasting that some non-blocking
> task needs to be completed and then immediately continuing to process
> work units

Broadcasting work? That would mean the same work is done multiple times. 
What's that good for?

> I read that ZMQ 2.1
> allows for sharing of sockets between threads, so I was thinking I
> would pass the XREP socket into the thread start context for each
> service that provides responses, and those services could in turn
> reply via that socket.

0MQ does *not* allow for sharing sockets between thrads. 2.1 allows to 
migrate a socket from one thread to another one, but you can't access it 
from two threads in parallel.


More information about the zeromq-dev mailing list