[zeromq-dev] Queuing to multiple workers and receiving multiple responses as a single multi-part message.

John Smith no.spam.mole at googlemail.com
Sun May 9 21:24:24 CEST 2010


I have a particular use case which I am not sure how to handle.  I want to
send a single request to many workers and have that message processed in
parallel by each worker.  Each worker should then send a response which
should make its way back to the originator of the request.  I've attached a
diagram which should hopefully explain what i'm on about.

I thought I could set it up using a forwarder and a req/xrep socket.  When
send the message "0" (0x30) from the req socket, my xreq sockets receives:


as a multi-part message.  I'm not sure what these fields mean, but is the
first part the to address, the next part should be the from address, then a
blank, then the message?  If so, then I don't know the return address to
send my message back to.

Any ideas on how to accomplish this with zmq?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100509/c65899c8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blockdiag.png
Type: image/png
Size: 17182 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100509/c65899c8/attachment.png>

More information about the zeromq-dev mailing list