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

Luca Boccassi luca.boccassi at gmail.com
Tue Jan 16 16:27:41 CET 2018


On Tue, 2018-01-16 at 13:28 +0000, Ravi Joshi wrote:
> 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

Both, as messages are queued on both sides.

> 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
> bind/connect.
> 

-- 
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/80aa48f5/attachment.sig>


More information about the zeromq-dev mailing list