Distributed Systems TheoryExpert16 min read1 questions

Consistency Models and Replication Strategies

The spectrum between 'always correct' and 'always fast'. Which guarantee each model gives, how quorums work, and how to resolve conflicts when two writers disagree.

Covers: Linearizability, sequential and causal consistency, eventual consistency, quorums, single- vs multi-leader, conflict resolution, CRDTs

“Eventually consistent” is not one thing, and “strongly consistent” is not the only alternative. There is a well-defined spectrum, and being able to name the exact guarantee your system provides - and the exact guarantee your product needs - is one of the clearest senior signals in a design interview.

Filter
0/1 mastered
ExpertconsistencylinearizabilitydistributedAsked at Amazon, Google

30-second answer

Linearizability is strongest: operations appear to occur instantaneously at some point between invocation and response, so the system behaves like a single copy and reads always see the latest completed write. Sequential consistency preserves each client's program order but allows a global order that is not real time. Causal consistency guarantees that causally related operations are seen in order while concurrent ones may differ per observer. Then come the session guarantees - read-your-writes, monotonic reads, consistent prefix - and finally eventual consistency, which promises only that replicas converge if writes stop.

Showing 1 of 1 questions for consistency-models-and-replication.

Check your understanding

3 questions · no sign-up, nothing stored

0/3 answered
Question 1

1.Which model prevents a reply appearing before the message it replies to?

Question 2

2.With N=5, which configuration tolerates two node failures for both reads and writes?

Question 3

3.What is the main danger of last-write-wins conflict resolution?