[zeromq-dev] sync examples from guide fail on Java and C/C++
Pieter Hintjens
ph at imatix.com
Tue Apr 23 11:25:01 CEST 2013
Hi Mark,
There's a default high water mark of 1,000. If the publisher runs
faster than the subscriber it's quite easy to overflow this buffer,
and drop messages. It's especially visible if your publisher sends a
large stream of messages in one go. The simple solution is to raise
the HWM to something that suits your message flow. The ideal setting
depends on your message rates, subscriber speed, etc. Usually, a
subscriber that cannot keep up with the publisher needs fixing in some
way (simply storing more and more messages is not sustainable).
-Pieter
On Mon, Apr 22, 2013 at 11:53 PM, Mark Obsniuk <mobsniuk at gmail.com> wrote:
> We have encountered an issue with pub/sub. It seems the subscribers are
> missing messages. I switched to the guide examples to do some testing and
> they exhibit the same issue. I have tried the Java and C/C++ versions and
> both drop 70% of the messages. All miss the termination message.
>
> Running 3.2.2 code for zeromq.
>
> This has been tested on linux and OS X.
>
> Mark
>
> _______________________________________________
> 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