The multipart send is already available in the C++ higher level libraries. I am sure other libraries based on zeromq will offer their own version.




From: zeromq-dev <> On Behalf Of Al Grant
Sent: 08 August 2018 16:10
To: ZeroMQ development list <>
Subject: Re: [zeromq-dev] Abandon a multipart message?


On Wed, Aug 8, 2018 at 2:04 PM, James Harvey <> 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 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.