[rabbitmq-discuss] Fwd: Batch Acknowledge
Davide Maestroni
davide.maestroni at gmail.com
Tue Oct 26 16:14:13 BST 2010
Hi Matthias,
yes, I finally decided to handle the reordering in the consumer. Anyway,
thank you for the 'redelivered' flag hint, it could be very helpful.
Best,
Davide
On Tue, Oct 26, 2010 at 4:35 PM, Matthias Radestock
<matthias at rabbitmq.com>wrote:
> Davide,
>
>
> Davide Maestroni wrote:
>
>> My problem here is that, in the architecture I have to implement, I could
>> receive a lot of messages in a very short time, so if the broker re-enqueues
>> not acknowledged ones they can end up to be re-sent thousands of messages
>> later. Which means that there's no way I can do the re-ordering on the
>> consumer side.
>>
>
> Could you recover ordering by the producer sticking a sequence number into
> the message? That should work as long as all the produced messages end up in
> the same queue.
>
> Also note that rabbit sets the 'redelivered' flag on deliveries that have
> been sent to a consumer for the second and subsequent times. This too helps
> in recovering order.
>
>
> Regards,
>
> Matthias.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20101026/425e0191/attachment.htm>
More information about the rabbitmq-discuss
mailing list