[rabbitmq-discuss] durability =?utf-8?Q?=3D_?=true & auto delete =?utf-8?Q?=3D_?=true

Michael Klishin mklishin at gopivotal.com
Tue Jul 1 14:54:37 BST 2014


On 1 July 2014 at 17:48:53, PATAR, SAGAR (sp345s at att.com) wrote:
> >
> durability = true & auto delete = true ??
>  
>  
> What will happen to the messages in the queue when a connection  
> is lost??

If the queue is exclusive, the durability attribute has no effect
because the queue will be deleted as soon as client disconnects
(or its connection is lost).

auto-deleted queues are deleted when the last consumer is cancelled
(or its channel is closed, or its connection is lost).
If there never was a consumer (e.g. you only use basic.get), it won't
be deleted.

Obviously, when a queue is deleted, all messages in it are also deleted. 

> Will the Queues be mirrored across the cluster .. what parameter  
> needs to be set to make them mirrored ??

http://www.rabbitmq.com/ha.html

> Also wanted to check if rabbit MQ generates a message ID which  
> is unique and sequential ?? and can be used in java code to identify  
> the point of failure?

RabbitMQ does not generate message ids that are exposed to clients. Do not rely
on delivery tags for anything.
--  
MK  

Staff Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list