Sub topic 15
Choosing the right strategy for a workload
This chapter assumes you know Regions, Availability Zones, RDS or Aurora, Route 53, and the four DR strategies from earlier chapters. It shows how to pick one for a given workload.
Start from the recovery targets
Selection begins with the workload's RTO and RPO, which come from business impact, not from technology preferences. Ask what each hour of downtime and each minute of lost data costs. Then pick the cheapest strategy that meets both targets.
| Strategy | Typical RTO | Typical RPO | What runs in the DR Region |
|---|---|---|---|
| Backup and restore | Hours | Hours (time since last backup) | Nothing except stored backups |
| Pilot light | Tens of minutes to hours | Seconds to minutes | Replicated data, with compute off or minimal |
| Warm standby | Minutes | Seconds to minutes | A scaled-down but running copy of the full stack |
| Multi-site active/active | Near zero | Near zero to seconds | A full stack serving live traffic |
These ranges are guides. Your actual numbers depend on data size, automation quality, and how well you have tested.
A decision flow
Check beyond RTO and RPO
Targets narrow the choice. Four other factors finish it.
- Cost. Warm standby pays for running compute and databases all the time. Active/active pays for full capacity in two Regions. Compare that to the cost of an outage.
- Complexity. Active/active needs data that can be written in more than one Region, such as DynamoDB global tables or Aurora with write forwarding. You must also handle conflicting writes. Many teams lack this skill.
- Team skill and runbooks. A strategy you cannot operate under stress will miss its RTO. Pilot light depends on automation, so it needs infrastructure as code that you have already tested.
- Dependencies. A workload that calls other services inherits their recovery. If a dependency recovers in four hours, a one-minute RTO on your side means little.
Worked example
A company runs three workloads.
- Internal reporting tool. Tolerates 24 hours of downtime and one day of data loss. Choose backup and restore, using AWS Backup with a cross-Region copy.
- Customer order system. RTO of 30 minutes, RPO of 1 minute. Choose pilot light or warm standby. Aurora global database gives an RPO of seconds. If the team has tested automation to scale compute in under 30 minutes, pilot light is enough. If not, warm standby is the safer choice.
- Payment authorization. RTO of seconds and RPO near zero. Choose multi-site active/active, and accept the higher cost.
Notice that one company uses three strategies. Choose per workload, not per company.
Revisit the decision
Targets, data volume, and traffic change over time. Review the choice at least yearly and after any major architecture change. If a test shows the measured RTO misses the target, either move up one strategy or invest in more automation for the current one.
Exercise
A catalog service has an RTO of 15 minutes and an RPO of 5 minutes. Outages are rare and a few minutes of downtime during failover is acceptable. The team has limited experience with multi-Region writes. Which strategy fits best, and why not the two neighbors?
Show answer
Warm standby. A running, scaled-down copy with replicated data can scale up and take traffic within minutes, which meets a 15-minute RTO. Pilot light is riskier because starting compute from zero may exceed 15 minutes. Active/active costs more and needs multi-Region write handling, which is not required when a few minutes of downtime is acceptable.