Skip to content
Sponsor: NimblePros → Software architecture, modernization, and training for high-performing development teams. Work with us.
Fallacy: Failures Are Independent

Fallacy: Failures Are Independent

Failures Are Independent

The fallacy that failures are independent is not one of the eight classic Fallacies of Distributed Computing, but it undermines many systems that were carefully designed to survive unreliable networks. It is the assumption that when one component fails, others are no more likely to fail at the same moment.

Table of Contents

What the Fallacy Assumes

Redundancy math usually starts with an assumption of independence. If one server is available 99% of the time, then two redundant servers - where either can handle the load - are unavailable only when both fail: 1% × 1% = 0.01%, for 99.99% availability. Add a third and you reach 99.9999%.

That arithmetic is only true if the two servers fail for unrelated reasons. They rarely do.

Why It’s False

Redundant components usually share far more than their designers realize:

  • Shared infrastructure. Replicas in the same rack share a switch and power supply. Replicas in the same availability zone share a building. Replicas in the same cloud region share a control plane.
  • Shared dependencies. Every instance may depend on the same DNS provider, identity provider, certificate authority, configuration service, or database. When that dependency fails, every “redundant” instance fails with it.
  • Shared code and configuration. Identical instances run identical code. A bug triggered by a particular input, date, or data size triggers on every instance. A bad configuration push reaches all of them at once.
  • Shared time bombs. Certificates, secrets, and licenses created together expire together. Counters that overflow at a fixed value overflow everywhere at once.
  • Shared load. When one instance fails, its traffic moves to the survivors, which may then be overloaded and fail in turn. Clients that all retry immediately multiply the load just as the system is weakest - a retry storm.

This is why so many large outages are cascading failures: one small fault exposes a shared dependency or overloads the remaining capacity, and the failure spreads.

Designing for Correlated Failure

These are some of the techniques that help limit how far a single failure spreads:

  • Find shared fate. Map every dependency, including infrastructure and third-party services, and identify which ones all your redundant copies have in common.
  • Spread redundancy across failure domains. Place replicas in different availability zones or regions, and consider different providers for critical dependencies such as DNS.
  • Limit blast radius. Partition the system into isolated cells, each serving a subset of customers with its own copy of the stack, so a failure in one cell doesn’t affect the others.
  • Use bulkheads. Give each dependency its own connection pool, thread pool, or queue, so one slow dependency can’t exhaust shared resources.
  • Stagger changes. Roll out code and configuration gradually - one cell, zone, or region at a time - with automated health checks that halt the rollout.
  • Prevent retry storms. Use exponential backoff with jitter, retry budgets, and circuit breakers so clients back off rather than pile on.
  • Leave headroom. Run with enough spare capacity that the surviving instances can absorb the load of a failed zone. See Downstream Capacity Is Infinite.
  • Stagger expirations. Track certificate and secret expirations and rotate them automatically, well before they expire.

Related Concepts

References