[zeromq-dev] Cannot setup high water mark for PUB/SUB
vincegata at gmail.com
Thu Jul 14 01:09:15 CEST 2016
I cannot seem to be able to set up the high water mark for PUB/SUB.
My subscriber is expected sometimes to be somewhat slower than publisher
hence I want the publisher to drop the messages when subscriber is slow. I
to set up the high water mark to, say, 2 messages, so when the subscriber
for two messages then the publisher will start dropping them.
Can you take a look at my code. The publisher sends messages once every
the subscriber reads messages once every second, the high water mark is set
Hence, I expect subscriber to receive approximately every fifth message.
my subscriber diligently reads all messages consequently and the publisher
-- thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev