[zeromq-dev] Multiple PUB -> one SUB?

Ian Barber ian.barber at gmail.com
Mon Dec 12 19:09:58 CET 2011


On Mon, Dec 12, 2011 at 5:51 PM, Andrei Zmievski <andrei at zmievski.org>wrote:

> I have several C worker processes that need to send data to a single Java
> process that will collect and aggregate it. I was thinking of binding on a
> SUB socket in the Java process and then connecting to the same endpoint on
> a PUB socket in each C one. Would this work or is there a better pattern
> for this?
>
> -Andrei
>

It would work, but you'll probably find binding a PULL socket and having
multiple processes PUSH to it will be a better bet, unless you want the
drop on HWM properties of pubsub.

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111212/d781b17a/attachment.htm>


More information about the zeromq-dev mailing list