Skip to content
We areTOP 1%
System Design · Fundamentals · Topic 2 of 4

CAP, Consistency & Availability

4 questions.
Your progress0%
1st Visit
0/4
2nd Visit
0/4
Revise
0/4

Overview

When data is replicated across machines, a system must decide what a read returns while replicas disagree and what to do when the network between them fails. This topic covers the CAP theorem, the spectrum from strong to eventual consistency, quorum-based replication, and how availability is measured and promised through SLAs. These ideas appear whenever a design stores data on more than one node, which is nearly every design at scale. Signals in a problem include phrases such as globally distributed, must never show stale data, or must stay up during outages. Strong answers tie the choice to the business need: bank balances favour consistency, while like counts and feeds tolerate staleness.

Questions

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account