Course map

Topic 126 / Core

Partial failures and network partitions

Chapter 8.1 · The Nature of Distribution

What and why

Topic 125 named partial failure as permanent; this topic makes it concrete. A network partition is a break in connectivity that splits reachable nodes into two or more groups, each of which can still reach its own members but not the other group — and from either side, the other side looks exactly like "slow" or "dead," because a timeout is a guess about why a reply didn't arrive, never a fact about what happened on the far end. Builds on: → 125 (distributed systems fundamentals).

Diagram

Before partition:        After partition:
  A───B                     A───B      (A, B still reach each other)
  │ ╲ │                     ╲          (the link to C, D is cut)
  │  ╲│                      ╲
  C───D                     C───D      (C, D still reach each other)

Neither side can tell "the other side crashed" from "the other
side is fine but unreachable from here."

How it works

  1. A partition can come from a switch failure, a bad route, congestion, or a cut cable — the cause is irrelevant to the nodes experiencing it.
  2. Each side keeps running and can see only its own members; it cannot distinguish "the other side is down" from "the other side is fine but unreachable from here."
  3. A timeout is the only signal available, and it is ambiguous by construction: the request may never have arrived, may have arrived and still be processing, or may have arrived, finished, and had its reply lost.
  4. A design that assumes messages always arrive, arrive once, and arrive in order breaks the first time a partition proves any of those false; a design that assumes loss, duplication, and reordering from the start (idempotent retries → 38, 116; explicit ordering → 114, 134) survives one.
  5. A partition eventually heals; what the system did while it was split is the question topic 128 (CAP) answers.

Practical example

(illustrative). A 3-node cluster loses the link between node C and nodes A/B. A write arrives at C, which cannot reach A or B to replicate it. If C keeps accepting writes it now diverges from A/B — two histories to reconcile later (→ 134); if C refuses writes it stays correct but unavailable to C's own clients. Neither choice makes the partition not have happened.

When to use it

  • Use when: reasoning about any system with more than one node — the same risk exists even inside a single datacenter, where a top-of-rack switch is a partition waiting to happen.
  • Avoid when: substituting "our network is reliable enough" for a stated policy of what the system does during a partition — that policy is topic 128's job, not luck.
  • Failure scenarios: split brain (→ 72) — two nodes each believe they are the sole leader and both accept writes; a retry policy that treats a timeout as "did not happen" and double-submits a non-idempotent request.
  • Simpler alternative: none — partitions aren't opt-in. The real simplification is reducing how many nodes and network hops a given operation depends on.

Practice

(Process kind — paper exercise; 20 min, no lab services). For a described 2-node leader/follower pair with a stated partition between them, write the response a client gets, and whether data is lost or diverges, for each of: a read reaching the follower, a write reaching the leader, and a write attempted against the follower. Done when each of the 3 cases names a concrete, observable outcome, not "it depends."

Key takeaway

A network partition is a normal network event, not an edge case, and a timeout only tells you a reply didn't arrive in time — never why. Done when you can: given any node pair and a stated partition, describe the ambiguity a timeout leaves and name one concrete risk (lost write, split brain, duplicate effect) it creates. Used next in → 127, 128.

References

Kleppmann and Riccomini, Designing Data-Intensive Applications — see references.md.

Source directory

Search the guide