Resilience is the ability of a system to keep delivering an acceptable service when parts of it fail, and to recover fully afterwards.

At cloud scale, failure isn’t an exception; it’s a normal operating condition. Disks fail, instances get retired, networks partition, dependencies slow down and, occasionally, a whole data centre has a bad day. Your provider runs very reliable infrastructure, but under the shared responsibility model it’s your job to design workloads that keep working when part of it breaks.

Everything fails, all the time. Design for it rather than hoping it won’t happen.

The vocabulary

The “nines” are worth doing the maths on:

AvailabilityDowntime per yearDowntime per month
99%about 3.7 daysabout 7.3 hours
99.9%about 8.8 hoursabout 44 minutes
99.99%about 53 minutesabout 4.4 minutes
99.999%about 5.3 minutesabout 26 seconds

Two things follow. First, every extra nine costs significantly more in architecture, money and operational discipline, so pick the target the business actually needs, not the one that sounds impressive. Second, dependencies multiply: a service that calls two others, each at 99.9%, can’t be better than about 99.8% unless it can cope without them.

Disaster recovery strategies

From cheapest and slowest to recover, to most expensive and fastest:

StrategyWhat it meansTypical RTO / RPO
Backup and restoreBack up data (ideally to another region and account) and rebuild everything from Infrastructure as Code when neededHours / hours
Pilot lightData is replicated continuously and core infrastructure is pre-provisioned but idle in the recovery regionTens of minutes / minutes
Warm standbyA scaled-down but fully working copy runs in the recovery region, ready to scale upMinutes / seconds
Multi-site active/activeFull capacity runs in more than one region at once, serving trafficNear zero / near zero

Most workloads are well served by running across multiple availability zones in one region, plus backup and restore or pilot light to a second region. Active/active multi-region is genuinely hard, especially for data, so make it a deliberate decision driven by real requirements.

Disaster recovery strategies from cheapest to fastestBackup & restoreRTO / RPO:hours / hoursPilot lightRTO / RPO:10s of min / minWarm standbyRTO / RPO:minutes / secondsActive / activeRTO / RPO:≈ zero / ≈ zeroCheaper, slower to recoverCostlier, faster to recover
Disaster recovery strategies trade cost against recovery time and data loss. Pick the one the business actually needs.

Design for failure

Prove it

A backup you’ve never restored isn’t a backup. It’s a hope.

Resilience claims are just guesses until they’ve been tested:

As with everything else, use the architectural profile to decide how much of this you need. An internal reporting tool and a payments platform deserve very different levels of investment.