Future-proof queue configuration that favors availability #3365
-
I would like to implement a queue behaviour that favors availability over consistency. In a three-node rabbitmq cluster (currently version 3.8.18) I would like to have a queue that is running on a single node but fails over to another one when the leader goes down. I don't care if I lose any or all messages in the process as long as the queue remains available. Quorum queues do not seem to be the way to go since they explicitely favor consistency and do not guarantee availability. The behaviour could possibly be implemented by using a two-way mirrored classic queue with a ha shutdown policy of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Can you explain the use case for such a queue? What would such a queue be used for? |
Beta Was this translation helpful? Give feedback.
Can you explain the use case for such a queue? What would such a queue be used for?
In some cases, auto-delete and/or exclusive queues serve a similar purpose - they are there as long as they are needed and can be redeclared on another node if the node they were on goes down. They get deleted when there are no consumers so perhaps that's not what you want but on the other hand - if losing data is not a concern then why not just delete the queue if no-one's consuming the data.