Services and products mentioned in this article.
Get in touch with our expert team for professional cloud architecture and operations support.
Kaihu Cloud TeamAWS Solutions Architecture Team
Kaihu Cloud Team designs and operates Multi-AZ production systems on AWS, with a focus on failure testing and cost-aware redundancy.
All factual claims are cross-referenced against authoritative sources before publication. Data comes from verified primary references.
Availability comes from removing single points of failure across zones: ELB in front, Auto Scaling behind, Multi-AZ RDS as the data tier.
Multi-AZ standby improves failover, not read throughput — read replicas are the scaling tool.
Automate recovery and rehearse failure; humans are the slowest failover mechanism.
A high-availability AWS architecture distributes workloads across multiple Availability Zones (AZs) so a failure in one zone does not take down the service. The standard skeleton is: an Application Load Balancer (ALB) in front, an EC2 Auto Scaling Group (ASG) across two or more AZs for compute, and an RDS Multi-AZ database behind — with Route 53 for DNS failover and CloudFront for edge caching.
Availability comes from redundancy plus automatic detection. Each AZ is an independent cluster of data centers with its own power and networking; spreading subnets, instances, and the database standby across AZs removes single-site failure. The ALB health-checks targets and stops sending traffic to unhealthy ones; the ASG replaces failed instances automatically; RDS Multi-AZ promotes a synchronous standby when the primary fails.
A typical production stack: Route 53 routes users to CloudFront and the ALB; the ALB spans subnets in us-east-1a and us-east-1b; an Auto Scaling Group keeps the desired capacity at two instances with a max of six; RDS MySQL runs Multi-AZ with its standby in the second AZ; security groups allow DB traffic only from the ASG group.
The reference design uses five components (ALB, ASG, RDS Multi-AZ, Route 53, CloudFront), two AZs, two subnets (10.0.1.0/24 and 10.0.2.0/24), an ASG sized min 2 / max 6 / desired 2, and health checks on the /health endpoint.
Teams often enable Multi-AZ expecting faster reads and are surprised when throughput does not change. Multi-AZ is a durability and availability feature, not a performance feature — the standby exists only to take over, not to serve queries.
Whether capacity grows during normal operation depends on how the second copy is used: a synchronous standby (Multi-AZ) mirrors every write and stays idle, while asynchronous replicas (read replicas) serve SELECT traffic independently. Connection topology matters too: applications must use the RDS endpoint (a DNS name that re-points on failover), never a direct IP.
| Aspect | RDS Multi-AZ | Read Replicas |
|---|---|---|
| Purpose | Availability and failover | Read scaling |
| Replication | Synchronous to standby | Asynchronous |
| Serves reads | No (standby idle) | Yes |
| Failover | Automatic promotion | Manual promotion |
| Typical use | Production resilience | Reporting, heavy SELECT workloads |
Use Multi-AZ for resilience on any production database; add read replicas only when read load is the bottleneck. Always connect via the RDS endpoint so failover re-routing is transparent to the application, and handle the brief connection reset during failover gracefully.
The buildout has four layers: network (a VPC with subnets in at least two AZs), traffic distribution (an ALB spanning both subnets with a target group health-checking /health), compute (an ASG referencing a launch template and the target group), and data (an RDS instance in a subnet group spanning both AZs with Multi-AZ enabled).
Frequent mistakes: launching everything in one AZ (no real HA), pointing applications at the database IP so failover breaks connectivity, creating the ALB in only one subnet, and forgetting that the DB security group must allow inbound only from the ASG security group.
# Create VPC
aws ec2 create-vpc --cidr-block 10.0.0.0/16 --tag-specifications ResourceType=vpc,Tags=[{Key=Name,Value=ha-vpc}]
# Create subnets in two AZs
aws ec2 create-subnet --vpc-id vpc-xxx --cidr-block 10.0.1.0/24 --availability-zone us-east-1a
aws ec2 create-subnet --vpc-id vpc-xxx --cidr-block 10.0.2.0/24 --availability-zone us-east-1b
# Create Auto Scaling Group across two AZs
aws autoscaling create-auto-scaling-group \
--auto-scaling-group-name ha-asg \
--launch-template LaunchTemplateName=ha-template \
--min-size 2 --max-size 6 --desired-capacity 2 \
--vpc-zone-identifier "subnet-aaa,subnet-bbb" \
--target-group-arns arn:aws:elasticloadbalancing:...:targetgroup/ha-tg/xxxFor the ALB: create it spanning both subnets, configure the target group with /health checks, and add a listener on port 80 or 443. For RDS: create the DB subnet group across both AZs, enable Multi-AZ, and scope the security group to the ASG only.
Apply the pattern by scaling parameters to your SLA: the min 2 / desired 2 / max 6 ASG sizing from the reference design covers most web workloads, and the /health endpoint gives the ALB a reliable signal for routing decisions. Route 53 health checks plus CloudFront complete the external-facing layer.
Match redundancy to business impact: multi-AZ with ALB + ASG + RDS Multi-AZ is the default for user-facing production systems; add read replicas for read-heavy services; multi-region (with Route 53 failover between regions) is reserved for systems with strict availability targets because of the cost and complexity jump.
Production web applications: the full multi-AZ pattern. Internal tools and staging: a single AZ with an ASG may be acceptable to save cost — but keep RDS Multi-AZ since data loss is rarely acceptable. Bursty or seasonal traffic: keep the ASG max size well above desired capacity so scaling can absorb spikes while staying HA.
Service Type: Account Setup Service
Use Cases
Use Cases