← All topics

Distributed systems

0 of 18 steps read

Read first
Next
Evolution

Foundations

1
MIT 6.5840: Distributed Systems

Papers from MapReduce to PBFT, and labs that build MapReduce, Raft and a sharded key-value store on it. In English.

MIT· 20262020 videos

Consensus

2
Time, Clocks, and the Ordering of Events

Machines share no clock, so Lamport clocks order events by the messages between them.

1978
3
The Part-Time Parliament

The original Paxos paper, reaching consensus despite crashed and slow nodes, told as the story of a Greek parliament.

DEC· 1998
Background
Paxos Made Simple Microsoft· 2001
Further reading
Paxos Made Live Google· 2007
4
Raft

Paxos is hard to understand and build, so Raft splits consensus into leader election and log replication.

Stanford· 2014

Coordination

5
Chubby

Rather than a Paxos library in every system, Google offers consensus as a lock service that GFS and Bigtable use to elect masters.

Google· 2006
6
ZooKeeper

Instead of fixed lock primitives, ZooKeeper offers a small tree of files with watches, from which clients build locks and leader election.

Yahoo· 2010

Replicated storage

7
The Google File System

Commodity disks fail constantly and files are huge, so GFS keeps metadata on one master and replicates large chunks across servers.

Google· 2003
Further reading
HDFS Yahoo· 2010
8
Bigtable

Structured data outgrew one database, so Bigtable splits sorted tables into tablets served across machines on GFS and Chubby.

Google· 2006
9
Chain Replication for Supporting High Throughput and Availability

Strong consistency usually costs throughput, so chain replication passes writes down a chain of servers and serves reads from its tail.

Cornell· 2004
10
Aurora

In the cloud the network is the bottleneck, so Aurora ships only the redo log and lets the storage tier build pages.

Amazon· 2017
11
Scaling Memcache at Facebook

Caching Facebook's reads in memcached brought stale sets and thundering herds, which leases and invalidations fix.

Meta· 2013
Further reading

Consistency

12
Linearizability: A Correctness Condition for Concurrent Objects

To define correctness for concurrent objects, linearizability requires each operation to appear to take effect instantly between its call and return.

CMU· 1990
13
Dynamo

Amazon's cart must always accept writes, so Dynamo replicates with sloppy quorums and resolves conflicting versions on read.

Amazon· 2007
Further reading
Cassandra Meta· 2009
14
DynamoDB

DynamoDB shares Dynamo's name but not its design, running each partition as a Multi-Paxos group for predictable performance.

Amazon· 2022

Transactions

15
Spanner

TrueTime bounds clock error, so transactions stay consistent across data centers.

Google· 2012
Further reading
CockroachDB Cockroach Labs· 2020
16
Life beyond Distributed Transactions: an Apostate's Opinion

Distributed transactions do not scale, so large systems update one entity at a time and coordinate the rest with messages.

Amazon· 2007

Failures

17
The Tail at Scale

With wide fan-out a few slow servers delay most requests, so services hedge requests and tolerate the tail.

Google· 2013
Further reading

Byzantine faults

18
Practical Byzantine Fault Tolerance

Earlier Byzantine protocols were too slow to use, so PBFT tolerates lying replicas with practical overhead.

MIT· 1999