Try
↑ ↓ move↵ openesc close

Interview prep / Quorums

Mid · Quorums · System design interview question

What is a sloppy quorum, what is hinted handoff, and what do they give up?

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

A strong answer

A strict quorum collects replies from the N replicas that own the item. A sloppy quorum accepts replies from other healthy nodes when some owners are unreachable. Those stand-ins hold the write along with a hint naming the intended owner. When the owner returns, the stand-in hands the write over. That is hinted handoff.

The benefit is write availability. Writes succeed during failures that would block a strict quorum.

The cost is that the overlap guarantee goes. The write may sit on stand-ins that a read does not ask, so a read of the owners can miss it even when R plus W exceeds N, until the handoff completes. If the stand-in fails before delivering, the write can be lost. It is a deliberate choice of availability over freshness.

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