[rabbitmq-discuss] How to get messages count which are not consumed from queue?
Alvaro Videla
videlalvaro at gmail.com
Tue May 13 19:19:26 BST 2014
On Tue, May 13, 2014 at 7:32 PM, Srinath Sridharan -X (srinatsr - ZENSAR
TECHNOLOGIES INC at Cisco) <srinatsr at cisco.com> wrote:
>
> How to avoid requeueing mechanism ? I don’t want any messages to be
> requeued. I want all consumed messages to be acknowledged even though if
> any exceptions occur.
>
So you essentially want RabbitMQ to discard your message as soon as the
message is send to the consumer. If that's the case, what you want is to
issue a basicConsume with no_ack = true. Be aware that is an unsafe
operation: if an exception occurs you will lose that message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140513/6148a8e0/attachment.html>
More information about the rabbitmq-discuss
mailing list