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

Start free on Cariara · Coding problems · System design studio