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

Ravi Joshi ravi.joshi53 at yahoo.com
Tue Jan 16 14:28:00 CET 2018

Thank you very much Luca Boccassi.
I understand your point. I have one more question. Do I need to set the Conflate option for both publisher and subscriber?
I believe if I set it only in publisher side, there should be no need to set it on the subscriber side. Just thinking though.
Thanks again.

Sent from Yahoo Mail for iPhone

On Tuesday, January 16, 2018, 10:16 PM, Luca Boccassi <luca.boccassi at gmail.com> wrote:

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 --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180116/9742db68/attachment.htm>

More information about the zeromq-dev mailing list