Topic 193 / Core
Fault tolerance and failure isolation
Chapter 12.1 · High Availability and Failover
What and why
Topic 192's redundancy math only pays off if failures are actually independent; fault tolerance is designing a system to keep operating when a component fails anyway, and failure isolation is the discipline of containing a failure to the smallest possible blast radius so it can't become a correlated failure that defeats redundancy. Builds on: → 192 (high availability).
Diagram
How it works
- Enumerate the failure modes that matter for the system (a process crash, a disk failure, a network partition, a whole data center going dark) — fault tolerance is only as good as the failure modes it was designed against.
- Draw a boundary around each unit of failure (an instance, a shard, a zone) so that a failure inside it cannot propagate outside it — this is isolation, and it's a deliberate architectural choice, not a side effect.
- Detect the failure quickly and reliably (→ 127, heartbeats and gossip) — a boundary that contains a failure is useless if nothing notices the failure happened.
- Once detected, the system either routes around the failed unit (redundancy, → 194) or degrades the function that unit provided rather than failing the whole request (→ 154, graceful degradation).
- Verify isolation by checking shared dependencies across the boundary — a shared database, a shared credential store, or a shared network path crossing an otherwise isolated boundary quietly turns it back into one failure domain.
Practical example
(illustrative). A service runs across 3 availability zones, each holding exactly one-third of its capacity. One zone fails entirely. With genuine isolation (no shared dependency across zones), the service loses exactly 1/3 of capacity — 33% — and the remaining two-thirds continue serving traffic. If, instead, all three zones shared one connection pool to a single database instance in zone 1, the "isolated" zones 2 and 3 lose their only shared dependency the moment zone 1 fails, and the real loss is 100%, not 33% — the isolation only existed on paper.
When to use it
- Use isolation boundaries when: a single failure (one machine, one zone, one dependency) could otherwise take down the whole system.
- Avoid: adding isolation boundaries without verifying there's no shared dependency crossing them — isolation that isn't actually independent is wasted engineering effort.
- Failure scenarios: a shared dependency silently crossing an isolation boundary (the practical example); failure detection too slow to make isolation matter — by the time the failure is noticed, it already propagated; a bulkhead or cell boundary drawn around the wrong unit, so the thing that actually fails together (e.g., a noisy-neighbor tenant, → 211) isn't contained by it.
- Simpler alternative: for a system with low failure cost and a single, well-understood deployment target, one well-monitored instance may be enough — isolation boundaries are worth their complexity once a single failure's cost is unacceptable.
Practice
(decision kind — judge scenarios and defend the choice; 15–20 min, paper). For each of three systems — a single-region internal tool, a payment service, a multi-tenant SaaS platform — name the isolation boundary (zone, shard, bulkhead, cell, or none) that fits, and name one shared dependency that would silently defeat it if not checked. Done when each answer names a concrete, checkable shared dependency, not a vague risk.
Key takeaway
Fault tolerance keeps the system running through a failure; isolation is what keeps that failure from spreading past a drawn boundary — and the boundary only works if no shared dependency crosses it. Done when you can: draw an isolation boundary around a given failure mode and name the shared dependency that would break it. Used next in → 194 (redundancy and failover, the mechanism isolated components use to take over), → 153 (bulkhead, the per-dependency version of this boundary), → 212 (cell-based architecture, the widest version of this boundary).
References
None — this topic makes no external claims.
Source directory