0Pricing
RabbitMQ Messaging & Async Systems · Lesson

Quorum Queues for Modern HA

Learn why quorum queues, based on the Raft consensus algorithm, are the recommended replacement for mirrored queues when building highly available RabbitMQ clusters.

Quorum Queues for Modern HA is a free RabbitMQ Messaging & Async Systems lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the RabbitMQ Messaging & Async Systems learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

The Limits of Mirrored Queues

Classic mirrored queues replicate data but suffer from split-brain risks and unpredictable failover behavior under network partitions.

RabbitMQ now recommends quorum queues instead.

What Is a Quorum Queue?

A quorum queue is a replicated queue built on the Raft consensus algorithm. A majority of replicas must agree before a message is considered committed.

Majority Consensus

With Raft, writes are durable once a quorum (majority) of nodes acknowledges them. With 3 replicas, 2 must agree, so the cluster tolerates losing 1 node.

Declaring a Quorum Queue

Set the queue type argument to quorum.

channel.queue_declare(
    queue='payments',
    durable=True,
    arguments={'x-queue-type': 'quorum'}
)

Leader and Followers

Each quorum queue has one leader replica and several followers. The leader handles client traffic; if it fails, followers elect a new leader automatically.

Choosing Replica Count

Use an odd number of replicas (3 or 5) so a clear majority always exists. Even counts waste a node without improving fault tolerance.

Durability by Design

Quorum queues are always durable and store messages on disk across replicas. There is no transient quorum queue.

Poison Message Handling

Quorum queues track a per-message delivery count, enabling automatic dead-lettering of repeatedly failing poison messages, something mirrored queues lacked.

arguments={'x-queue-type': 'quorum', 'x-delivery-limit': 5}

Quorum vs Mirrored

  • Mirrored: deprecated, split-brain prone
  • Quorum: Raft-based, predictable failover, poison handling

Migrate mirrored queues to quorum for new deployments.

Trade-offs

Quorum queues use more memory and disk for replication and have slightly higher latency per write, the cost of strong consistency. They are best for important, durable workloads.

Monitoring Replicas

The management UI shows each quorum queue's leader, online replicas, and replica lag, helping you confirm the cluster is healthy before maintenance.

Quick Check

Test your quorum queue knowledge.

Recap

Quorum queues use the Raft consensus algorithm to provide predictable, durable high availability, replacing the deprecated mirrored queues.

Declare them with x-queue-type: quorum, use an odd replica count, and gain built-in poison message handling for resilient clusters.

Frequently asked questions

Is the “Quorum Queues for Modern HA” lesson free?

Yes — the full text of “Quorum Queues for Modern HA” is free to read here on the web, and the RabbitMQ Messaging & Async Systems course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the RabbitMQ Messaging & Async Systems course, upgrade to CoddyKit PRO.

What will I learn in “Quorum Queues for Modern HA”?

Learn why quorum queues, based on the Raft consensus algorithm, are the recommended replacement for mirrored queues when building highly available RabbitMQ clusters. You practise RabbitMQ Messaging & Async Systems with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start RabbitMQ Messaging & Async Systems?

No prior experience is required. RabbitMQ Messaging & Async Systems on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Quorum Queues for Modern HA” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this RabbitMQ Messaging & Async Systems lesson?

Yes. Every RabbitMQ Messaging & Async Systems lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. RabbitMQ Clustering Concepts
  2. Setting Up a Clustered Environment
  3. Mirrored Queues for HA
  4. Quorum Queues for Modern HA
← Back to RabbitMQ Messaging & Async Systems