Home > amqp-consume > amqp-consume -A

amqp-consume(1) -A
Consume messages from a queue on an AMQP server
-A, --no-ack=routing key
    Enable “no ack” mode: The AMQP server will unconditionally acknowledge each message that is
    delivered, regardless of whether the target command exits successfully or not.


By default, messages will be consumed with explicit acknowledgements. A message will only be acknowledged if the receiving command exits successfully (i.e. with an exit code of zero). The AMQP “no ack” mode (a.k.a. auto-ack mode) can be enable with the -A option.


Consume messages from an existing queue “myqueue”, and output the message bodies on standard output via cat:
$ amqp-publish -q myqueue cat
Bind a new exclusive queue to an exchange “myexch”, and send each message body to the script myscript, automatically acknowledging them on the server:
$ amqp-consume -A -e myexch ./myscript

Tips or Questions?

Powered by ExplainShell