Designing Highly Available and Fault-Tolerant Architectures on AWS: Multi-AZ, Loose Coupling and Failure Patterns

AWS Solutions Architect 45 min min read Updated: Nov 17, 2026 Advanced
Designing Highly Available and Fault-Tolerant Architectures on AWS: Multi-AZ, Loose Coupling and Failure Patterns
Advanced Topic 1 of 3

Availability vs Fault Tolerance

TermMeaningExample
High availability (HA)The system recovers quickly and is up most of the time. Short interruption can happenMulti-AZ RDS: ~1 to 2 minutes to fail over
Fault toleranceThe system keeps working with no interruption when a component fails. Needs more redundancy and costActive-active across AZs with spare capacity; S3 (data across 3 AZs)
ResilienceThe ability to withstand and recover from failures, including slow ones and overloadRetries, back-pressure, auto healing
DurabilityData is not lost over timeS3: 11 nines

Find and Remove Single Points of Failure

Walk through your design and ask for each box: "If this fails, what happens?" Fix every box that stops the system.

ComponentWeak designResilient design
Web serversOne EC2 instanceASG across 2+ AZs behind an ALB
DatabaseSingle-AZ RDSMulti-AZ RDS or Aurora with replicas in other AZs
NATOne NAT Gateway for all AZsOne NAT per AZ (or endpoints)
StorageData on instance store or one EBSS3, EFS (multi-AZ) or EBS with snapshots and replication
SessionsIn memory of one serverElastiCache or DynamoDB
DNSA hosted name on one serverRoute 53 (100 percent SLA design)
Load balancerA single custom proxyALB/NLB (multi-AZ managed)
MessagingDirect HTTP callsSQS/SNS between tiers
RegionEverything in one Region (if needed)Multi-Region per DR needs
Human stepsManual recoveryAutomation: auto scaling, auto recovery, IaC

Reference: Multi-AZ Web Architecture

text Route 53 (health checks) ─► CloudFront + WAF │ ALB (public subnets: AZ-a, AZ-b, AZ-c) ┌───────────┬───────────┐ ASG web tier: instances in private subnets of each AZ (min 3 for 3 AZs) │ stateless; sessions in ElastiCache; files in S3 Aurora cluster: writer in AZ-a, readers in AZ-b and AZ-c (failover priority set) NAT Gateway per AZ, VPC endpoints for S3/DynamoDB
  • N+1 or N+2 capacity: if you need 2 instances' worth of capacity and use 2 AZs, run at least 4 (2 per AZ) so losing an AZ still leaves enough. With 3 AZs, 3 instances means 2 left after an AZ failure (66 percent)
  • Spread evenly: ASG AZ rebalancing keeps balance
  • Check service quotas in the other AZ/Region so scale-out works during failure
  • Use Auto Scaling health checks from the ELB so unhealthy instances are replaced automatically

Design Principles for Resilience

PrincipleHow to apply
Design for failureAssume every component will fail. Test it
Stateless componentsAny instance can serve any request. Store state in shared services
Loose couplingQueues, events and APIs between tiers. SQS absorbs spikes
Health checks and self-healingELB checks, ASG replacement, ECS service scheduler, EC2 auto recovery
Redundancy across AZsAt least two AZs for everything important
Automate recoveryRunbooks as code, Systems Manager Automation, Lambda reacting to alarms
Immutable infrastructureReplace instead of patching by hand: new AMI, rolling update
Limit blast radiusCells/shards, separate accounts, per-customer isolation
TestGame days, AWS Fault Injection Service (FIS), restore tests

Client-Side Resilience Patterns

PatternWhat it does
Retry with exponential backoff and jitterRetry failed calls with growing, randomized waits so retries do not create a storm. AWS SDKs do this by default
TimeoutsNever wait forever. Set short timeouts on every remote call
Circuit breakerAfter many failures stop calling the broken dependency for a while and fail fast
BulkheadSeparate thread pools or queues so one slow dependency does not use all capacity
IdempotencySafe to repeat requests: use idempotency keys
Graceful degradationShow cached or reduced content instead of an error (for example hide recommendations if that service is down)
Load shedding / throttlingReject excess requests early (429/503) to protect the core
python import random, time def call_with_backoff(fn, max_attempts=5, base=0.2, cap=5.0): for attempt in range(1, max_attempts + 1): try: return fn() except TransientError: if attempt == max_attempts: raise sleep = random.uniform(0, min(cap, base * 2 ** attempt)) # full jitter time.sleep(sleep)

Database and Storage Resilience

ServiceBuilt-in resilienceWhat you add
S3Data in 3+ AZs, 11 ninesVersioning, replication to another Region, Object Lock
EBSReplicated within one AZSnapshots, Multi-AZ via application replication, AWS Backup
EFSMulti-AZ (Standard)Backups, replication
RDSOptional Multi-AZTurn it on, read replicas, backups, PITR, cross-Region replica
Aurora6 copies in 3 AZs, fast failoverReplicas in other AZs, Global Database
DynamoDBData in 3 AZsPITR, global tables
ElastiCache RedisOptional replicasMulti-AZ with automatic failover

Availability Math

text Components in SERIES multiply: 99.9% x 99.9% = 99.8% (more parts = less availability) Components in PARALLEL improve: 1 - (0.001 x 0.001) = 99.9999% (two independent copies) So: remove serial dependencies and add independent redundancy.
Practical meaning A chain of five services each at 99.9 percent gives about 99.5 percent overall. Redundancy at each layer and decoupling brings it back up.

Chaos Engineering With FIS

  • AWS Fault Injection Service runs controlled experiments: stop instances, add latency, throttle API calls, fail over an RDS cluster, disrupt network between AZs
  • Start with a hypothesis (the site stays up if one AZ fails), define stop conditions (CloudWatch alarm), run in staging, then carefully in production
  • Fix what you learn and repeat
json { "description": "Stop 50 percent of web instances", "targets": {"webInstances": {"resourceType": "aws:ec2:instance", "resourceTags": {"Role": "web"}, "selectionMode": "PERCENT(50)"}}, "actions": {"stop": {"actionId": "aws:ec2:stop-instances", "parameters": {"startInstancesAfterDuration": "PT10M"}, "targets": {"Instances": "webInstances"}}}, "stopConditions": [{"source": "aws:cloudwatch:alarm", "value": "arn:aws:cloudwatch:ap-south-1:123456789012:alarm:HighErrorRate"}], "roleArn": "arn:aws:iam::123456789012:role/fis-role" }

Failure Analysis Checklist

  1. What if one instance fails? One AZ? One Region?
  2. What if a dependency is slow, not just down?
  3. What if traffic doubles in 5 minutes?
  4. What if bad data or a bad deployment is released? (rollback, canary)
  5. What if a human deletes something? (backups, MFA delete, SCPs, IAM)
  6. What is the recovery time and data loss for each case (RTO and RPO)?

Practice Tasks

  1. Take a single-instance web app diagram and mark every single point of failure with a fix
  2. Calculate the minimum instances per AZ to survive losing one of three AZs with 100 percent capacity
  3. Terminate an instance in an ASG and one RDS primary (failover) and measure the downtime
  4. Implement retries with exponential backoff and jitter in a sample client
  5. Design an experiment to prove the app survives an AZ failure

Conclusion

Avoid single points of failure with multi-AZ at every tier, stateless instances, ELB health checks, auto scaling and managed multi-AZ data services. Add client-side patterns (timeouts, retries with jitter, circuit breakers, graceful degradation), automate recovery and prove it with failure testing.

Quick Summary: HA vs FT; SPOF table; multi-AZ diagram + N+1; principles; client patterns + backoff code; data resilience table; availability math; FIS; failure checklist.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators