[rabbitmq-discuss] Do not require an acknowledgement for a single message
Michael Klishin
mklishin at gopivotal.com
Fri Apr 4 13:19:51 BST 2014
On 4 April 2014 at 16:18:02, Mateusz Bieniek (bieniekmat at gmail.com) wrote:
> > Now we have a special case. We want to publish a reboot command.
> In this case, the client reboots itself as part of the processing,
> and so never acknowledges the reboot message. So when it launches,
> it consumes the message again and the cycle beings.
>
> Updating the client side is highly undesirable, so please assume
> it's not a possibility. Is there a way we can publish a single message
> and omit acknowledgement for it?
What you can do is check “redelivered” property and if a message
is of type “reboot” but is a redelivery, ignore it.
--
MK
Software Engineer, Pivotal/RabbitMQ
More information about the rabbitmq-discuss
mailing list