All learning paths Β· 7 concepts Β· 79 min

πŸ•ΈοΈ Distributed systems from zero

Copy rooms, club captains, a broken phone line, split phone books, shared boards and a giant notebook.

β–Ά Start with Replication and read replicas
  1. πŸ“šReplication and read replicasA head office keeps the master ledger and a diary of changes that copy rooms replay, sometimes a little behind.
  2. πŸ—³οΈConsensus (Raft)A club choosing a captain and keeping one official notebook, where a decision counts once most members copy it.
  3. βš–οΈCAP theoremTwo shop branches whose phone line goes down: close until it's back, or stay open and risk different prices.
  4. πŸ“•ShardingSplitting a phone book too big for one binding into volumes by surname, so one name means opening one volume.
  5. β­•Consistent hashingPlates around a round table: when someone sits down or leaves, only their neighbours' plates change hands.
  6. πŸ“‹Distributed cachingA shared answer board beside a slow, faraway library: check the board first, and walk over only if needed.
  7. πŸ“¬Apache KafkaA giant shared notebook. Some apps write notes in it, and others read them, each at their own speed.