High Availability System Design
HA eliminates single points of failure: Load Balancer → Multiple App Servers in different AZs → Primary DB + Replica + Backup/Monitoring/Failover. No single point of failure, multi-zone deployment, automatic failover, health checks. HA vs single server: shared traffic, multi-zone, DB replica, health checks trigger failover, better uptime.
Overview
Designed to survive failure
High Availability (HA) means designing a system to operate continuously with minimal downtime, even when individual components fail. Production systems are designed to SURVIVE failure, not avoid it.
An HA system is built in layers, and every layer has a spare. User traffic first reaches DNS or a global load balancer, which passes it to a regional load balancer. That load balancer spreads requests across app servers in Zone A, Zone B and Zone C. All of them read and write one primary database with read replicas behind it, and backups, monitoring and automatic failover watch over that data tier. The rest of this chapter explains why each layer is there.
Key concepts
- Single Point of Failure (SPOF)
- RTO (Recovery Time Objective)
- RPO (Recovery Point Objective)
- Active-Active vs Active-Passive
- Health checks
- Availability Zone (AZ)
Interview questions
- Design a highly available web application on AWS.
- What is the difference between RTO and RPO and how do they drive architectural decisions?
Sign up free to read the full topic
More DevOps topics
- gRPC & Protocol Buffers
- Hardware-in-the-Loop CI
- HashiCorp Vault
- Helm 4 Migration
- Helm vs Kustomize
- HelmRelease and helm-controller
- How User Requests Travel in Kubernetes
- HTTP 4xx and 5xx in Kubernetes — Which Hop Sent It and How to Fix It
- IaC Governance
- IaC State Management
- Identity, Secrets and Config Errors — Workload Identity, Stale ConfigMaps and Secret Stores
- Image Update Automation
Start free on Cariara · Coding problems · System design studio