Consistency Patterns — Series 2
Preview — 3 of 10 questions
Two replicas of a distributed key-value store each accept a write to the same key while unable to communicate with each other. When they reconnect, how does a vector clock help determine whether one write happened before the other, or whether they're genuinely concurrent (conflicting) updates?
When two replicas produce conflicting concurrent writes to the same key, last-write-wins (LWW) is one simple way to resolve the conflict. How does it work, and what's its main downside?
Distributed systems often need multiple nodes to agree on a single value or ordering of operations, even if some nodes fail or messages are delayed. At a high level, what problem do consensus algorithms (like Paxos or Raft) solve, and why is it hard?
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.