Availability & the Nines

What 99.9% vs 99.99% really means, what a single point of failure is, and how high availability is achieved.

Beginner6 min read
Language
Theme
The nines = allowed downtime per year99%3.65 days99.9%8.8 hours99.99%53 minutes99.999%5.3 minutesHA = no SPOFredundancy + failover
Key idea at a glance

Availability is a number, not a vibe

Availability = uptime / (uptime + downtime). "Reliability" is the broader idea: the system does the right thing, at the right time, even when parts fail. Availability is the part of reliability you can write into a contract (SLA/SLO), so let us do the math properly.

The nines, converted into downtime

  • 99% (two nines): 3.65 days/year down. A weekend-long outage every month or so.
  • 99.9% (three nines): 8.8 hours/year. Acceptable for many internal tools.
  • 99.99% (four nines): 52.6 minutes/year. Serious production systems.
  • 99.999% (five nines): 5.3 minutes/year. Telecom-grade; brutally expensive.

Each extra nine is roughly 10x less downtime and easily 10x more engineering cost. "We want five nines" without a budget is not a requirement, it is a wish.

Availability math: serial and parallel

Serial chain: request goes LB -> app -> DB. If each is 99.9%, the chain is 0.999 x 0.999 x 0.999 = 99.7%. Every component you add lowers total availability. Fewer moving parts is an availability strategy.

Parallel redundancy: two components where either can serve: 1 - (1 - 0.999)^2 = 99.9999%. Redundancy is how you buy nines. This is the entire reason for replicas, multi-AZ deployments and active-passive failover pairs.

Single points of failure (SPOF) hunting

Walk the request path and ask "if this dies, does the user notice?" for every box: one LB (add a failover pair or use a managed LB), one app server (run at least 2, behind the LB), one DB primary (replica + automatic failover), one Redis (sentinel/cluster), one queue (it is replicated already, usually), one engineer who knows the deploy command (documentation is availability too).

Failure detection and failover

Redundancy is useless without fast detection. Health checks (LB-level, every few seconds), heartbeats (service-level), and a failover mechanism: DNS failover (slow, minutes), virtual IP takeover (fast), or managed multi-AZ failover (RDS promotes a replica in ~60-120 seconds). Know your failover time, because downtime = detection time + failover time, not just crash time.

Worked example

Target: 99.95% for a web API. LB: managed (multi-AZ, ~99.99%). App: 3 stateless servers across 2 zones. DB: primary + replica with auto-failover (~99.9% effective). Chain: 0.9999 x 0.999 x 0.999, roughly 99.9%. To hit 99.95 you would improve the weakest link first: DB failover automation and health-check tuning, not a fourth app server.

Common interview traps

  • Claiming "high availability" with one database.
  • Adding components to be "robust" and accidentally lowering serial availability.
  • No answer for "how does the system notice the primary died, and how long does failover take?"

Interview Q&A

Q: How do you get from three nines to four?
A: Remove SPOFs with redundancy (multi-AZ everything), automate failover so detection + promotion is under a minute, add health checks and alerts, and practice failure (game days). The jump from 99.9 to 99.99 is mostly operational discipline, not new components.

Q: Is 100% availability possible?
A: No. Networks partition, disks die, humans deploy bugs. The honest goal is a target number of nines per feature, plus graceful degradation so failures hurt less.

Key takeaways

Interview pointer

Interviewer: 'How much availability do we need?' You: 'I would ask the business, but for e-commerce 99.99% is typical. That means multi-zone deployment, automatic failover, and redundancy at every tier.' Balancing cost and need is senior thinking.