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 <[email protected]> wrote:

> On Mon, Dec 12, 2011 at 6:09 PM, Ian Barber <[email protected]> wrote:
>
>> On Mon, Dec 12, 2011 at 5:51 PM, Andrei Zmievski <[email protected]>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
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to