On Wed, Aug 8, 2018 at 2:04 PM, James Harvey <[email protected]> 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 zmq_msg_t's. 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.
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
