Pieter, Yes, this is classic slow subscriber situation... I'm sorry...
Vladimir On 16.02.2011 18:35, Pieter Hintjens wrote: > On Wed, Feb 16, 2011 at 4:27 PM, Vladimir Lebedev<[email protected]> wrote: > >> I just have tried to use erlang binding of zeromq and found this strange >> thing: if you will use sample code for pub/sub (zmq_pubserver.erl and >> zmq_subclient.erl), and run publisher with 0 ms delay in publish loop >> (e.g. using run(50,0)) then you will get no messages on subscribers >> received. On the other hand, if you will increase the number of messages >> up to 10000 (run(10000,0)), you will see the subscribers start getting >> last 500 messages. If publisher is started with any delay bigger than 0, >> then everything works as expected. > > This is a standard symptom of the pubsub model, explained in the > Guide, and also noted in the problem solver, here: > http://zguide.zeromq.org/chapter:all#toc14. > > It affects all bindings, it's not an Erlang issue. Subscribers connect > asynchronously with a non zero-delay during which anything the > publisher sends will be missed. > > -Pieter > _______________________________________________ > 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
