Availability maths for system design: the nines and allowed downtime, composite availability for serial and parallel dependencies, redundancy across zones and regions, SLA vs SLO, MTTR and MTBF, and designing to a realistic Azure target.
Availability is the fraction of time โ or better, of requests โ that succeed. The nines translate to a monthly downtime budget: 99.9% โ 43 minutes, 99.95% โ 22 minutes, 99.99% โ 4.3 minutes, and 99.999% โ 26 seconds. Serial dependencies multiply: an app at 99.95% that needs a database at 99.99% and a payment API at 99.9% can't beat ~99.84%. Parallel redundancy gives 1 โ (1 โ a)โฟ, but only for independent failures, which is why zones and regions matter. Availability is also MTBF รท (MTBF + MTTR), so above 99.95% recovery must be automated. Cloud SLAs are credit promises, not engineering guarantees. The trade-off: each extra nine roughly multiplies cost and complexity, so I set targets per user journey.
"I'd start by translating the nines into minutes, because that changes the conversation. Over a 30-day month, 99.9% is about 43 minutes of downtime, 99.95% is about 22, 99.99% is about four and a half, and five nines is 26 seconds โ less than one deployment rollback. Then I'd ask: availability of what, measured how? I measure it as a request-based SLI: good requests over valid requests at the load balancer or from synthetic checks, per user journey. Checkout and login might need 99.95%; the monthly report can live with 99.5%.
Then the maths. Hard dependencies in series multiply. If the API on App Service is 99.95%, Azure SQL zone-redundant Business Critical is 99.995% and a payment provider is 99.9%, checkout can't do better than roughly 99.84%, before our own bugs. Redundancy in parallel adds nines: two independent copies at 99.9% give 1 โ 0.001ยฒ, about 99.9999% โ but only if they fail independently, which is why I spread across availability zones in Australia East rather than run two instances in one. For example, at [company] we [had a 99.95% target for an ordering API and kept missing it because of a synchronous call to a loyalty service]. I [made the loyalty call asynchronous through Service Bus with a cached fallback], [and measured availability went from 99.82% to 99.97% over the next quarter].
The mistake I see is treating vendor SLAs as engineering numbers. An Azure SLA is a promise of service credits, not a guarantee of uptime, and it doesn't count your own deploys and bugs, which cause most outages. The other lever is MTTR: availability is MTBF over MTBF plus MTTR, and at four nines you can't wait for a human to wake up. So when someone asks for five nines, I tell them the cost, offer four nines on the critical journey, and design out the hard dependencies first."
| Target | Per 30-day month | Per year | What it implies |
|---|---|---|---|
| 99% | 7.2 h | 3.65 days | Single instance, manual recovery |
| 99.9% | 43.2 min | 8.76 h | Redundant instances, tested deploys |
| 99.95% | 21.6 min | 4.38 h | Zone redundancy, automated failover |
| 99.99% | 4.3 min | 52.6 min | Multi-zone everything, automatic recovery, safe deploys, often multi-region |
| 99.999% | 26 s | 5.3 min | Active-active multi-region, cell architecture, very expensive |
Arithmetic: 30 days ร 24 h ร 60 min = 43,200 min; ร (1 โ 0.999) = 43.2 min.
| Structure | Formula | Example |
|---|---|---|
| Serial (all required) | aโ ร aโ ร โฆ | 0.9995 ร 0.99995 ร 0.999 โ 0.9984 |
| Parallel (any one enough) | 1 โ โ(1 โ aแตข) | two regions at 0.9995 โ 1 โ 0.0005ยฒ โ 0.99999975 (before failover risk) |
| With failover | parallel ร failover success rate | Failover that works 95% of the time caps the gain |
| Lever | Effect | Cost |
|---|---|---|
| Remove hard dependencies (cache, queue, fallback) | Takes terms out of the product | Eventual consistency, degraded UX |
| Zone redundancy | Independent failure within a region | Usually modest extra cost |
| Multi-region (Australia East + Southeast) | Survives a regional outage | Data replication, failover testing, 2ร cost |
| Lower MTTR (auto-healing, fast rollback, feature flags) | Shorter outages | Engineering and tooling |
| Safer change (canary, blue-green) | Fewer self-inflicted outages | Pipeline work |
SLA figures must be checked against the current Microsoft SLA pages; as of November 2026, Microsoft lists 99.995% for zone-redundant Azure SQL Business Critical and 99.99% for non-zone-redundant configurations.
An ordering API with a 99.95% SLO had five hard dependencies; the calculated ceiling was 99.86%, matching what we measured. Making two dependencies asynchronous and caching a third raised the ceiling to 99.97%, and canary deployments cut self-inflicted downtime from [~40] to [~8] minutes a quarter.
Checks whether the candidate can turn an availability target into numbers and design consequences, rather than repeating marketing terms.
Green flags
Red flags
A 10-minute outage at 3 a.m. and a 10-minute outage at peak are the same time-based but very different request-based.
user -> Front Door -> API -> SQL
99.99% 99.95% 99.995%
composite = 0.9999 x 0.9995 x 0.99995 โ 0.99935 (โ 28 min/month)
Every hard dependency reduces the ceiling. The number of hard dependencies on a critical path is a design smell to count.
+-> zone 1 instance (99.9%)
LB ------+-> zone 2 instance (99.9%) P(all down) = 0.001^3 = 1e-9
+-> zone 3 instance (99.9%)
The formula assumes independence. Correlated failures โ the same bad deploy to all instances, a shared config store, a regional DNS problem โ break it. That's why most real outages come from change, not hardware.
Availability โ MTBF / (MTBF + MTTR). With one failure a month (MTBF โ 43,200 min):
| MTTR | Availability |
|---|---|
| 60 min | 99.86% |
| 15 min | 99.97% |
| 2 min | 99.995% |
At four nines, detection plus recovery must take a few minutes: health probes, automatic instance replacement, automatic rollback.
An SLO of 99.95% gives a budget of 0.05% of requests. Spend it on releases and experiments; when it's gone, freeze risky changes. This makes availability a negotiated product decision.
Australia East (Sydney) has availability zones; Australia Southeast (Melbourne) is its paired region. Multi-region designs must handle data replication (active geo-replication or failover groups for Azure SQL, multi-region writes for Cosmos DB) and data residency โ both stay inside Australia.
requests | summarize ok = countif(success) * 1.0 / count()).A tiny calculator for composite availability and downtime budgets, useful in design docs and tests.
namespace Reliability;
public static class Availability
{
private static readonly TimeSpan Month = TimeSpan.FromDays(30);
// All dependencies are required: availabilities multiply.
public static double Serial(params ReadOnlySpan<double> parts)
{
var result = 1.0;
foreach (var a in parts) result *= a;
return result;
}
// Any one replica is enough: 1 - P(all fail). Assumes independent failures.
public static double Parallel(double each, int replicas) =>
1 - Math.Pow(1 - each, replicas);
public static TimeSpan MonthlyBudget(double target) => Month * (1 - target);
}
// var checkout = Availability.Serial(0.9999, 0.9995, 0.99995, 0.999); // โ 0.99835
// Availability.MonthlyBudget(checkout); // โ 71 minutes
// Availability.Parallel(0.999, 3); // โ 0.999999999
Measuring request-based availability from Application Insights:
requests
| where timestamp > ago(30d) and name startswith "POST /checkout"
| summarize total = count(), good = countif(success == true and duration < 2s)
| extend availability = round(100.0 * good / total, 3)
Availability is a negotiation about money and user impact. Seniors bring three things: the downtime budget in minutes, the composite ceiling from the dependency chain, and the honest observation that most downtime is self-inflicted. The best availability investment is often fewer hard dependencies and faster rollback, not a second region. Architecture matters too: splitting a monolith into microservices that call each other synchronously turns one dependency into many and lowers the ceiling, unless the calls become asynchronous. Use the platform's automatic recovery to cut MTTR โ App Service health check and auto-heal, Container Apps and AKS liveness and readiness probes, Azure SQL automatic failover โ and measure what it actually achieves in a chaos test.
| Target | When it fits | Rough cost | When not to |
|---|---|---|---|
| 99.9% | Internal tools and back-office: an HR leave app, an admin portal, a nightly reporting service | Baseline | Revenue-critical public journeys |
| 99.95% | Most customer-facing APIs: product catalogue, customer account pages | Zone redundancy, safe deploys | When a cheaper target meets the business need |
| 99.99% | Revenue or safety-critical journeys: checkout and payments, login, clinical systems | Multi-zone, often multi-region, on-call maturity | Teams without automated recovery |
| 99.999% | Rare: telco, core banking rails | Active-active cells, big team | Almost every SaaS product |
Fault tolerance means the system keeps working, perhaps degraded, when parts fail. I design it in layers:
Then I prove it with chaos tests and failover drills. The trade-off is cost and complexity versus downtime: zone redundancy is cheap, multi-region active-active is expensive, so the availability target decides.
An SLI is a measurement of user experience expressed as a ratio of good events to valid events, for example requests to /api/orders answered in under 300 ms with a non-5xx status รท all requests. An SLO is the internal target for that SLI over a rolling window, such as 99% over 28 days. An SLA is the external contract with financial penalties, deliberately looser than the SLO (say 99.5% vs 99.9%) so you breach the SLO first.
To turn a latency percentile into an SLO, rephrase it as a threshold ratio: "99% of requests complete in under 300 ms", computed from the ASP.NET Core http.server.request.duration histogram buckets, not by averaging p99s. The error budget is 1 โ SLO: at 99.9% over 30 days that is about 43 minutes or 0.1% of requests. When the budget is spent, risky releases pause and reliability work takes priority. The trade-off: each extra nine costs far more engineering and infrastructure.
A load balancer spreads traffic across healthy instances.
Health checks remove unhealthy instances (in Kubernetes: readiness for traffic, liveness for restarts). Algorithms: round robin, least connections/requests, hashing. Sticky sessions pin a user to one instance, which hurts scaling and failover. Connection draining stops new traffic to an instance before shutdown so in-flight requests finish.
gRPC uses long-lived HTTP/2 connections, so an L4 balancer balances connections, not calls: one client connection carries all its calls to one pod. Use L7 balancing (mesh/Envoy) or client-side load balancing.
How to tell it (STAR)
**S:** Our [food ordering] API kept missing its [99.95%] SLO. **T:** I needed to find why and fix it without a big rebuild. **A:** I computed the composite ceiling from our five hard dependencies and showed we couldn't hit the target even on a perfect month; most failures came from the loyalty call. I made that call asynchronous with a cached fallback, turned on zone redundancy and automated rollback. **R:** Measured availability went from [99.82%] to [99.97%] over the next quarter and burn-rate pages dropped to [one] a month.
Last updated 23 Nov 2026.