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

Andrei Zmievski andrei at zmievski.org
Mon Dec 12 19:30:32 CET 2011


I actually don't need to do subscription filtering, but I also don't want
to block on HWM, so that's why I was thinking of PUB-SUB model.

-Andrei

On Mon, Dec 12, 2011 at 10:12 AM, Ian Barber <ian.barber at gmail.com> wrote:

> 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
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111212/702102e0/attachment.htm>


More information about the zeromq-dev mailing list