Day 6Level 1 β Core Mental Models
CAP and PACELC: The Theory You Actually Need
Learn: 45 minMap: 30 minDesign: 60 min
Core Concepts (5)
- 1.CAP: under partition, choose Consistency or Availability β not both
- 2.PACELC: even without partition, choose Latency or Consistency (ELC)
- 3.Most systems aren't in partition most of the time β PACELC matters more daily
- 4.CP systems: Spanner, etcd, ZooKeeper β latency varies under partition
- 5.AP systems: Dynamo, Cassandra, Riak β conflicts resolved on read
Map to Your Experience
For your system's data stores: which are CP, which are AP? What happens to latency and consistency during a network partition?
Design Brief: Data Store Consistency Classification
Requirements
- β’Classify all data stores
- β’Document consistency model per store
- β’Describe partition behavior
- β’Identify PACELC trade-off per store
Constraints
- β’Use real system or realistic design
- β’Reference actual technologies used
Must Cover
cp-ap-classificationconsistency-modelspartition-behaviorpacelc-tradeoff
Trade-off Axis
consistency guarantees vs latency/availability
Referenced Patterns
Competencies Advanced
data state β L2distribution communication β L2
Ready to Design?
Open this day in the Design Studio. The studio follows this track: its days, concepts, patterns and trade-offs are loaded, and you keep one design across the whole track.
Open in Studio β