[rabbitmq-discuss] Spring amqp - auto acknowledge from consumer taking almost a minute
grussell at gopivotal.com
Fri Mar 28 20:56:55 GMT 2014
Your requirements seem to be a little unusual - you want the consumer to
ack as soon as you get the message but before the processing completes.
What if your consumer dies right after it acks - you'll still lose the
message in that case.
If you don't care about that situation, simply hand off the task to another
thread in your listener and the container will ack the message right after
the handoff (with ackmode AUTO).
What is the objection to it being "unacked" until the consumer completes
On Fri, Mar 28, 2014 at 4:49 PM, Anita Yip <Anita.Yip at realpage.com> wrote:
> Does that mean no explicit acknowledgement is sent by consumer? What if
> the message is lost before it reaches the consumer? When will the message
> be removed from the queue in this case?
> On 3/28/14 12:06 AM, "Michael Klishin" <mklishin at gopivotal.com> wrote:
> >On 28 March 2014 at 10:06:21, Anita Yip (anita.yip at realpage.com) wrote:
> >> > I see all the messages falling under "Deliver (noack)". Doesn't
> >> this mean that RabbitMq is not expecting/processing any
> >> from the consumer?
> >Correct. A message is then considered to be processed as soon as RabbitMQ
> >sends it out.
> >Software Engineer, Pivotal/RabbitMQ
> >rabbitmq-discuss mailing list
> >rabbitmq-discuss at lists.rabbitmq.com
> This message is intended only for the use of the individual(s) or entity
> to which it is addressed and may contain information that is privileged,
> confidential, and/or proprietary to RealPage and its affiliated companies.
> If the reader of this message is not the intended recipient, you are hereby
> notified that any dissemination, distribution, forwarding or copying of
> this communication is prohibited without the express permission of the
> sender. If you have received this communication in error, please notify the
> sender immediately and delete the original message.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss