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

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


On Mon, Dec 12, 2011 at 6:09 PM, Ian Barber <ian.barber at gmail.com> wrote:

> 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
>

Oh, and hey Andrei! The other thing that comes to mind is if you wanted to
filter messages on your SUB side with the subscription matching. But you
would probably be better served by push/pull for most cases.

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


More information about the zeromq-dev mailing list