[zeromq-dev] PUB/SUB pattern and get results back
f.visconte at gmail.com
f.visconte at gmail.com
Thu May 2 17:19:48 CEST 2013
Hi,
I'm trying to use zeromq for a high performance service where I have a main
server that needs to fan-out a computation request to a set of workers. All
workers should receive the same computation request.
I'd like the main server to get back computation results from all workers
in order to merge all results on my main server.
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.
I have a few question regarding this:
- Is there an easy way to get back my results on my main server: opening
another socket for that ? which type ?
- Is there any performance drawback using PUB/SUB sockets over REQ/REP
sockets ?
- Should I use a set of REQ socket (one for each worker) and do the message
distribution by myself and use polling?
Bests,
F.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130502/6c39e800/attachment.htm>
More information about the zeromq-dev
mailing list