Knowledge base

rabbitmq-lazy verifiedWritten by the Hub

Queues keep messages on disk by default

in the configuration this is a linerabbitmq-lazy: false

Declares queues as lazy, so the broker moves messages to disk as they arrive instead of holding them in memory.

Values

Values
true · false
Default
false · 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

Aimed at deep queues: overall throughput is lower, but there is no sudden collapse when RabbitMQ decides to page a large backlog to disk. Predictable and slower, rather than fast until it is not.