Disaster recovery for the pragmatic engineer
DR theory is easy. DR practice is hard. The gap shows up when the primary region actually goes down and your team realizes what wasn't tested.
The DR tiers (honest descriptions)
Tier 0: Backup & Restore
You have backups. In a disaster, you stand up a new environment and restore. RTO: hours to days. RPO: hours.
What's wrong: restoring 2 TB takes longer than you think. Running cold cloud capacity isn't free either (NAT gateways, load balancers).
Tier 1: Pilot Light
Core services running in the secondary region. Scale out on failover. RTO: 10-30 minutes. RPO: seconds to minutes.
What's wrong: scale-out during disaster is where capacity issues emerge. If the primary region is gone, everybody else is also trying to scale out in the secondary region.
Tier 2: Warm Standby
Scaled-down full copy running 24/7. RTO: 5-15 minutes. RPO: near-zero.
What's wrong: the cost. Running 30% capacity in a second region is expensive. Worth it for tier-1 workloads only.
Tier 3: Active/Active
Both regions serving traffic full-time. RTO: seconds. RPO: near-zero.
What's wrong: data synchronization complexity. Every write must be visible everywhere. Either you accept latency for consistency, or consistency for latency.
Pick the right tier per workload
Not every workload needs tier 3. Most workloads are tier 0 or tier 1. Tier 2 for important services. Tier 3 for customer-critical revenue-impacting.
What people forget
DNS
Your DR strategy only works if DNS actually cuts over. Health-check-based DNS failover has 60-120s delay minimum.
Dependencies
Your DR region needs all the dependencies: IAM, Secrets Manager, certificates, third-party SaaS integrations. Missing one kills the failover.
State
Data in memory is gone. Queued messages in-flight are gone (unless you're using replicated queues). Session state in local caches is gone.
People
DR runbooks work when someone runs them. In a real disaster, the person who knows the runbook is on a plane. Train multiple people.
Tools
- RTO / RPO Calculator to pick the right tier.
- DR Readiness Scorecard to audit current state.
- DR Runbook Generator for the actual playbook.