[zeromq-dev] PUB/SUB pattern and get results back

f.visconte at gmail.com f.visconte at gmail.com
Fri May 3 12:03:13 CEST 2013

Thank you for you response,

On Thu, May 2, 2013 at 8:30 PM, Pieter Hintjens <ph at imatix.com> wrote:

> On Thu, May 2, 2013 at 5:19 PM, f.visconte at gmail.com
> <f.visconte at gmail.com> wrote:
> > It seems the best socket type to achieve my goal (at least to fan-out) is
> > the PUB socket type with all my workers subscribed to my publisher.
> At least to start with, yes.
> > - Is there an easy way to get back my results on my main server: opening
> > another socket for that ? which type ?
> You can use PUSH at the workers and PULL in the server to get results back.
> > - Should I use a set of REQ socket (one for each worker) and do the
> message
> > distribution by myself and use polling?
> Perhaps but it is more complex than that, and you do want to work
> through the Guide request-reply examples to understand.
My system is designed to have a maximum of 50 workers with a reliable
request-reply mechanism so I doubt that pub/sub pattern is the most
convenient for this kind of need.
I wonder if it would be possible to use a ROUTER or DEALER socket from the
client side to change the way requests are sent, I just would like
to fan-out requests instead of round-robin. I though this was a common use
case but searching for examples in the guide I can't find one corresponding
to this need.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130503/4ced9b22/attachment.htm>

More information about the zeromq-dev mailing list