[rabbitmq-discuss] How messages are processed

Tim Watson watson.timothy at gmail.com
Mon Oct 29 07:57:10 GMT 2012


Hi

On 29 Oct 2012, at 07:36, chetan dev <dev440 at gmail.com> wrote:

> Hi,
> 
> 1. There are two console app for consumption of messages in a queue
> 2. there are currently two messages in queue 
> 3. now i run console app1 it takes out message1 , then i put it on sleep mode for 10 secs before sending acknowledgement 
> 4. in the meanwhile before ack for the first message went i run console app2 .
> 5. i expected the console app to fetch the second message before the ack for first message was sent but that did not happen.
> instead console app 2 waited for ack of message 1 and then processed message 2
> is there a way in which  i can take out message2 before sending ack for mesage1 
> 

I don't think so. If rabbit would let you do that, then the first message was rejected, what would happen to the ordering guarantees?

You'd have to stop using ACKs or send a nack/reject to do this afaik.

> Thanks
> 
> -- 
> Cheten  Dev 
> 
> 
> 
> 
> 
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list