Skip to content
jtoghrul, home

Visual proofs

Results that architects lean on every day, as pictures you can poke at: quorums, CAP, Bloom filters, Amdahl. Each one says what is true, why it matters, and lets you try to break it.

Distributed systems

  • IntroQuorum intersectionWith N replicas, if every write reaches W of them and every read asks R of them, then R + W > N guarantees each read meets the latest write.
  • IntroCAP: the choice a partition forcesWhen the network splits, a replicated system must either refuse some requests or risk returning stale data; it cannot be both consistent and available.
  • CoreThe two generals can never be sureOver a link that can lose messages, no finite exchange of messages lets two parties be certain they agree.
  • DeepByzantine agreement needs 3f + 1To agree despite f generals who may lie arbitrarily, you need at least 3f + 1 generals in total; with three generals, one traitor is enough to defeat agreement.

Performance

  • IntroAmdahl’s lawIf a fraction s of a job must run serially, p processors give a speedup of 1 / (s + (1 − s)/p), which can never exceed 1/s.
  • IntroLittle’s lawIn any stable system, the average number of items inside equals the arrival rate times the average time each item spends inside: L = λW.