[zeromq-dev] drop oldest

Ian Barber ian.barber at gmail.com
Thu Apr 12 12:32:25 CEST 2012

On Thu, Apr 12, 2012 at 9:11 AM, Pieter Hintjens <ph at imatix.com> wrote:

> It's an old discussion; dropping the oldest message for PUB-SUB would
> be more logical than dropping the newest, but it was always considered
> too hard to do. If you want to try it, and send a patch, people would
> appreciate that IMO.
> -Pieter
It is worth noting that the oldest in many cases will be in the buffers of
the transport, so you will in reality be dropping the oldest-in-zmq-space.
There's a high chance of receiving some old messages on the other end.
Still, might be a preferable option, but would need to be caveated in the
documentation. I think there is a sensible abstraction somewhere (though
fwiw MS wasn't too convinced) for flexible HWM code - there are regular
requests for oldest first and credit based flow control, both of which are
basically HWM policies. The ability to do rollups in the queued messages
would also be beneficial for some applications.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120412/c9114106/attachment.htm>

More information about the zeromq-dev mailing list