Cap Theorem easy
Which system would likely prioritize Consistency over Availability (CP)?
- A A decentralized financial ledger that must strictly prevent double-spending anomalies.
- B A video sharing platform's view counter that aggregates millions of global hits per day.
- C A community blog comment section where minor out-of-order replies are acceptable.
- D An e-commerce product recommendation engine that suggests items based on browsing history.
Answer: A. A decentralized financial ledger that must strictly prevent double-spending anomalies.
In financial systems, data integrity is the highest priority. If a network partition occurs, it is safer to stop accepting transactions (sacrificing Availability) than to allow two different nodes to process conflicting withdrawals (sacrificing Consistency). This ensures the ledger remains the single source of truth, even at the cost of temporary downtime.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What is a 'Split Brain' scenario?
- The PACELC theorem extends CAP by stating: Even when there is NO partition (E), the system must choose between:
- Why is a CA (Consistent + Available) system generally considered impossible for distributed web applications?
- In CAP, 'Consistency' is equivalent to:
- In the CAP Theorem, what does the 'P' stand for?
- What causes a Network Partition?