[zeromq-dev] Abandon a multipart message?
algrant at acm.org
Wed Aug 8 17:10:14 CEST 2018
On Wed, Aug 8, 2018 at 2:04 PM, James Harvey <JHarvey at factset.com> wrote:
> You could send a zero length message with no (SND_MORE) flag to signify
> that’s the last part.
I could, or I could send a part with a special payload, but either way the
sender and receiver have to agree on how to recognize an abandoned
message. Also it consumes resources in the system needlessly
(not just in transmission - the subscribers may have already allocated
resources to deal with the earlier parts of the now abandoned message).
An alternative approach would be to provide a single send API for
multipart send (with "all-or-nothing" semantics), taking a vector of
I've read http://hintjens.com/blog:84 and understand that there are
alternatives to multipart for new designs. I'm just after something that
I can use in fault-recovery in my existing multipart-based application.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev