[rabbitmq-discuss] RabbitMQ - Is there a way to go back to old messages in a queue

rails stammailbox at gmail.com
Tue Feb 11 07:23:31 GMT 2014


hmm,
Got it.
The only thing I am confused about is regarding \
" making acking behave the same as moving the consumer index thing back in
kafka."
How exactly?

Thanks.



On Mon, Feb 10, 2014 at 3:35 PM, Simon MacMullen <simon at rabbitmq.com> wrote:

> On 10/02/14 13:32, rails wrote:
>
>> Lets say my consumer acked and due to some strange reason did not handle
>> the message well. Is there a technic to go over message again?
>>
>
> Your consumer should not ack messages until it has handled them - that's
> what explicit acking is for; not just to say "I got this message" but "I
> got this message and have handled it".
>
>
>  Requirements :
>> 1. same order.
>> 2. continue receiving new messages and placing them last in the queue?
>>
>
> Unacked messages are returned to the queue in order. So your consumer will
> always receive messages in order, regardless of failures, as long as:
>
> * It is the only consumer on the queue
> * It always acknowledges messages in order
>
> That will making acking behave the same as moving the consumer index thing
> back in kafka.
>
> Cheers, Simon
>
> --
> Simon MacMullen
> RabbitMQ, Pivotal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140211/fd12aca2/attachment.html>


More information about the rabbitmq-discuss mailing list