Volume 8 · Chapter 1 — High Availability, Disaster Recovery and Safe Change

High Availability Fundamentals

Goutham Mayaluri 8 min read AWSCloudHigh AvailabilityDisaster Recovery

1.1 Introduction

For a bank, downtime means customers can’t access their money and the institution loses trust and revenue, so high availability - keeping the system running despite failures - is a first-class requirement, not a nice-to-have. High availability rests on a simple but demanding idea: assume every component will fail, and design so that no single failure takes the system down. This chapter establishes the fundamentals - redundancy, eliminating single points of failure, and multi-AZ design - that underpin everything else in this volume and are core interview material.

1.2 What High Availability Means

High availability means the system remains operational and accessible even when individual components fail - measured as uptime, often expressed in “nines” (99.9%, 99.99%), where each additional nine means dramatically less allowed downtime. Achieving it is fundamentally about assuming failure: hardware fails, instances die, even whole data centres go down, and a highly available system is designed so those inevitable failures don’t cause an outage. This is a shift in mindset from hoping things don’t break to expecting them to break and ensuring the system survives it. The practical consequence is that availability comes from architecture - redundancy and automatic recovery - not from making individual components more reliable.

1.3 Eliminating Single Points of Failure

The central technique is eliminating single points of failure - any component whose failure alone brings down the system. If there’s exactly one of something on the critical path (one instance, one database, one load balancer, one Availability Zone), its failure is an outage waiting to happen. The remedy is redundancy: provide more than one of everything critical so the failure of any single instance is absorbed by the others. This means multiple application instances behind a load balancer, a database with a standby, load balancing across redundant paths, and spreading across multiple Availability Zones. The discipline is to walk the architecture and ask, for each component, “what happens if this one fails?” - and wherever the answer is “the system goes down,” add redundancy.

flowchart TB
  subgraph SPOF[Single points of failure - fragile]
      C1[One instance] --> DB1[(One database)]
  end
  subgraph HA[Redundant across AZs - resilient]
      LB[Load Balancer] --> A1[Instance AZ-A]
      LB --> A2[Instance AZ-B]
      A1 & A2 --> DBP[(Primary DB)]
      DBP -. sync standby .-> DBS[(Standby AZ-B)]
  end
  SPOF -->|add redundancy, remove SPOFs| HA

1.4 Redundancy and Automatic Recovery

Redundancy only delivers availability if failures are handled automatically. It’s not enough to have a standby if switching to it requires a human at 3am; the system must detect failure and recover on its own. This is where the earlier building blocks combine: load balancers health-check targets and route around failed ones, Auto Scaling groups replace failed instances automatically, and managed databases fail over to their standby automatically. Automatic detection and recovery is what turns redundancy into genuine high availability - the failure happens, the system routes around or replaces the failed component within seconds, and customers barely notice. A design with redundancy but manual recovery still suffers meaningful downtime on every failure.

1.5 Multi-AZ as the Baseline

The concrete baseline for high availability on AWS is multi-AZ design, as introduced earlier: spread the application across multiple Availability Zones so the loss of an entire AZ - which does happen - removes only part of your capacity, not all of it. Subnets in at least two (ideally three) AZs, application instances distributed across them behind a load balancer, and a database with a standby in another AZ, all with automatic failover, is the standard production pattern. This protects against the failure of any instance and of any whole data centre within the Region. Multi-AZ is the expected default for any production system, and its absence - everything in one AZ - is the most common availability flaw.

1.6 Banking Production Scenario

A bank designs its core service with no single points of failure. Application instances run across three Availability Zones in an Auto Scaling group behind a load balancer that health-checks them and routes only to healthy targets. The database runs Multi-AZ with a synchronous standby in a second AZ and automatic failover. NAT gateways are deployed per AZ. Every failure is handled automatically: a dead instance is replaced by Auto Scaling, an unhealthy one is removed by the load balancer, and a database or AZ failure triggers automatic failover - all within seconds and without paging anyone. The bank regularly asks “what if this component fails?” of every part of the architecture and adds redundancy wherever the answer would be an outage, achieving the high availability its customers depend on.

1.7 Troubleshooting: Availability Weaknesses

Availability problems trace to single points of failure or manual recovery. An outage caused by one instance, one database, or one AZ failing means a single point of failure on the critical path - add redundancy across instances and AZs. Downtime on every failure despite having a standby means recovery is manual, not automatic - wire up health checks, Auto Scaling replacement, and automatic database failover. Everything running in a single Availability Zone is the classic flaw - spread across at least two. A dependency with only one instance (a single cache node, a single gateway) is a hidden SPOF - make it redundant. The diagnostic method is to walk every component on the critical path and ask what happens if it fails; wherever the answer is “outage,” that’s a SPOF to eliminate with redundancy and automatic recovery.

Interview Question

How do you design a highly available system on AWS?

I design for high availability by assuming every component will fail and ensuring no single failure can take the system down - which means redundancy, elimination of single points of failure, automatic recovery, and multi-AZ deployment. The mindset is the starting point: hardware fails, instances die, and even whole data centres go down, so rather than hoping components don’t break, I expect them to and design the system to survive it, because availability comes from architecture, not from making individual components more reliable. The central technique is eliminating single points of failure - any component whose failure alone brings down the system. If there’s exactly one of something on the critical path - one instance, one database, one load balancer, one Availability Zone - its failure is an outage waiting to happen, so I add redundancy: more than one of everything critical, so the failure of any single one is absorbed by the others. Concretely that’s multiple application instances behind a load balancer, a database with a standby, and redundant paths. But redundancy only delivers availability if failures are handled automatically - a standby is useless if switching to it needs a human at 3am - so I rely on automatic detection and recovery: load balancers health-check targets and route around failed ones, Auto Scaling groups automatically replace failed instances, and managed databases automatically fail over to their standby, so a failure is routed around or replaced within seconds and customers barely notice. The concrete baseline on AWS is multi-AZ design: I spread the application across multiple Availability Zones - subnets in at least two, ideally three, with instances distributed across them behind a load balancer and a database with a standby in another AZ, all with automatic failover - so the loss of an entire AZ removes only part of the capacity, not all of it, and the load balancer and Auto Scaling keep the system serving from the healthy zones. Multi-AZ is the expected default for any production system, and running everything in one AZ is the most common availability flaw. My practical method is to walk the architecture and, for each component on the critical path, ask “what happens if this one fails?” - and wherever the answer is “the system goes down,” I add redundancy and automatic recovery. For deeper protection I also consider multi-Region for whole-Region failures, but multi-AZ with redundancy and automatic recovery is the foundation. So a highly available design is redundant with no single points of failure, spread across multiple Availability Zones, and recovers automatically from failures - which is exactly what keeps a bank’s services running when, not if, components fail.

Chapter Revision Notes

  • High availability = staying operational despite component failures; achieved by assuming failure and designing around it, measured in “nines.”
  • Eliminate single points of failure - any component whose sole failure causes an outage - with redundancy (more than one of everything critical).
  • Redundancy needs automatic detection and recovery (health checks, Auto Scaling replacement, automatic DB failover) - manual recovery still means downtime.
  • Multi-AZ is the baseline: spread across 2-3 AZs so losing a whole data centre removes only part of capacity.
  • Method: walk every critical component and ask “what if this fails?” - add redundancy wherever the answer is “outage.”