[zeromq-dev] looking inside ZMQ queue
Ian Barber
ian.barber at gmail.com
Fri Jul 27 20:16:17 CEST 2012
On Fri, Jul 27, 2012 at 6:26 PM, diffuser78 <diffuser78 at gmail.com> wrote:
> What I want to know is that, ZMQ might have returned success upon buffering
> the message. But what if message is still in the queue and has not been
> delivered to the receiver for some reasons (say slow receiver). Is there a
> way I can peek into ZMQ queue to find out if my message M that I had sent in
> a non blocking way was indeed sent on the wire successfully? My lib needs to
> acknowledge to the app if there was an error after some time T for it to
> timeout on the message M.
It could be lost in the network, or the other side could crash while
processing. The best way is to send an acknowledgement back from the
receiver (also using ZeroMQ) and use that to determine whether the
other side has received and processed it.
Ian
More information about the zeromq-dev
mailing list