how to read unacknowledged messages in the queue, and also in sequence how its inserted into unack

8,538 views
Skip to first unread message

sxp5...@ucmo.edu

unread,
Mar 12, 2015, 1:21:25 PM3/12/15
to rabbitm...@googlegroups.com
hi all,

i m working on the rabbit mq queue. Have a requirement where i need to send the messages into the unack state. When i read the queue next time, not able to get the messages from the unack state. Is there any way to retrieve the messages from the unack state and after that read from the ready state?

Simon MacMullen

unread,
Mar 12, 2015, 1:24:41 PM3/12/15
to sxp5...@ucmo.edu, rabbitm...@googlegroups.com
Unacked messages are any which have been delivered to a consumer but not
acked. You can't read them in the unacked state, they are "owned" by the
consumer that has them.

Messages can return to the ready state:

* If the consumer sends basic.reject / basic.nack with requeue=true

* If the consumer sends basic.recover

* If the consumer connection goes down

If they are held by a "rogue" consumer then only the third will be
possible - you can kill the consumer's connection with rabbitmqctl or
management.

Cheers, Simon
> --
> You received this message because you are subscribed to the Google
> Groups "rabbitmq-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rabbitmq-user...@googlegroups.com
> <mailto:rabbitmq-user...@googlegroups.com>.
> To post to this group, send email to rabbitm...@googlegroups.com
> <mailto:rabbitm...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
Mar 12, 2015, 1:25:50 PM3/12/15
to rabbitm...@googlegroups.com, sxp5...@ucmo.edu
Unacknowleged messages can be re-queued (see basic.reject and basic.nack protocol operations).

There is no way to consume unacknowledged messages without re-queueing them first. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages