SteelReed

Search

Search posts, questions…

System DesignQuestion 15 / 26

Middle

What does CAP say, how does CAP's C differ from ACID's C, and what does quorum R + W > N give you?

Short answer

During a network partition, a distributed system must choose Consistency (every read sees the latest write, or errors) or Availability (every live node answers). Partitions are unavoidable, so the real choice is CP or AP during the failure, per flow.

Yes, must be correctYes, must answerNoNetwork partition?CP: reject minority sideAP: answer, maybe stalePACELC: latency orconsistency

3 points to say:

  1. Not "pick 2 of 3": partitions will happen, so choose C or A per data flow (wallet balance CP, feed AP).
  2. PACELC: even without partitions you trade latency for consistency; quorum R + W > N lets reads see the latest write (with caveats).
  3. C in CAP is linearizability across replicas, unlike C in ACID (data satisfies business constraints).

Keep reading the deep dive

Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.