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