SDE & MLE Prep

CAP and PACELC

  • CAP: during a network Partition you must choose Consistency (reject/block some requests) or Availability (serve possibly stale data). Without partitions you can have both.
  • PACELC: if P → A or C; Else → Latency or Consistency. E.g. Cassandra/Dynamo = PA/EL, Spanner = PC/EC.
  • Practical framing: which data needs strong consistency (balances, inventory, unique usernames) vs eventual (likes, feeds, view counts)?