Building Blocks of Distributed Systems: Parts 1 & 2
summary
Practical checklist for building a batch pipeline: use an external lock service (ZooKeeper/etcd/consul), avoid cold‑spare failover, and prefer five-node consensus clusters over three to reduce pages; pick queues by semantics (SQS/pubsub for at‑least‑once, Kafka for durable logs) and expect at‑least/at‑most/“probably‑exactly” semantics; choose B‑tree vs LSM by read vs write patterns; plan cache eviction, hot‑data replication and gradual failover to avoid thundering‑herd and double‑compute.
AI-written summary · about
chapters (21)
- 0:00Intro
- 1:20Pipeline & Batch Systems (Part 1)
- 2:08Orchestration: Finding, Ordering, Sharding
- 10:39Making Reliability Worse: Failover
- 13:35Lockservers, discovery
- 18:25Clients, self-resolution
- 19:17So, what lockserver ?
- 21:08Let's talk about Consensus
- 22:39Consensus Challenges
- 25:04Consensus; Requirements
- 26:24Consensus; Raft
- 31:07Spot the Difference!
- 36:00Ordered Queues: Pain And Suffering
- 38:03Queues: PubSub & SQS
- 39:43Queues: Kafka, Log Device, Kinesis
- 40:27Data Storage: CAP Theorem
- 43:10Data Storage; B-Trees vs. LSM
- 47:20Data Storage: Weak vs Strong Isolation
- 53:29Data Storage: Database Types
- 54:23Datacenter / Cluster Filesystems
- 58:31Useful Distributed DB/Cluster patterns
related talks
44mDistributed systems and scalability rules
45mDo Distributed Systems they said. It'll be fun they said.
13mExplaining Distributed Systems Like I'm 5
42mFive Common Mistakes With Distributed Systems
52mDistributed Computing Dealing with Time and Failure in the Wild
38mTowards consensus on distributed consensus #bbuzz
25mAvoiding Overload in Distributed Systems
22mWhy Are Distributed Systems so Hard?
