Fault Tolerance, High Availability, and Disaster Recovery Questions
Keeping a system serving despite failure, from code-level resilience to infrastructure-level recovery: circuit breakers, retries with backoff and jitter, timeouts, bulkheads, graceful degradation, and preventing cascading failures, alongside redundancy, failover (active-active versus active-passive), RPO and RTO objectives, backup and restore, and multi-region failover. Covers dependency-failure isolation, chaos engineering to validate resilience, failure-mode analysis, designing to nines of availability, cost-versus-availability tradeoffs, and recovery runbooks. Spans both the patterns that isolate partial failure and the disaster-recovery planning that restores a business-critical system after a major outage.
A circuit breaker is flapping: it trips every time the error rate blips to 5% for about a minute, then closes, then trips again a few minutes later. Walk through why this is probably happening and what you'd change about the breaker's configuration to fix it.
Sample Answer
Direct answer
Flapping like this, tripping on a brief 1-minute blip and closing again a few minutes later, is almost always caused by an evaluation window that's too short and a threshold that's checked as a raw instantaneous rate instead of a smoothed one, with no hysteresis between the open and closed conditions. The fix is to require the elevated error rate to persist for a sustained period before tripping (smoothing or a minimum-duration requirement), and to require a different, lower threshold sustained for a while before closing again (hysteresis), so the breaker doesn't oscillate around a single threshold value that noisy traffic keeps crossing in both directions.
Why this specific symptom happens
A breaker that evaluates a short window (say a single 10 to 30 second bucket) against a fixed absolute threshold (say 3 to 5 percent) will trip the instant any one bucket crosses that number, regardless of whether the elevated rate is a real sustained problem or a one-minute noise blip from a handful of slow requests. Once it trips and the cooldown expires, it closes again because the very next window looks normal, and then trips again a few minutes later the next time normal traffic variance happens to produce another short blip above the same threshold. The breaker isn't wrong that error rate crossed 5 percent, it's wrong that a single brief crossing is sufficient evidence of a real outage worth failing traffic away from a service that's actually healthy most of the time.
Fixes, in order of how much they change behavior
1. Smoothing the signal. Replace the raw per-window rate with an exponential moving average (EMA), so a short spike gets damped rather than immediately crossing the threshold:
EMAt=αxt+(1−α)EMAt−1With α=0.2, a baseline error rate of 1 percent, and a 1-minute burst of 5 percent sampled every 10 seconds (6 samples):
EMA1EMA2EMA3EMA4EMA5EMA6=0.2(0.05)+0.8(0.01)=0.018=0.2(0.05)+0.8(0.018)=0.0244=0.2(0.05)+0.8(0.0244)=0.02952=0.2(0.05)+0.8(0.02952)=0.033616=0.2(0.05)+0.8(0.033616)=0.036893=0.2(0.05)+0.8(0.036893)=0.039514Against a 3.5 percent trip threshold, the raw signal crosses it on sample 1 (5 percent, instantly), but the EMA doesn't cross 3.5 percent until sample 5, roughly 50 seconds into the burst. That 50-second delay is the point: it means a true 1-minute-and-done blip barely trips the breaker at all (it only just crosses right as the burst is ending), while a genuinely sustained failure keeps climbing well past threshold and trips decisively.
2. Hysteresis between open and close conditions. A breaker actually cycles through three states: closed (normal, calls flow through), open (tripped, calls are rejected outright without even trying the dependency), and half-open (a brief trial period after opening where a small number of requests are deliberately let through to test whether the dependency has actually recovered) before it's allowed back to closed. Use a different, lower threshold to close than to open, and require it sustained for a minimum duration, not a single good sample: for example, trip open at EMA > 3.5 percent sustained for 2 evaluation periods, but only close from half-open back to closed once EMA stays below 2 percent (not 3.5 percent) for 2 consecutive periods. This asymmetry is what actually stops the flap-then-immediately-reopen cycle, because closing requires meaningfully cleaner traffic than the level that caused the trip, not just traffic that's dipped fractionally under the same number.
3. Minimum sample size. Require a floor on request volume before evaluating the rate at all (for example at least 200 requests in the window); at low traffic volumes a handful of failed requests can swing the percentage wildly even though the absolute failure count is tiny, and no smoothing scheme fixes a rate computed from too small a denominator.
4. Gradual re-entry. When the breaker closes, ramp traffic back in (5 percent, then 20 percent, then full) rather than snapping straight back to 100 percent, so a dependency that's only marginally recovered doesn't get immediately re-tripped by the full traffic load the instant it reopens.
Trade-offs & pitfalls
Every one of these fixes trades detection speed for stability: a smoothed, hysteresis-gated breaker takes longer to trip on a real outage than a naive instant-threshold one, which is the correct trade for a dependency where false trips are expensive (unnecessary failover, alert fatigue), but the wrong trade for something where even a few seconds of cascading failure is unacceptable, so the constants here (alpha, thresholds, minimum duration) should be tuned against the actual cost asymmetry for that specific dependency, not copied from another service. A subtler pitfall is that smoothing and retries interact: if callers retry failed requests, each retry counts as an additional data point in the error-rate window, so a retry storm during a real degraded period can itself inflate the EMA further and trip the breaker faster than the underlying failure rate alone would justify, which is usually the desired outcome (retries are evidence something is actually wrong) but is worth knowing explicitly rather than discovering by surprise. Validating any change to these constants should happen by replaying real historical traffic traces (including past incidents and known-noisy periods) through the new policy offline, comparing false-trip rate and time-to-detect-real-outage against the old policy, before rolling the new thresholds out as a canary.
Design a globally distributed account or ledger service that must guarantee strong consistency for balance updates, no lost or double-spent funds, while still serving users worldwide. Where does availability have to lose to correctness, and how do you minimize the damage?
Sample Answer
Direct answer
Correctness has to win outright for balance mutations: shard accounts across a consensus group (Raft is the standard choice for its operational clarity) with a single elected leader per shard, and require every write to reach a majority quorum of replicas before it's acknowledged as durable. Availability pays for this in write latency, since a quorum commit has to wait for the slowest replica in the majority, not just the leader, and during a leader failure there's a real (bounded, but nonzero) window where that shard's writes are unavailable while a new leader is elected. The way to minimize the damage is to make that window as short as possible through fast leader election and leader leases, and to make the latency cost as small as possible through deliberate quorum placement, not by weakening the consistency guarantee itself.
Architecture
flowchart TD
LB[Global load balancer] --> A1[Region A: 2 replicas, leader here]
LB --> B1[Region B: 2 replicas]
LB --> C1[Region C: 1 replica]
A1 --> RAFT[Raft group, N=5, quorum=3]
B1 --> RAFT
C1 --> RAFT
RAFT --> LEDGER[Append-only transaction log]
Accounts are partitioned by account ID using consistent hashing (a hashing scheme where each account maps to a position on a ring of shards, chosen so that adding or removing a shard only reshuffles a small fraction of accounts instead of nearly all of them) into shards; each shard is its own independent Raft group with its own leader, so write throughput scales by adding shards rather than being bottlenecked by one global leader. Client writes route to the shard's current leader; reads can be served from the leader for strict linearizability (every read reflects the most recent completed write, as if all operations happened one at a time in real-time order), or from a follower with a leader-issued lease for bounded-staleness reads that don't need to pay quorum latency.
Deriving the quorum
For a Raft group of N replicas, a write commits once it's replicated to a majority:
Q=⌊2N⌋+1For N=5:
Q=⌊25⌋+1=2+1=3The number of simultaneous replica failures the group tolerates while still having a live quorum is:
Ftolerated=N−Q=5−3=2Placement and latency
Place the 5 replicas as 2 in the leader's home region (Region A), 2 in a second region (Region B), and 1 in a third region (Region C). This placement matters for two separate reasons. First, region-level fault tolerance: losing Region A or Region B (2 replicas each) leaves exactly 3 replicas, which is exactly quorum, so the group survives the loss of any single region without losing write availability, precisely because no single region holds more than Ftolerated=2 replicas. If any region instead held 3 replicas, losing that region alone would drop the group below quorum.
Second, latency: because Raft only needs a majority, not all 5, the leader can commit as soon as 2 of the 4 followers acknowledge (its own copy plus 2 acks makes 3, quorum). The fastest 2 acks available are the local Region-A follower (low latency, same region) and whichever of Region B or Region C responds first:
commit latency≈max(RTTlocal follower, min(RTTA,B,RTTA,C))With an assumed same-region RTT of 2ms and cross-region RTTs of 70ms (A to B) and 90ms (A to C):
max(2, min(70,90))=70 msThe commit is gated by the faster of the two remote regions, not the slower one, and not by all four followers, which is the concrete reason majority quorum beats "wait for everyone": a design that required all 5 replicas to ack would pay the 90ms worst-case RTT on every write instead of the 70ms best-of-two.
Leader failover
On leader loss, followers detect the missing heartbeat after an election timeout and hold a new election; the group is unavailable for writes to that shard for roughly the election-timeout-plus-one-round-trip window, which is why election timeouts are tuned as short as reliably possible without causing spurious elections from ordinary network jitter. A leader lease (the leader holds exclusive write authority for a short renewable period) lets followers serve bounded-staleness reads without contacting the leader at all, and automated leader transfer for planned maintenance (the outgoing leader hands off cleanly before stepping down) avoids paying the full election-timeout cost for maintenance events, which are predictable and shouldn't cost the same as an unplanned crash.
Cross-shard transfers
A single-shard write (both accounts in a transfer live in the same shard) is a normal Raft-committed entry, no special handling needed. A cross-shard transfer needs coordination between two independent Raft groups: a coordinator writes a prepare entry to both shards' logs, and only commits the transfer once both shards' local quorums have accepted the prepare; if either shard fails to prepare within a timeout, the coordinator writes a compensating abort entry to whichever shard did succeed, rather than leaving the transfer half-applied. This is deliberately simpler than a general two-phase-commit protocol across arbitrary participants, because both sides are already individually linearizable Raft logs, so the coordinator's job is narrowly "get both to agree" rather than solving distributed consensus from scratch.
Trade-offs & pitfalls
The quorum design directly trades latency for correctness: every write pays at least the RTT to the nearest remote region in the placement, which is unavoidable if you actually want the durability guarantee (a write acknowledged locally-only in Region A could be silently lost if Region A is the one that fails), and no client-side retry logic fixes a fundamentally under-replicated design. A common mistake is treating replica count as the only lever, when placement matters just as much: 5 replicas concentrated so that one region holds 3 gives you the same N=5, Q=3 numbers on paper, but a single region failure then drops the group below quorum, which defeats the entire point of geographic redundancy even though nothing about the Raft math itself is wrong. Idempotency and fencing tokens are non-negotiable additions on top of the consensus layer: a Raft term number rejects stale writes from a leader that's since been superseded, and a client-supplied idempotency key prevents a transaction from being double-applied if a client retries after a timeout that turned out to be a lost acknowledgment rather than a real failure, not a rejected write.
A downstream service you depend on starts responding slowly, and requests to it start backing up on your side, growing queues and increasing latency. Walk through your immediate mitigations and your longer-term architectural fix, and explain the trade-off each one introduces.
Sample Answer
Direct answer: The immediate priority is to stop the slowdown from consuming your own resources: set aggressive timeouts, open a circuit breaker so you stop calling the failing dependency, and isolate the connection/thread pool used for that call so it can't starve everything else. The longer-term fix is architectural: decouple the caller from the dependency's latency entirely, usually via an async queue or by making the call non-blocking, so a slow downstream degrades throughput instead of taking the whole service down with it.
Structured elaboration
Why this happens (the mechanism): by Little's Law, the number of requests in flight L equals arrival rate λ times the time each request spends in the system W: L=λW. If a downstream call's latency goes from 50ms to 500ms while your request rate stays at, say, 200 requests/second, the in-flight count grows from L=200×0.05=10 to L=200×0.5=100, a 10x increase, purely from the latency change with no change in incoming traffic. If your thread or connection pool was sized for ~10-20 concurrent in-flight requests to that dependency, it's now exhausted, and requests start queueing on your side, which is exactly the symptom described.
Immediate mitigations (minutes, not a redesign):
| Mitigation | What it does | Trade-off it introduces |
|---|---|---|
| Tight timeouts | Caps how long you'll wait, preventing unbounded queue growth | Cuts off requests that might have succeeded a moment later; needs to be shorter than your own SLA to the caller |
| Circuit breaker | Stops calling the dependency once error/latency crosses a threshold, failing fast instead of queueing | Can trip on transient blips if thresholds are too sensitive; denies service even to calls that might succeed |
| Bulkhead (isolated pool) | Gives this dependency its own thread/connection pool so its slowdown can't exhaust pools shared by healthy dependencies | Reduces pooled efficiency (can't borrow capacity across dependencies); requires knowing sizing up front |
| Load shedding / fast 503 | Rejects excess requests immediately when queue depth crosses a threshold, protecting the instances still healthy | Directly reduces availability for shed requests; needs to shed selectively, not randomly, if some requests matter more |
Longer-term architectural fix:
- Decouple via an async queue: put a durable queue between the caller and the slow dependency so the caller can return quickly (accept-and-acknowledge) and the dependency is drained at its own sustainable pace, rather than the caller blocking on it synchronously. Trade-off: the caller can no longer return a synchronous success/failure for that operation; the interaction model has to change to something the client and product can tolerate (a "pending" state, a webhook, a poll).
- Idempotent retries with backoff and jitter: if retries are needed, they must be capped, exponential, and jittered so a fleet of callers doesn't retry in lockstep and re-create the exact overload it's recovering from. Trade-off: added complexity, and retries must be provably idempotent on the downstream side or they risk duplicate side effects.
- Capacity planning against the tail, not the average: provision the dependency (or the pool sized to call it) based on observed p99 latency, not p50, since it's the tail that determines when queues start building. Trade-off: costs more standing capacity for headroom that's idle most of the time.
Applying this to concrete variants of the same pattern: the reasoning above is the same whether the slow dependency is a payment-validation service (immediate: circuit breaker + fast-fail with a clear "try again" to the user rather than a silent hang; long-term: async payment confirmation via webhook), a message-queue consumer falling behind (immediate: shed or dead-letter the oldest low-priority messages, bulkhead the consumer pool by message type; long-term: scale consumers horizontally and partition by priority), a retry storm from a flood of client-side 503s (immediate: the client-side backoff-with-jitter above is the direct fix; long-term: make the shedding threshold adaptive so it doesn't itself become the trigger for a thundering herd), or a synchronous order-processing pipeline backing up (immediate: bulkhead the slow stage's pool; long-term: convert that stage to the async-queue pattern above).
Trade-offs & pitfalls
- Every immediate mitigation above trades some availability or correctness for stability: timeouts drop requests that might have succeeded, circuit breakers deny service during their open window, load shedding sacrifices some requests to save the rest. The point isn't to avoid the trade-off, it's to make it deliberately and visibly rather than let an unbounded queue make it for you via an eventual crash.
- A common wrong turn: adding retries as the first response to a slowdown. Naive retries without backoff amplify load on an already-struggling dependency and can turn a partial slowdown into a full outage (a retry storm).
- Circuit breakers and bulkheads need to be tuned against real traffic and latency distributions; thresholds copied from a different service's runbook are a common source of either false trips (unnecessary unavailability) or no protection at all (thresholds too loose to matter).
Staff-level: propose an enterprise resilience strategy for handling dependency failures across hundreds of services and multiple third-party APIs. Cover reusable patterns, governance, telemetry, runbooks, and how you'd prioritize the fastest reduction in customer impact given an existing high-MTTR baseline.
Sample Answer
Direct answer
At hundreds-of-services scale, resilience can't be a per-team decision made independently for each service, because the inconsistency itself becomes the risk: one team's excellent circuit-breaker tuning doesn't help if the team three hops upstream never implemented one at all. The strategy has four layers that reinforce each other: reusable patterns shipped as shared libraries so teams don't reinvent (and mis-implement) the same primitives, governance that makes resilience a gate rather than a suggestion, telemetry that gives every team and the org as a whole a common picture of dependency health, and runbooks that turn "we know this failure mode exists" into "here's exactly what an on-call engineer does about it at 3am." Given an existing high-MTTR baseline, the fastest reduction in customer impact rarely comes from writing more resilience code first; it comes from instrumenting what's actually failing today and fixing the highest-blast-radius gaps, because at this scale intuition about "which dependency is riskiest" is usually wrong.
Reusable patterns
Ship standardized client libraries (one per major language in use) that implement the standard resilience toolkit for calling another service: something to stop hammering a dependency that's already failing, something that spaces out and caps retries so they don't pile on, something that enforces how long a call is allowed to wait, and something that stops one slow dependency from exhausting resources other calls need. (Named precisely, for readers who want the specific patterns: circuit breakers, jittered exponential backoff with retry budgets, timeout and deadline propagation, and bulkhead-style connection pooling.) Ship these as versioned SDKs or a sidecar proxy (a small helper process deployed alongside the service, in its own container but sharing the same host or pod, that intercepts outbound network calls and applies the retry/timeout/circuit-breaker logic on the service's behalf, so the service's own code doesn't have to implement the pattern itself) for languages that can't easily share a library. The goal isn't just code reuse, it's that every team's circuit breaker behaves the same way under the same conditions, so an incident responder who understands one service's failure behavior can reason about any other service's failure behavior too. A pattern catalog with runnable examples for each pattern (service-to-service versus third-party dependency, since third parties often need more conservative defaults) makes correct usage the path of least resistance.
Governance
| Mechanism | What it enforces |
|---|---|
| SLI/SLO declaration per service (SLI: the metric you measure, like latency or success rate; SLO: the target you commit to for that metric) | Every service that calls another declares what it needs (latency, success rate) from that dependency, making implicit expectations explicit and auditable |
| Architecture review gate | New services and new external integrations pass a resilience checklist (timeouts set, retries bounded, circuit breaker present) before launch, not retrofitted after an incident |
| Third-party vetting checklist | New vendor integrations are assessed for SLA terms, documented retry/rate-limit behavior, and escalation contacts before the integration ships, since a third-party outage is not something your own SDK can fully protect against |
| CI-enforced lint rules | Timeouts, bounded retries, and SLO annotations are checked automatically at merge time, catching the class of bug where a developer forgot a timeout entirely rather than relying on code review to catch it |
Telemetry
Every SDK emits standardized telemetry (circuit-breaker state transitions, retry counts, latency histograms, per-dependency error codes) into a shared observability stack, feeding a small number of org-wide dashboards: a dependency heatmap showing which services are the riskiest single points of failure by fan-in (the number of other services that call into this one; a high fan-in means many things break at once if it fails), a per-service SLO burn-rate view, and a "top failing third parties" view that surfaces vendor issues before they've caused five separate team-level incidents that nobody connected. Alerting on SLO burn rate and on sudden spikes in open-circuit count catches emerging problems before they cascade, rather than after an incident is already customer-visible.
Runbooks
Per-dependency runbooks covering detection, mitigation (force-close or force-open a circuit, apply emergency throttling, shift traffic to a degraded mode), rollback, and escalation contacts, with the common actions automated (a CLI or button to toggle a circuit breaker, not a manual code deploy) so response time doesn't depend on someone remembering the right kubectl incantation under pressure. Runbooks that are only tested during real incidents are unreliable; quarterly tabletop exercises (a facilitated walkthrough where the on-call team talks through their response to a scripted incident scenario out loud, step by step, without touching any real production system) simulating a specific third-party outage validate that the documented steps actually work and that the on-call rotation knows where to find them.
Prioritizing remediation against a high-MTTR baseline
Given limited engineering time, the fastest reduction in customer impact comes from ranking services by (fan-in × current failure rate × missing-resilience-pattern count), not by which team is loudest or which service feels intuitively risky. Tracing the formula through a small, illustrative example makes the ranking concrete: Service X has fan-in 50, a current failure rate of 2% (0.02), and 3 missing resilience patterns, scoring 50×0.02×3=3.0; Service Y has fan-in 5, a much higher failure rate of 10% (0.10), but only 1 missing pattern, scoring 5×0.10×1=0.5; Service Z has fan-in 200, a low failure rate of 0.5% (0.005), and 2 missing patterns, scoring 200×0.005×2=2.0. Ranked by score, the fix order is X (3.0), then Z (2.0), then Y (0.5), even though Y's raw failure rate is the highest of the three, because Y's small blast radius (only 5 callers) and already-thin gap list make it a low-leverage fix by comparison. A service with 50 upstream callers and no circuit breaker is a much higher-leverage fix than a service with 2 callers and a full resilience suite already in place, even if the second service "feels" more important because it's customer-facing. Concretely: instrument telemetry first (you can't rank what you can't see), fix the highest fan-in gaps first (biggest blast-radius reduction per engineering-hour), and treat "ship the shared SDK" and "mandate its use via the architecture-review gate" as sequential, not simultaneous, since a library nobody's required to adopt doesn't move the MTTR number regardless of how good it is.
Trade-offs & pitfalls
Uniform SDK adoption is the ideal, but legacy or polyglot systems make a single shared library impractical everywhere; a sidecar-proxy approach extends the same governed behavior to services that can't easily embed the SDK, at the cost of an extra network hop and an additional piece of infrastructure to operate. Mandating resilience patterns through architecture-review gates works for new services but does nothing for the hundreds of already-shipped services that predate the gate, so rollout has to include a deliberate retrofit plan (again, prioritized by the fan-in ranking above) rather than assuming the gate alone will fix the fleet over time. The biggest governance failure mode at this scale is treating the checklist as a one-time approval rather than a continuously monitored property. A service that passed its architecture review with a correctly-configured circuit breaker two years ago can silently regress (a config change, a library version bump that changed defaults) with nobody noticing until the next incident, which is exactly what the telemetry layer's continuous SLO-burn alerting is meant to catch that a point-in-time review cannot.
What's the difference between redundancy and replication when it comes to service reliability? Walk through an example for a stateless service and a stateful service, and name a failure mode that redundancy alone doesn't protect against for the stateful one.
Sample Answer
Direct answer: Redundancy is having extra, interchangeable components standing by so one can take over if another fails; replication is actively keeping copies of state (data) synchronized across multiple nodes so the state itself survives a failure, not just the compute that serves it. They're often used together, but they solve different problems: redundancy alone is enough for a stateless service, because any interchangeable instance can serve any request; a stateful service needs replication too, because a fresh redundant instance with no data isn't actually a working replacement.
Structured elaboration
| Aspect | Redundancy (stateless) | Replication (stateful) |
|---|---|---|
| What's duplicated | Compute/serving capacity | Data/state itself |
| Failover requirement | Route traffic to a healthy instance; done | Promote a replica that has the data, and ensure it's sufficiently up to date |
| Consistency concern | None, any instance is interchangeable | Central concern: how in-sync are the replicas at failover time |
| Typical mechanism | Load balancer + auto-healing instance group | Leader-follower or multi-leader data replication |
Stateless example: a set of identical app server instances behind a load balancer, handling API requests with no local state. If one instance dies, the load balancer routes around it and an autoscaler replaces it; the new instance needs no data transfer because there was never any instance-local state to lose. This is pure redundancy: extra interchangeable copies of the same stateless computation.
Stateful example: a primary-replica database. The primary accepts writes; replicas continuously receive a copy of the write stream (replication). If the primary fails, a replica is promoted to take over. Unlike the stateless case, simply having an extra database instance running (redundancy alone, no replication) would give you an empty database, not a working replacement, because there's no mechanism copying the actual data into it.
A failure mode redundancy alone doesn't protect against, for the stateful case: data loss or corruption on the primary itself. If the primary's disk corrupts a row, or a bad write silently corrupts application-level data, having a redundant (but not yet caught-up, or synchronously replicating that same bad write) standby doesn't help, because either the standby doesn't have the data yet (async lag) or it faithfully replicated the corruption along with everything else (synchronous replication of a logically bad write). Redundancy protects against a node dying; it does not protect against the data itself being wrong, that requires backups (a separate, point-in-time copy decoupled from live replication) and, for silent corruption specifically, checksums or application-level validation.
How this generalizes: a useful mental checklist for fault tolerance covers five distinct techniques, and redundancy and replication are only two of them: retries (recover from a transient failure by trying again), bulkheads (isolate one failure from spreading to unrelated resources), failover (the mechanism that switches traffic to a healthy replacement), redundancy (having that replacement exist at all), and replication (making sure the replacement actually has the state it needs). A strong answer names which of these a given design decision is actually addressing, since "redundancy" gets used loosely to mean all five in casual conversation.
Trade-offs & pitfalls
- Replication has a cost redundancy alone doesn't: network bandwidth, storage for extra copies, and a consistency model to reason about (synchronous replication costs write latency; asynchronous replication risks data loss on failover, the classic RPO trade-off).
- A common wrong turn: assuming "we have 3 replicas" automatically means "we're protected," without checking replication lag. A replica that's minutes behind at failover time silently loses however much data arrived in that window, unless the promotion logic explicitly accounts for lag and refuses to promote a too-far-behind replica.
- Redundancy for stateless services is comparatively cheap and low-risk to over-provision; replication for stateful services is not, since more replicas means more write-path coordination overhead (for synchronous replication) or more divergence risk (for asynchronous/multi-leader), so it isn't a "just add more" lever in the same way.
Unlock Full Question Bank
Get access to all Fault Tolerance, High Availability, and Disaster Recovery interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.