Sub topic 3
Multi-Site Active/Active Disaster Recovery on AWS
Assume you know AWS Regions, Availability Zones, load balancers, DNS, and managed databases. You should also understand basic AWS CLI syntax and have defined your workload's recovery time objective (RTO) and recovery point objective (RPO).
Multi-Site Active/Active
In a multi-site active/active design, two or more Regions run production workloads and serve users at the same time. Traffic is distributed by Amazon Route 53, AWS Global Accelerator, or an application-level routing layer.
Each Region needs its own compute, networking, monitoring, deployment process, and data path. Data must be replicated or partitioned so that a Region failure does not create unacceptable data loss or conflicts.
flowchart LR
U[Users] --> G[Global routing]
G --> A[Active Region A]
G --> B[Active Region B]
A <--> D[Replicated data]
B <--> DThe design can provide a low RTO because the second Region is already serving traffic. It is also the most difficult strategy to operate. Deployments, configuration, capacity, data consistency, and user sessions must work in every active Region.
Using AWS Elastic Disaster Recovery
AWS Elastic Disaster Recovery replicates supported server workloads to a staging area in another Region. During recovery, it launches recovery instances from the replicated data. This is useful for workloads that cannot easily be redesigned as cloud-native services.
Elastic Disaster Recovery is generally a recovery mechanism rather than a complete active/active architecture. It can reduce recovery time compared with restoring servers from backups, but you still need networking, identity, application dependencies, and traffic routing ready.
Running Failover and Failback
A runbook should identify who declares a disaster, which systems change first, and how success is verified. Failover may include promoting a replicated database, scaling the recovery fleet, updating routing, and checking critical user journeys.
aws rds failover-global-cluster \
--region us-west-2 \
--global-cluster-identifier app-global \
--target-db-cluster-identifier arn:aws:rds:us-west-2:111122223333:cluster:app-dr-clusterFailback returns service to the preferred Region after it is repaired. Replicate changes back first, validate data, then switch traffic gradually. Store infrastructure and routing changes in infrastructure as code so the procedure is repeatable.
Testing, Cost, and Strategy Selection
Test at least failover, data integrity, DNS or accelerator routing, dependencies, permissions, monitoring, and failback. Measure the actual RTO and RPO instead of assuming the design meets them.
| Strategy | Recovery speed | Cost and complexity |
|---|---|---|
| Backup and restore | Slowest | Lowest |
| Pilot light | Medium | Moderate |
| Warm standby | Fast | High |
| Active/active | Fastest | Highest |
Choose active/active only when downtime or data loss costs more than its operational burden. Choose warm standby when fast recovery matters but continuous service in both Regions is unnecessary. Use pilot light for a smaller always-on core, and backup and restore when the business can tolerate longer recovery.
Exercise
Why might active/active still require backups?
Show answer
Replication can copy accidental deletion, corruption, or a bad deployment to every active Region. Backups provide a separate recovery point.