Bookmarks

Fallacies of distributed computing

A list of eight false assumptions about the network that make distributed systems fragile: some assumptions hold on a single computer and do not survive a network.

Also: the eight fallacies of distributed computing, eight fallacies of distributed architectures

checked 8 Nov

All terms

Each item on the list is a mistake that is easy to make by carrying the habits of single-machine code into a system of many machines. The fallacies serve as a design checklist: for every item, ask what happens when it breaks.

The eight fallacies

  • The network is reliable.
  • Latency is zero.
  • Bandwidth is infinite.
  • The network is secure.
  • The network topology does not change.
  • There is one administrator.
  • Transport cost is zero.
  • The network is homogeneous.

What actually happens

FallacyReality
The network is reliableLinks fail: timeouts, retries, idempotence
Latency is zeroTens of milliseconds between data centres; a network call is no substitute for a local one
Bandwidth is infiniteLinks are finite, and large fetches and replication take up their capacity
The network is secureTraffic can be intercepted and tampered with: encryption and authentication are needed inside too
Topology does not changeServers, zones and routes change — addresses cannot be hard-coded
There is one administratorEvery part has its own owners and its own rules
Transport is freeTraffic and storage cost money, especially between zones and providers
The network is homogeneousA single deployment mixes operating systems, protocols and versions

Where the term comes from

The first four assumptions — the network is reliable, latency is zero, bandwidth is infinite, the network is secure — were formulated at Sun by Bill Joy and Lyon. Peter Deutsch added the fifth to seventh and wrote the list down as seven items, and around 1997 James Gosling added the eighth — “the network is homogeneous”. The list quickly spread as a reminder for designers and is still relevant in the cloud, where several of the items are put to the test most often.

Sources

the term is written from these pages

Verified 8 Nov

In depth in the references

where the topic is covered in detail