Try
↑ ↓ move↵ openesc close

Interview prep / Quorums

Junior · Quorums · System design interview question

With three replicas and majority quorums, how many failures can reads and writes survive?

Sketch your own answer first, then compare it with the one below.

A strong answer

A majority of three is two. Reads and writes each need two replicas, so both keep working with one replica down. With two replicas down, neither can proceed.

A majority quorum also satisfies the overlap rule: two plus two is four, which is more than three. In general a majority quorum tolerates a minority of failures, so N=5 tolerates two, and N=2f+1 tolerates f.

Even numbers buy nothing. Four replicas need a majority of three and still tolerate only one failure, the same as three replicas, while costing more.

Sources

Learn it by running it

The quorums lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms