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

Pieter Hintjens ph at imatix.com
Thu May 2 20:30:46 CEST 2013


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.

-Pieter



More information about the zeromq-dev mailing list