[rabbitmq-discuss] Spring amqp - auto acknowledge from consumer taking almost a minute
Anita Yip
Anita.Yip at RealPage.com
Fri Mar 28 04:01:41 GMT 2014
Thanks for the quick response. That is exactly what I am facing right now. Will try the ack mode to None. Thank you.
From: Gary Russell <grussell at gopivotal.com<mailto:grussell at gopivotal.com>>
Reply-To: Discussions about RabbitMQ <rabbitmq-discuss at lists.rabbitmq.com<mailto:rabbitmq-discuss at lists.rabbitmq.com>>
Date: Thursday, March 27, 2014 8:53 PM
To: Discussions about RabbitMQ <rabbitmq-discuss at lists.rabbitmq.com<mailto:rabbitmq-discuss at lists.rabbitmq.com>>
Subject: Re: [rabbitmq-discuss] Spring amqp - auto acknowledge from consumer taking almost a minute
Yes; that assumption is wrong; in Spring-AMQP, ack mode AUTO means the container will automatically ack the message on completion. NONE is the equivalent of rabbit auto-ack.
Be aware that this can cause OOM issues with spring-AMQP versions prior to 1.3.0, if the consumers can't keep up with the workload because the broker will keep pumping messages to the client.
Gary
On Thu, Mar 27, 2014 at 11:45 PM, Anita Yip <Anita.Yip at realpage.com<mailto:Anita.Yip at realpage.com>> wrote:
I have a spring amqp based application where the consumer is taking very long time to send acknowledgement. In RabbitMq management plugin, I see it in Unacknowledged state for almost a whole minute.I am currently testing this code by publishing only one message. But my prefetch count and transaction size are a 50 and 30 respectively. Could this be any reason for the issue?
My consumer has heavy processing. But since it is in auto acknowledge mode, I believe, the message will be acknowledged immediately after the consumer receives it and before it start processing the message. Is this assumption wrong?
Thanks,
Anita
________________________________
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<mailto:rabbitmq-discuss at lists.rabbitmq.com>
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
________________________________
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140328/4ddc4651/attachment.html>
More information about the rabbitmq-discuss
mailing list