[zeromq-dev] help with pub sub?

Sean Ochoa sean.m.ochoa at gmail.com
Sun Nov 27 15:49:59 CET 2011


Yep.  For sure.  I got it to fan out with the proper timing using a sync request/rep socket along with Push/pull.   Thanks for the help.  -- Sean 

Omer Bacharach <omer at toot-trading.com> wrote:

>Hi Sean.
>Regarding the missing messages, try adding a sleep in the publisher
>between binding a port and sending
>    the messages.  It looks like it's still connecting to the subscribers
>    while the first messages are being published.
>
>Regarding the same messages, well this is by design. Every subscriber
>gets the messages the publisher sends. If you wish to divide the work
>between subscribers then you should use the Worker, Sink and
>Ventilator pattern.
>
>Hope it helps.
>
>Regards,
>Omer.
>
>
>On Sun, Nov 27, 2011 at 11:07 AM, Sean Ochoa <sean.m.ochoa at gmail.com> wrote:
>> Hey all.
>> I've got a pub/sub example, which I'm unsure about.  It seems that there are
>> 2 problems in my example, and I'm not sure what's causing them.
>>
>> Not all the subscribers are getting messages.
>> Some subscribers are getting the same messages as other subscribers.
>>
>> Here's the source for my test:  http://paste.pound-python.org/show/15141/
>>
>> Can someone help me understand what I'm doing wrong?
>> Thanks!
>> Sean
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>
>
>
>-- 
>Omer Bacharach
>Director of Software Development
>Toot Trading Ltd.
>omer at toot-trading.com
>Mobile +972-544-317959
>Office +972-3-7449466
>_______________________________________________
>zeromq-dev mailing list
>zeromq-dev at lists.zeromq.org
>http://lists.zeromq.org/mailman/listinfo/zeromq-dev


More information about the zeromq-dev mailing list