Using RabbitMQ, how do I create a policy that will make an existing exchange durable? At this point, I believe I have to delete the exchange and then declare it again setting durable:true
.
Secondary related question: Could a policy be created to set durable:true
for declared exchanges even if the client didn't specify that parameter?
To change the durability setting of an existing exchange or queue, you'll have to delete and re-declare.
Policies can be used for setting optional arguments only; they can't be used to force the durable:true
since durable
is a mandatory argument.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With