Knowledge base

rabbitmq-durable verifiedimportantWritten by the Hub

Queues survive a broker restart

in the configuration this is a linerabbitmq-durable: true

Whether queues and exchanges declared by the engine are durable, meaning the broker recreates them after a restart.

Values

Values
true · false
Default
true · taken from the build
applying
restart required
where it can be set
in the config file · with a startup flag · as an environment variable

In detail

Durable queues survive; what they hold does not, unless the messages themselves are persistent (rabbitmq-persistent). The two are constantly confused, and the difference is the difference between "the plumbing is still there" and "the mail is still there". The stock value is true, which is the right half to have on by default.

What happens if you get it wrong

Changed after the queues already exist.RabbitMQ refuses to redeclare an existing queue with different properties, so the engine fails to start until the queues are deleted — with whatever they hold.inference