[zeromq-dev] ZMQ_HWM doesn't work?

Pieter Hintjens ph at imatix.com
Mon Jan 17 13:40:11 CET 2011

On Mon, Jan 17, 2011 at 12:49 PM, Pavel Gushcha <pavimus at gmail.com> wrote:

> Thanks Martin, now all is clear! In my live system i have 16 ST_PUSH
> producers and 16 ST_PULL consumers, and each consumer is connected to
> all producers...

If you are concerned to deliver messages one by one, you might better
use an acknowledgement model, and routing such as described in the
Guide (chapter 3).  The underlying design of pub-sub and push-pull is
for maximum performance, with HWM designed to protect against memory
overrun due to slow consumers, not throttling.

Likewise it's generally a bad idea to reduce the TCP buffering to try
to control flow.


More information about the zeromq-dev mailing list