Ecommet

System design

Module 2

Availability and Consistency

What happens when data lives on several machines and the network between them fails: the CAP theorem, consistency models, fail-over and how to put a number on availability.

  • 4 topics
  • Quiz on every topic

0% read

  • 0 / 4topics read
  • –average quiz score
  • 0 daysreading streak
  • 0saved to revise

Your progress is saved in this browser. Nothing is sent to us.

Module 02

Availability and Consistency

0 / 4 read

  1. 2.1 Read

    CAP Theorem

    When the network splits a distributed database in two, each side must either refuse requests to stay consistent or answer with possibly stale data to stay available. Learn what CAP really says, and how PACELC adds the trade-off you face every day.

    Intermediate 8 min

  2. 2.2 Read

    Consistency Patterns

    Weak, eventual and strong consistency describe when a write becomes visible to readers. Learn each one, the session guarantees users actually notice, and how quorums (R + W > N) give strong reads from replicated data.

    Intermediate 6 min

  3. 2.3 Read

    Availability Patterns: Fail-over and Replication

    How systems stay up when machines fail: active-passive and active-active fail-over, leader-follower and multi-leader replication, and the traps that come with them, such as split brain and lost writes.

    Intermediate 7 min

  4. 2.4 Read

    Availability in Numbers

    What 99.9% and 99.99% availability mean in minutes of downtime, how to calculate the availability of components in series and in parallel, and why every dependency you add lowers the total.

    Beginner 5 min

All modules