[rabbitmq-discuss] RabbitMQ publisher confirms behaviour

Emile Joubert emile at rabbitmq.com
Thu Jun 27 10:39:14 BST 2013


On 26/06/13 23:57, Rohit Yadav wrote:

> What happens when a durable message is published with publisher confirms
> and the producer is stopped, i.e. we don't know if a confirm was
> received. In such a case if the message reaches the broker but the
> broker fails to send confirms back, is the message dropped? 

No, messages that have reached the broker won't get dropped because a
publisher stops. Messages may still be dropped for unrelated reasons
(e.g. TTL exceeded).

> When I stop the consumer I wait to receive any leftover confirms and
> I see that even after say 60s the _deliveries is not empty.

I'm uncertain what your expectation is. The presence of a consumer won't
necessarily have much affect on publisher confirms. If the publisher
channel has closed then that could be a reason why no further
confirmations are received.

> How may I make sure messages which were sent confirm asynchronously
> and if I should wait for sometime before closing the channel how may
> I determine the wait time period?

It is not possible to place an upper bound on the waiting time.


More information about the rabbitmq-discuss mailing list