Distributed Algorithms of Ancient Greece The books The papers

Two islands · eighteen books · 25 papersEighteen books · 25 papers

Distributed Algorithms of Ancient Greece

An engraved chart in sepia ink of the two islands along the diagonal: Arche to the north-west, round, its star-shaped mountain in the middle, ringed by its road with three harbour towns; Paxos to the south-east, three hilly sections joined by narrow necks, with deep bays between them and towns on their shores. A compass rose in the top-right corner sends rhumb lines across the sea, with wave marks between the islands.
Logical clocksOrdering Without Clocks LinearizabilityMany Copies, Acting as One SnapshotsTaking Stock Without Stopping FLPThe Limits of Agreement Partial synchronyAgreeing When Messages Run Late Ben-OrAgreeing by Chance Failure detectorsTelling the Absent from the Slow CAPAnswering While Cut Off Byzantine generalsAgreeing Among Liars PaxosThe Part-Time Parliament ViewstampedOne Writer at a Time PBFTKeeping Order Among Liars HotStuffChanging Leaders Among Liars EpidemicsSpreading by Word of Mouth PBSProbably Up to Date CRDTsChanges That Never Clash HATsWhat You Can Promise Alone CALMKnowing When to Wait
Each red arc is one changed assumption or demand. The whole family, and its ten techniques ›

25 landmark papers in distributed computing explained using the same ancient Greece allegory employed by Leslie Lamport in his seminal paper, “The Part-Time Parliament (Paxos)”.

Every book reads two ways. Allegory tells the papers as stories of ancient Greece; Computing tells the same pages in the papers' own terms, with processes, messages and their figures. Switch at any point in any book with the switch at the top of the page: you stay where you are on the page, and the choice follows you from book to book.

All eighteen books ↓

Places that share no clock and talk only by messenger can still act as one.

Processes that share no clock and communicate only by messages can still behave as one.

The books

Eighteen books, setting by setting

Tour
Inside the Chamber at noon: a messenger in blue crosses the sunburst floor between the columns while two legislators sit on the benches along the wall

Paxos · The ChamberConsensus with crashes

Part-Time Legislators Passing LawsConsensus & Replicated State Machines

Consensus & Replicated State Machines

Part-time legislators who wander in and out, each with their own scroll, passing laws by notes that messengers may carry late, twice or never. Across three trials, the Chamber tests the limits of agreement, attendance slates, and majority quorums.

Processes that crash, with messages delayed for any time (FLP, failure detectors), or that crash and recover with stable storage, with messages lost or duplicated (Paxos).

Who
Part-time legislators, each with a scroll
Word
Messengers across the floor and olive groves
Sent
Decree notes, attendance slates, and ballots
Inside the Tholos of Schedia, under the timber rafters of the roof: a legislator in saffron sits writing at her bench while a runner crosses the spiral floor

Paxos · SchediaPrimary-backup and Byzantine replication

One Law Kept in the TholosPrimary-Backup & BFT Replication

Primary-Backup & BFT Replication

In the round hall of Schedia, one writer at a time writes the city's law scroll, sending lines to the others by runner. When democratic reform replaces the five elders with four legislators chosen at random by lot, they must keep order even when one of them lies.

Leader-driven state-machine replication with view changes: first under benign crash faults, then surviving Byzantine liars, moving from all-to-all echoes to linear chained certificates.

Who
Five legislators, then four drawn by lot; one is the writer
Word
A runner to each bench across the stone floor
Sent
Petitions, numbered lines, seals and bundles
Under a clouded sky, a file of loaded carts follows the ring road along a low sea cliff, the calm sea at the left and scrub and cypresses on the slope above

Arche · The Ring RoadLogical time and consistency

Three Houses Keeping OrderClocks, State & Linearizability

Clocks, State & Linearizability

Three trading houses that keep no common hour, sending one another slips and goods down a road on which no messenger can pass another.

Three processes, no shared clock, reliable FIFO channels. Everything a process knows is in its own log or has arrived as a message.

Who
Three trading houses with no common hour
Word
Messengers and carts; nobody overtakes
Sent
Requests, goods, and the tallies on the papyrus
The north camp at night: a lone linen tent on a bare clearing under a full moon, olive trees and tall cypresses black against the sky beyond

Arche · The Foot of Mount PhyleConsensus and its limits

Four Mercenaries Who Must AgreeConsensus & Crash Faults

Consensus & Crash Faults

Four mercenaries at the foot of Mount Phyle, one to a tent and out of sight of one another, who must all attack or all hold. Between the siege of Chance, Time, and Lost Birds, they overcome late messages when mountain winds drop, defeat delays with the toss of an Athenian coin, and face hunting hawks that cut a tent off from the rest.

Four processes, asynchronous channels with delays, and one process that may crash. Overcoming crash impossibility through partial synchrony and randomized tie-breaking, and the partition boundary of the CAP theorem.

Who
Four mercenaries in separate tents
Word
Ravens, delayed by gusts or intercepted by hawks
Sent
Sightings at dusk, turns, coin flips, and standing plans
By moonlight, the crown of Mount Phyle from just above: the chief stands inside the round wall of huge rough stones, one bandit waits down the hill outside it and another watches from the shadow of the wall

Arche · The Crown of Mount PhyleByzantine faults

Four Bandits Who Must Agree Though Some LieByzantine Faults

Byzantine Faults

Four bandits at posts out of sight of one another, who must all hold or all scatter, with word between them only by rat. Nobody dies up here. But some of them may lie, and nobody ever learns which.

Four processes, any of which may behave arbitrarily: send conflicting messages, or none. Each signs with a key no one else can forge.

Who
Four bandits; some of them may lie
Word
Rats, on short runs that always arrive
Sent
Orders under seal: hold or scatter
A library seen from above among olive trees and cypresses: a scholar walks along the path beside it with a scroll

Paxos · The Scholars' CoastWeak consistency

Libraries That Agree in the EndReplication Without Assembly

Replication Without Assembly

Libraries up and down a coast, each keeping its own copy of one compendium of knowledge, changing it at once and sending word of every change by courier. Nothing waits for a vote: everyone ends of one mind, by merging rather than by assembly.

Replicas that answer from local state without coordination, and converge only eventually. The question here is what that can still promise.

Who
Libraries, each with its copy of the compendium
Word
Couriers, who may be stopped
Sent
Revised entries, scrolls, notices of withdrawal
The oracle at the fork from the hillside above its road in the evening light: the pale road climbing through scrub to the low walled enclosure, the great oak and the small tiled temple inside it, and the calm bay and its hills beyond

Paxos · The Oracle at the ForkCoordination, and when it is needed

Students Asking Which Life to LeadWhen Coordination Is Needed

When Coordination Is Needed

Groups of students who ask an oracle whether the work they mean to do together lets them live as scholars, apart and never waiting, or makes them live as legislators, who wait for everyone.

Coordination is needed exactly where a program is not monotone, and nowhere else.

Who
Groups of students, and the priestess of the oracle
Word
A strip of lead to the oracle; couriers between posts
Sent
Their work, and the counsel: north or south