Part 9 of 18
Distributed Systems Internals
11 pages · 11 written
- 1.Distributed Systems FundamentalsIntermediate
Why systems are distributed, the fallacies of distributed computing, partial failure, partitions, failure models, unknown outcomes, and safety versus liveness.
- 2.Time, Clocks and OrderingAdvanced
Why clocks disagree, how NTP, leap seconds and smearing work, and how Lamport, vector and hybrid logical clocks and TrueTime order events safely.
- 3.Heartbeats, Failure Detection and GossipAdvanced
How systems decide a node is dead: heartbeats, fixed vs phi-accrual timeouts, cluster membership, gossip, SWIM, and avoiding false positives and split brain.
- 4.Consensus: Raft and PaxosAdvanced
How replicas agree despite crashes and partitions: replicated state machines, Paxos, Raft elections and logs, quorums, costs, and real systems.
- 5.Leader Election and Coordination ServicesAdvanced
Electing one leader safely: consensus stores, leases, fencing tokens, ZooKeeper and etcd primitives, service registries, config, and preventing split brain.
- 6.Distributed LocksAdvanced
When you need a distributed lock vs a database lock: Redis locks, the Redlock debate, ZooKeeper and etcd locks, TTL problems, fencing, alternatives.
- 7.Unique ID GenerationIntermediate
How distributed systems mint unique IDs: auto-increment and ticket servers, UUID v4 and v7, Snowflake, ULID and KSUID, clock problems, and how to choose.
- 8.Probabilistic Data Structures for Big DataAdvanced
Bloom, cuckoo and quotient filters, count-min sketch, HyperLogLog, top-k, quantile sketches, Merkle trees and skip lists: how they work and how to size them.
- 9.Geospatial Indexing and Proximity SearchAdvanced
Why lat/long B-tree indexes fail, and how geohash, quadtrees, S2, H3, R-trees, PostGIS, Redis GEO and Elasticsearch find nearby things, even moving ones.
- 10.Conflict Resolution, OT and CRDTsAdvanced
How replicas and editors converge under concurrent edits: last-writer-wins, operational transformation, CRDTs, server vs peer-to-peer, presence, Docs and Figma.
- 11.Landmark Distributed Systems PapersAdvanced
The papers behind today's infrastructure: Paxos, LSM-tree, GFS, MapReduce, Bigtable, Chubby, Dynamo, ZooKeeper, Kafka and Spanner, and where each lives today.