[zeromq-dev] Some clarifications about HWM for pub/sub

Emmanuel TAUREL taurel at esrf.fr
Mon Nov 28 17:19:29 CET 2011


Hello all,

I am using ZMQ 3.0.x on linux boxes with  the PUB/SUB pattern.
I have one publisher and two subscribers. I have a HWM set on the publisher to 50 and no HWM on the subscribers.
When the HWM limit is reached on the publisher, following messages are dropped on the publisher side
and both subscribers do not receive them.

"man zmq_setsockopt" tell me this for the ZMQ_SNDHWM option:

-------------------

The high water mark is a hard limit
on the maximum number of outstanding messages 0MQ shall queue in memory
for any single peer that the specified socket is communicating with.

-------------------

Do I have to understand that all peers are affected when the pub HWM is reached?

Thank's very much for your answers

Emmanuel





More information about the zeromq-dev mailing list