[rabbitmq-discuss] Looking for clarification on acknowledgements, channels, and connections
Simone Busoli
simone.busoli at gmail.com
Wed Mar 7 20:20:55 GMT 2012
Hi Matt, your understanding is correct, acknowledgements are meaningful
only within the context of the same channel, therefore the answer to your
last question is no.
If the connection bounces or the channel closes for any other reasons you
should not acknowledge the messages your consumer was delivered already and
just assume they will be redelivered to the next consumer which will start
consuming to the same queue.
On Wed, Mar 7, 2012 at 21:00, Matt Pietrek <mpietrek at skytap.com> wrote:
> I thought I understood this topic clearly, but some recent experiences
> have me seeking more info, as I can't find this exact topic explicitly
> described.
>
> When a message is delivered on a particular connection/channel
> combination, can it ever be successfully acknowledged on a different
> connection?
>
> My current understanding is "no".
>
> Some background: In our messaging layer, we want to hide the connection
> drops from the upper application layer. That is, if we try to use a
> previously working connection/channel, and it fails, we'll simply catch the
> exception and try to reconnect.
>
> So the question is, after the reconnect, should we even attempt to
> acknowledge messages read from the original connection?
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120307/0814d5d5/attachment.htm>
More information about the rabbitmq-discuss
mailing list