What Is Fault Tolerance - and When Redundancy Is Just Wasted Money

Fault tolerance is the property of a system that keeps producing correct results while some of its parts are broken. Not "recovers quickly" and not "rarely breaks" — fault tolerance means the failure happens, the system notices, and the work continues without a human in the loop.

The problem it exists to solve is simple arithmetic. Every component you depend on has some probability of failing, and when you chain components together those probabilities add up. A request that touches a load balancer, three services, and a database has five chances to fail, and at scale "unlikely" happens every day.

The word people reach for next is redundancy, and that is the right instinct but the wrong stopping point. Two of something only helps if the system can tell which one is lying, route around the bad one, and reconcile the state afterwards. That last part is where the cost lives, and it is the part most teams underestimate. System with various wires managing access to centralized resource of server in data center

ConceptFault Tolerance (FT)
Where it sitsArchitectural property - spans infrastructure, data layer, and application logic; not a component you install
In one sentenceA fault-tolerant system continues to operate correctly when one of its components fails, because the failure was anticipated in the design rather than handled by a person.

The 60-Second Answer

What it does: keeps the system serving correct results while a component is down — a node, a disk, a network link, an availability zone.

The problem it solves: individual component failures becoming whole-system outages. Without it, every dependency is a single point of failure and your availability is the product of all of them.

The one cost it adds: coordination. Redundant copies have to agree on what the truth is, and agreement costs latency, write throughput, and a large amount of design complexity in your failure paths.

The distinction people get wrong: fault tolerance vs high availability — high availability targets uptime (how often you are reachable); fault tolerance targets correctness under failure (whether the answer is right while something is broken). You can be highly available and still serve stale or wrong data.

How It Actually Works

1. Every dependency is a failure domain, and you have to name them

Enumerate before you duplicate

Before adding redundancy you need the list of things that can independently fail: processes, hosts, disks, racks, network segments, availability zones, and the shared services underneath them. A failure domain is a boundary inside which one event takes everything out — two VMs on the same hypervisor are one domain, not two.

The design work is placing your redundant copies in different domains. Three replicas on one rack survive a process crash and nothing else.

⚠️ In production — The failure domains you did not write down are the ones that get you. Two "independent" regions sharing one DNS provider, one certificate authority, or one deploy pipeline are correlated, and correlated failure is what turns a redundancy plan into a simultaneous outage. Shared control planes are the most commonly missed domain.


2. Redundancy gives you a spare; it does not give you a decision

N+1 is necessary, not sufficient

Redundancy comes in two shapes. Active-active runs every copy serving traffic, so a failure removes capacity but needs no switchover. Active-passive keeps a standby idle or warm, which is cheaper to reason about but means the standby's readiness is untested until the moment you need it.

Neither shape, by itself, does anything. Something still has to observe the failure and change where the work goes.

⚠️ In production — Passive standbys rot. The replica that has never served a request has an unprimed cache, an unexercised config path, and possibly a broken deploy from three releases ago. If you run active-passive, you need to force a failover on a schedule, in production — otherwise your spare is a hypothesis.


3. Detection is a timeout, and timeouts cannot distinguish slow from dead

The core impossibility you design around

Failure detection is almost always a heartbeat plus a deadline: if a node has not responded within some window, it is declared failed. Over an asynchronous network there is no way to tell a crashed node from a slow one, or from a node you simply cannot reach right now.

So you pick a side of a tradeoff. Short timeouts detect real failures fast and also declare healthy-but-busy nodes dead. Long timeouts avoid false positives and leave you serving errors while you wait.

# the shape of the tradeoff, not a recommended value
health_check:
  interval: <short -> faster detection, more load, more false positives>
  timeout: <must exceed your p99 response time, or you fail healthy nodes>
  unhealthy_threshold: <consecutive failures; trades detection speed for stability>

⚠️ In production — A timeout set below your tail latency builds a failure amplifier. Load rises, p99 crosses the threshold, health checks fail, the node is removed, its traffic lands on the remaining nodes, their latency rises, and they get removed too. This cascade is a routine cause of full outages in systems that were only ever mildly overloaded.


4. Isolation stops one failure from becoming all of them

Contain before you fail over

Once a dependency is failing, the job is to stop callers from piling into it. A circuit breaker trips after a threshold of failures and fails subsequent calls immediately instead of waiting for each one to time out. Bulkheads cap the concurrency or connection pool each dependency may consume, so a slow downstream cannot exhaust every thread in the caller.

Without isolation, one slow dependency drags down endpoints that do not even use it, because they are all waiting on the same shared pool.

⚠️ In production — Retries without isolation are how you turn a partial failure into a total one. A struggling service that gets three retries per request now receives triple load at the worst possible moment. If you retry, you need exponential backoff, jitter, a retry budget as a fraction of total traffic, and a breaker that stops retrying when the error rate says the dependency is down rather than flaky.


5. Failover has to agree with itself or you get two leaders

Where consensus earns its cost

When a leader is declared dead and a replacement is promoted, the cluster must agree on exactly one new leader. If the old leader is merely partitioned and still believes it holds the role, you have split brain: two nodes accepting writes to the same logical dataset, and no clean way to merge the divergence.

This is why fault-tolerant systems run a consensus protocol or a quorum rule for leadership, requiring a majority before any promotion. A minority partition cannot elect a leader, so it stops accepting writes instead of forking history.

Fencing closes the remaining gap: the promoted leader gets a monotonically increasing term or epoch number, and the storage layer rejects writes stamped with an older one. The stale leader's writes fail even if it never learned it was deposed.

⚠️ In production — Quorum means availability is bounded by arithmetic, not effort. Lose a majority and the system correctly refuses to serve writes — that is the design working, and it will look like an outage to everyone watching. Also: an even number of voting members buys you nothing over the odd number below it, because majority of 4 and majority of 3 are both 3.


6. Replicated state has to be reconciled, and that is a product decision

Someone must choose what a stale read costs

Tolerating the loss of a node holding data means that data existed in more than one place, which means copies can diverge. Synchronous replication acknowledges a write only after replicas have it — no data loss on failover, at the cost of write latency bounded by your slowest replica. Asynchronous replication acknowledges immediately and ships changes behind, which is fast and means a failover can lose the unreplicated tail.

This is not an infrastructure choice. "We may lose the last few seconds of writes" is a different sentence for a session cache than for a payment ledger, and the answer has to come from whoever owns the data's meaning.

⚠️ In production — Semi-synchronous setups — acknowledge after one replica, not all — are the common middle ground, and they quietly reintroduce the problem if that one replica is in the same failure domain as the primary. Check where the acknowledging replica actually lives, not just how many you have.


7. Graceful degradation is the cheapest fault tolerance you will buy

Partial answers beat error pages

Not every dependency deserves a redundant copy. For many of them the better design is to keep serving without it: render the product page without the recommendation strip, serve the last known-good config when the config service is unreachable, accept the write and defer the non-critical side effect to a queue.

This requires classifying dependencies as critical or optional up front, and writing the fallback path deliberately. It is design work rather than infrastructure spend, which is why it tends to be skipped in favour of buying another node.

⚠️ In production — Fallback paths that are never exercised are broken. The cached-config path that has not run in six months has a stale schema; the "skip recommendations" branch throws a null pointer. Degradation paths need to be in tests and, better, triggered deliberately in production behind a flag.


8. Unexercised fault tolerance is a claim, not a property

You only know if you have broken it

Every mechanism above is a hypothesis about behaviour during a failure that has not happened yet. The only way to convert it into knowledge is to cause the failure on purpose: kill the leader, blackhole a replica's network, saturate a disk, drop an availability zone — ideally in production, during business hours, with people watching.

Start with the smallest blast radius you can measure, in staging if you must, and work upward. The goal is not to prove the system is resilient; it is to find which assumption was wrong while you are rested and looking.

⚠️ In production — Most of what these exercises find is not the mechanism failing — it is the surrounding machinery. Alerts that did not fire, a runbook naming a service that was renamed, a dashboard that does not distinguish "degraded" from "down", or a failover that works and takes long enough that upstream clients have already given up.

A woman writes 'Use APIs' on a whiteboard, focusing on software planning and strategy. ## Where You Meet It
  • A managed relational database running a primary with a synchronous standby in a second availability zone. When the primary's host dies, the control plane promotes the standby and repoints the DNS endpoint. Fault tolerance here is doing two jobs: the synchronous replica guarantees the committed writes survived, and the fencing in the storage layer guarantees the old primary cannot come back and write. Your application still sees a connection error and must reconnect — the tolerance is at the data layer, not in your client.
  • A stateless HTTP service behind a load balancer, with several instances spread across zones. The load balancer health-checks each instance and stops routing to failures. This is the cheap case: because the service holds no state, the only thing fault tolerance costs you is the spare capacity, and the only real design decisions are the health check thresholds and whether you have enough headroom to absorb a lost zone.
  • A Kafka-style log where each partition has replicas and producers can require acknowledgement from a quorum before a write is considered durable. Consumers track their own offsets, so a consumer crash means reprocessing from the last committed offset rather than losing messages. The fault tolerance is explicitly configurable, and it is where you confront the durability-versus-throughput tradeoff directly: stronger acknowledgement requirements cost you producer throughput.
  • A payment flow that writes an intent record before calling the external provider and reconciles asynchronously. If the service crashes between the call and the response, the intent is still there, and a reconciliation job queries the provider for the real outcome. This is fault tolerance implemented purely in application logic — no extra nodes, just idempotency keys and a durable record of what was attempted.
  • A CDN serving stale-while-revalidate content when the origin is unreachable. Users keep getting pages, slightly out of date, instead of errors. This is graceful degradation standing in for redundancy: the origin is a single point of failure and nobody built a second one, because serving yesterday's page is an acceptable answer for this content.

When You Actually Need It

  • A single component's failure currently takes down the whole system, and you can name that component. The classic shape is one database primary with no standby, or one host running a process every request depends on.
  • You have unplanned outages whose root cause is routine hardware or infrastructure events — a host retired, a disk failed, a zone degraded — rather than bugs in your own code. That pattern means the failures are inevitable and only the response is in your control.
  • Recovery currently requires a human: someone gets paged, logs in, and runs a promotion or a restart. Your availability floor is then your on-call response time, which is measured in tens of minutes no matter how good the team is.
  • The cost of being down or wrong for the duration of a manual recovery exceeds the engineering and infrastructure cost of automating it. Write both numbers down; for a lot of internal tooling the manual path genuinely wins.
  • You have a contractual or regulatory durability requirement — "no committed transaction may be lost" — which forces synchronous replication regardless of what the availability math says.
  • Your dependency graph has fan-out, so one slow downstream can exhaust shared resources in its callers. Isolation mechanisms are worth it here even before you add any redundancy.

When You Don't

  • Below roughly one machine's worth of load and with a tolerable maintenance window, skip it. An internal tool with a few hundred users, where an hour of downtime during the day is annoying rather than costly, is correctly served by one well-monitored instance, automated backups with a tested restore, and a process supervisor that restarts on crash. A tested restore path beats an untested failover path, and it costs a fraction as much to maintain.
  • When your outages are caused by your own deploys and bugs, not infrastructure. Redundancy does not help, because the bad code is on every replica. Spend the effort on staged rollouts, fast rollback, and a health signal good enough to automate the rollback — that addresses the actual failure mode.
  • When you cannot articulate your data loss tolerance yet. Choosing synchronous replication to be safe adds write latency to every request forever, and choosing asynchronous to be fast quietly accepts losing the recent tail. Pick a target first, even a rough one, then pick the mechanism; defaults made by whoever set up the database are not a decision.
  • When the operational complexity will exceed your team's capacity to run it. A multi-region active-active deployment run by three people who are also shipping features will produce more incidents than the single-region setup it replaced, because every failure now has a partition-tolerance dimension. Multi-AZ in one region is dramatically simpler and covers the common failures.
  • When graceful degradation would do. If the dependency is genuinely optional — recommendations, analytics, a nice-to-have enrichment — writing the fallback path is cheaper, simpler, and more reliable than making that dependency highly available. Make it optional in code instead of making it redundant in infrastructure.
  • When you have not instrumented the system yet. Fault tolerance mechanisms fail silently: a stuck replica, a breaker open for a week, a failover that happened and nobody noticed. Without per-dependency error rates, replication lag, and alerting you trust, you are adding machinery you cannot see. Build the observability first; it also tells you which failure is actually worth tolerating. Close-up of electronic components and wires inside industrial equipment.

What People Get Wrong

"Fault tolerance and high availability are the same thing."

They optimise for different properties. High availability is about the fraction of time you can serve requests; fault tolerance is about serving correct results while a component is broken. A system that fails over to an asynchronous replica is highly available and has just lost the writes that had not replicated — available, not fault-tolerant with respect to that data. Conversely, a quorum system that refuses writes when it loses a majority is behaving in a fault-tolerant way precisely by being unavailable. When you hear fault tolerance vs high availability debated, the useful question is which failures you tolerate and what you give up in each: uptime, correctness, or both.

"We run three replicas, so we can lose two nodes."

That is true for read availability and false for writes in any quorum-based system. Three replicas with majority quorum tolerate one failure — two down means no majority and writes correctly stop. Tolerating two failures needs five voting members. Replica count and failure tolerance are related by the quorum rule, not one-to-one, and the marketing material rarely spells that out.

"The cloud provider handles fault tolerance for us."

They handle it for their layer and expose a contract for yours. Managed storage replicates your data and replaces failed hosts; it does not make your application idempotent, retry safely, or tolerate a connection dropping mid-transaction. Every managed service has a documented failure behaviour — a promotion window, an endpoint that repoints, an eventual-consistency guarantee — and your code has to be written against it. Most "the database failed over and we had an incident anyway" postmortems end at the client's reconnect and retry logic.

"Adding redundancy makes the system more reliable."

It changes the failure mode, and whether it improves overall reliability depends on whether the added coordination machinery is more reliable than the component it protects. Every redundancy mechanism introduces new failure modes: split brain, failover storms, health-check flapping, replication lag surprises. A meaningful share of large outages are caused by the fault tolerance machinery misfiring rather than by the original fault. Redundancy helps when the failures you are protecting against are genuinely independent and the coordination is simple enough to stay correct.

Why It Was Built This Way

The constraint that shapes all of this is that you cannot distinguish a crashed process from a slow one across a network you do not control. This is not an engineering shortfall that better tooling will fix; it is a property of asynchronous message passing. If messages can be delayed arbitrarily, no observer can ever conclude "that node is dead" rather than "that node's reply has not arrived yet." Every detection mechanism is therefore a guess with a deadline attached.

Once you accept that, the rest of the design follows with very little freedom. Because detection can be wrong, a node can be declared dead while it is still running and still believes it holds the leader role — so you need majority quorum to ensure only one side of a partition can act, and fencing tokens to ensure the deposed leader's in-flight writes are rejected by the storage layer rather than merely discouraged. Because a majority must be reachable to make progress, the system has to stop serving writes when it cannot assemble one. That is not a bug in the implementation; it is the price of never forking history. What was traded away is availability during partition, deliberately, in exchange for not having to merge two divergent versions of your data later — which in the general case is not a technical problem but a business one with no correct answer.

The second trade sits in replication. Synchronous replication costs you the latency of your slowest replica on every write, and it makes a degraded replica into a throughput problem for the whole system. Asynchronous replication gives the latency back and hands you a window of possible data loss on failover. There is no configuration that eliminates both, because the acknowledgement either waited for the second copy or it did not. Everything in between — semi-synchronous, quorum writes, tunable consistency — is a way of choosing how much of each you want, not a way of escaping the choice.

This is also why fault tolerance resists being bought. The mechanisms are available off the shelf and most of them are well implemented. What cannot be outsourced is the judgement: which failures you will tolerate, what a lost write costs you, and how much availability you will trade for correctness. A team that has those three answers written down can configure almost any modern system correctly. A team that has not will inherit someone else's defaults and discover what they chose during an incident.

Related Briefs

What to Read Next

  • high availability vs disaster recovery
  • what is split brain in distributed systems
  • CAP theorem explained simply
  • circuit breaker pattern

Fault tolerance is not a tier you buy; it is a set of explicit answers to "which failures continue serving, and what do we give up to make that true." Start by naming the single points of failure you actually have and the cost of each being down, then reach for the cheapest mechanism that covers it — a tested restore, a fallback path, and a bulkhead solve more real incidents than a second region does. The machinery you add becomes part of the system that can fail, so add only what you can exercise and observe.

댓글

이 블로그의 인기 게시물

What Is a Message Queue - and When You Actually Don't Need One

What Is a Bloom Filter - and When You Actually Don't Need One

When to Use GraphQL Over REST API - and When REST Is Still the Right Call