An AWS Application That Survives an Availability Zone Failure

A cross-AZ load balancer fronts application capacity in two Availability Zones with a Multi-AZ relational database.

Explore diagram

Explore on mobile. Create and edit manually or with AI on a computer.

AWS Availability Zone failure architecture diagram with a cross-zone load balancer, application capacity in two AZs, and RDS Multi-AZ failoverExplore diagram

AWS Availability Zone failure architecture diagram with a cross-zone load balancer, application capacity in two AZs, and RDS Multi-AZ failover. Open the image to explore this ready-made diagram.

Overview

An Application Load Balancer distributes requests across application capacity in two Availability Zones. If one zone fails, health checks stop routing to its targets and capacity in the healthy zone continues serving traffic. Amazon RDS Multi-AZ fails over relational data to its synchronous standby.

Components

  • Cross-AZ Load Balancer: Spans two public subnets and sends requests only to healthy application targets.
  • AZ A Capacity: Runs a stateless copy of the application in the first Availability Zone.
  • AZ B Capacity: Runs matching application capacity that remains available if AZ A fails.
  • RDS Multi-AZ: Replicates from the primary to a synchronous standby and promotes that standby when the primary becomes unavailable.

Failure Flow

  1. Under normal conditions, the load balancer distributes traffic across both Availability Zones.
  2. If one zone fails, health checks stop routing requests to its application capacity.
  3. The surviving zone continues processing requests without changing the public endpoint.
  4. If the database primary was in the failed zone, RDS promotes the standby and restores the database endpoint.

Customize First

  • Use Auto Scaling with a minimum healthy capacity in each Availability Zone.
  • Test application retries and database reconnection during a zone failure.
  • Add Route 53 or Global Accelerator only when regional failover is also required.

Related AWS guides

Use these practical explanations to compare services, failure boundaries, and operating tradeoffs before adapting the architecture.

Design rationale

Decisions that shape this architecture

1

Maintain useful capacity in both zones

A second subnet is not resilience by itself. The surviving zone needs enough healthy application capacity to carry the expected degraded load.

2

Route on health, not location

The Application Load Balancer stops sending requests to failed targets while keeping the same public endpoint. Health checks must represent application readiness accurately.

3

Design clients for database failover

RDS can promote the standby, but applications still need sensible connection timeouts, retry behavior, and DNS refresh handling during the transition.

Before production

Operational checks

Run a controlled zonal-failure exercise and measure recovery behavior.

Confirm each Auto Scaling group can place and replace capacity across zones.

Test RDS failover while the application is receiving realistic traffic.

Verify queues, caches, and other stateful dependencies are also resilient.

Scope and tradeoffs

What this diagram does not solve

Multi-AZ is not multi-Region disaster recovery

Both Availability Zones are inside one Region. A regional outage requires another regional stack, replicated data, and controlled traffic failover.

Survival does not guarantee full capacity

The application can stay available while operating with reduced headroom. Define the acceptable degraded capacity and test scaling under that condition.

Common questions

Frequently asked questions

Can an AWS Region lose one Availability Zone?

Yes. Applications should treat an Availability Zone as a distinct failure domain and avoid placing all critical capacity or state in one zone.

Does an ALB automatically stop routing to a failed zone?

The ALB uses target health checks and routes to healthy registered targets. Correct health-check configuration is essential for useful failover behavior.

How is RDS Multi-AZ different from a read replica?

Multi-AZ provides a synchronous standby for availability. A read replica is primarily used for read scaling and has different replication and promotion behavior.

Keep exploring

Explore the library
Three-tier AWS diagram with public and internal load balancers, web and application replicas in AZ A and AZ B, and RDS primary and synchronous standby
Getting Startedintermediate

Highly Available Three-Tier Web Application on AWS

The web, application, and data tiers each have a clear role and an explicit availability mechanism. Load balancers select healthy compute replicas, each compute fleet can scale independently, and RDS maintains a standby in another zone. This is a practical starting point for discussing what keeps serving when an instance or an Availability Zone fails.

Explore the architecture
AWS web platform with Route 53, CloudFront, WAF, ALB, multi-AZ web and API fleets, zonal NAT gateways, ElastiCache, and distinct RDS primary, standby, and read replica
Web Applicationadvanced

Production-Grade Highly Available Web Platform on AWS

This reference expands the three-tier baseline with a global edge, separate scaling domains, caching, read scaling, and private egress. Secrets management, backup policies, and observability are important additions to design around the visible application path.

Explore the architecture
AWS architecture review diagram showing an Application Load Balancer, one application server, and a Single-AZ RDS database
Getting Startedbasic

Architecture Review Practice: A Single-AZ AWS Web App

This diagram is deliberately incomplete. Its clean request path makes the risks easy to discuss: one application instance, a Single-AZ database, and no visible recovery or operational controls. Use it as a review exercise before opening the editable version and improving it.

Explore the architecture

Ready-made AWS diagram

Explore this AWS architecture

Open the diagram from this guide and explore how it works. Create and edit manually or with AI on a computer.

Explore diagram