What are RabbitMQ's quorum queues?
Answer
Quorum queues are RabbitMQ's modern replicated queue type that uses the Raft consensus algorithm for data safety. They replaced classic mirrored queues (deprecated in RabbitMQ 3.12). How they work: quorum queues are replicated to a configurable number of nodes (default 3). A write is confirmed when a majority (quorum) of nodes acknowledge it. A quorum queue continues to operate as long as a majority of its replicas are available. Key advantages over classic mirrored queues: No message loss on leader failure: Raft guarantees no committed message is lost. Simpler consistency: no split-brain scenarios. Better performance: lower write amplification. Configuration: {"x-queue-type": "quorum"}. Limitations: quorum queues are always durable and cannot be exclusive. They use more disk space (Raft log). Not suitable for very high-frequency consumer cancel/reconnect patterns. Use quorum queues for any production queue requiring high availability and data safety.
Previous
What is Cassandra's compaction and its types?
Next
How do you model time-series data in Cassandra?
More RabbitMQ & Cassandra Questions
View all →- Intermediate How does Cassandra's read path work?
- Intermediate What is Cassandra's compaction and its types?
- Intermediate How do you model time-series data in Cassandra?
- Intermediate What is Cassandra's consistency vs availability trade-off with tunable consistency?
- Intermediate What is Cassandra's anti-entropy repair?