Thank you for you response, On Thu, May 2, 2013 at 8:30 PM, Pieter Hintjens <[email protected]> wrote:
> On Thu, May 2, 2013 at 5:19 PM, [email protected] > <[email protected]> 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. Cheers, F.
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
