[rabbitmq-discuss] Configure RabbitMQ for persistent mode

Simon MacMullen simon at rabbitmq.com
Thu Oct 13 11:32:47 BST 2011


On 13/10/11 05:07, Shammi Jayasinghe wrote:
> Can you please explain whether there is a configuration that can be done
> to run RabbitMQ on
> pure persistent mode (Not in memory mode) or It's default mode is
> persistent ?

There is only one "mode", and it's mixed. Depends what you ask for.

Declare queues and exchanges with durable=true. Publish with 
deliveryMode=2 in the properties (depending on the client there may be a 
more intuitive way to do this, e.g. MessageProperties.PERSISTENT_BASIC 
in our Java client).

You can mix persistent and transient messages in the same queue.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list