[rabbitmq-discuss] What happens to messages delivered just before canceling consume?
Simon MacMullen
simon at rabbitmq.com
Fri May 18 10:44:28 BST 2012
On 18/05/12 10:44, Emile Joubert wrote:
>> > 2. After doing basic.cancel to stop my consumer, can I read in the
>> > aditional message and nack it, returning it to the queue?
> Yes, nack with requeue. Alternatively you could cancel the subscription
> before acknowledging the last message.
Probably the simplest thing to do.
> Another option is to turn off prefetching (prefetch = 0).
Um, doesn't that just mean you get a deluge of messages instead?
Cheers, Simon
--
Simon MacMullen
RabbitMQ, VMware
More information about the rabbitmq-discuss
mailing list