[zeromq-dev] Proper way to configure conflate in ZeroMQ

Luca Boccassi luca.boccassi at gmail.com
Tue Jan 16 14:16:39 CET 2018

On Tue, 2018-01-16 at 13:14 +0000, Ravi Joshi via zeromq-dev wrote:
> Hi,
> Hope you are having a good time.
> I want to drop the old messages and just keep the recent (i.e.,
> latest) message in the queue, to make the transmission real-time.
> Hence I am using 'conflate' option in ZeroMQ. However, I am not sure
> if the configuration is written properly or not.
> (1) The publisher is written in C#. Please see the code snippet here 
> https://pastebin.com/2m1chnKd
> (2) The subscriber is written in C++. Please see the code snippet
> here https://pastebin.com/dMT00sUG
> Apologies for putting PasteBin's URL since I wanted to keep the
> message short and clean. Thank you very much.

As the zmq_setsockopt manpage states, you need to set the option before

Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180116/9eada38b/attachment.sig>

More information about the zeromq-dev mailing list