[zeromq-dev] help/advice for using XREP pattern when running many FSM/co-routine actors in a single thread.

Steven McCoy steven.mccoy at miru.hk
Sun Sep 25 18:55:43 CEST 2011

On 25 September 2011 11:44, Chuck Remes <cremes.devlist at mac.com> wrote:

> If you have one 0mq socket mapping messages to multiple FSMs, then the
> zmq_poll() trick described above isn't appropriate since it would block
> reception for messages to all other FSMs on that socket. In this case you
> would need another queue to push the message onto. When the FSM completes,
> it would check this queue for more work.
Such as creating additional ITC 0mq sockets to queue up business logic

It does make me wonder how zmq_poll is implemented and whether there should
be a zmq_epoll that can store a user pointer in addition to remove the
requirement for poll set iteration.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110925/1a1fcbb4/attachment.htm>

More information about the zeromq-dev mailing list