Distributed systemsnetsplit

Network partition

Definition

A network partition is a fault in which messages between some groups of nodes are lost or delayed indefinitely, while each group keeps running and may still talk to clients.

In practice

Partitions are not rare edge cases: a failed switch, a misconfigured firewall rule, a congested link between data centres or a long GC pause all look the same to the other side. During a partition each node must choose between refusing requests (consistency) and answering with data that may be stale or conflicting (availability), which is the core of the CAP theorem.

Partitions can be partial or one-way: A reaches B and B reaches C, but A cannot reach C. A node cannot distinguish a partition from a crashed peer, only from the silence. Designs should decide in advance what each side does, typically by letting only the side with a majority accept writes.

Example

A cross-region link drops for 3 minutes; the 3-node majority in eu-west keeps serving writes, while the 2 nodes in us-east reject writes and serve reads marked as possibly stale.