Most recovery evidence describes components: a database restored in forty minutes, a cluster rebuilt from code, a failover that completed. The business needs something else back. For an ordering flow, recovery means new orders are accepted, the orders accepted before the failure are still there, every captured payment matches an order, and nothing ships twice.
The public record of large outages shows how far apart those two things can be. In April 2022, Atlassian deleted 883 customer sites by mistake and took up to 14 days to restore all of them. Its review reports that it could recover a single site, “but we had not built capabilities and processes for recovering a large batch of sites”, and that it “missed our RTO but met our RPO”. In Facebook’s outage of 4 October 2021, the loss of DNS “broke many of the internal tools” engineers would have used to fix it. In both cases the data and systems could be brought back; the time went into scale, access and tools around them.
A recovery objective is met when the flow completes correctly again, and that is where this note measures it.
Define recovery as a business outcome
AWS defines the recovery time objective as “the maximum acceptable delay between the interruption of service and restoration of service”, and the recovery point objective as “the maximum acceptable amount of time since the last data recovery point”. NIST SP 800-34 adds the maximum tolerable downtime, the outage the business process can accept, and notes that the recovery time objective “must normally be shorter” than it. Both objectives belong to a flow, and a flow has more than one data store. An order database with synchronous replication, payment status that arrives in provider callbacks and a search index that can be rebuilt each have a different real recovery point. The flow’s recovery point is the worst of the ones it cannot do without.
The business owner sets the objectives, from what an hour of lost orders costs, what customers were promised and what a regulator requires. Engineering reports what the system can achieve. When the two differ, the gap is a finding for the owner to decide on, and an objective nobody has agreed is recorded as Unknown instead of quietly replaced by what the infrastructure happens to deliver.
Correctness is part of the objective. For the ordering flow, the checks after a recovery are concrete:
- Every order accepted before the failure point is present, or is on a list for follow-up.
- Every payment the provider captured maps to exactly one order. A captured payment with no order is money taken from a customer for nothing.
- No order is fulfilled twice, including orders whose messages were replayed.
- Operators can see the exceptions and have a way to resolve each one.
Break the recovery time down
A recovery time objective is a sum, and a restore test usually measures one of its terms. The achieved recovery time runs from the moment the flow stopped working to the moment it completes correctly at normal load again.
| Phase | What consumes time | Evidence that shows it |
|---|---|---|
| Detect | Alerts that fire on the flow instead of a component; someone acknowledging at night | Time from failure to acknowledgement in incidents and exercises |
| Decide | Agreeing that this is a disaster, and finding the person allowed to declare it | A named decision owner with a deputy, and the decision time in an exercise |
| Access | Reaching consoles, secrets and keys when the usual path is part of the failure | An exercise run without the primary identity provider |
| Restore | Copying data at the available throughput, then replaying logs | A timed restore at today’s data size |
| Restart in order | Bringing up dependencies before the services that call them | A written order, followed in an exercise |
| Validate | Reconciling orders, payments and fulfilment before reopening | Reconciliation reports produced during the exercise |
| Ramp | Cold caches, connection storms and backlog catch-up at returning traffic | Throughput and error rates while load returns |
Restore throughput is the term most often estimated and least often measured. As an illustration, restoring 5 TB at a sustained 500 MB/s takes about 2.8 hours before a single log is replayed or a single order is checked. The same restore takes longer every month the data grows, so a restore time measured last year describes last year’s data.
The ramp is the term restore tests leave out entirely. Google’s SRE book states the mechanism plainly: with a warm cache only a few requests miss, “but when the cache is completely empty, 100% of requests are costly”. Roblox reported that after its 73-hour outage in October 2021 it let players back in “roughly 10% increments” through DNS steering, because “with cold caches and a system we were still uncertain about, we did not want a flood of traffic”.
Access is part of the recovery path
A recovery plan runs on people reaching production. When identity, network or secrets fail along with the service, the plan stops at its first step. Facebook’s review of October 2021 describes the extreme case: primary and out-of-band network access were both down, so engineers went to the data centres, where hardware “designed to be difficult to modify even when you have physical access” slowed them further. Roblox reported a quieter form of the same trap that month: monitoring that would have shown the cause “relied on affected systems, such as Consul”.
The traps are specific and can be checked one by one:
- The identity provider or its MFA is down, and nobody has used the break-glass accounts.
- The secrets vault runs on the cluster being restored, so the restore needs the vault and the vault needs the restore.
- The keys that decrypt the backups live in the account or region that was lost.
- The recovery region sends traffic from addresses the payment provider or a partner has not allowlisted.
- The container registry, the DNS console or a licence server is reachable only through the failed path.
- The runbook lives in a wiki that runs on the failed platform.
The faulty CrowdStrike update of 19 July 2024 showed the same pattern on single machines. Microsoft estimated that 8.5 million Windows devices were affected. Its published fix was to start each machine in safe mode and delete one file, with the warning “You may be asked to enter your BitLocker recovery key.” A recovery that needs one key per device also needs a way to reach those keys while the devices are down.
Ransomware adds one more condition: the copies used for recovery have to survive an attacker with administrative access. Immutable or offline copies answer that, and only a timed restore from those copies shows how long recovery from them takes.
Restart order and correctness
Starting everything at once is rarely the fastest way back. A producer started before its consumers grows a backlog that the consumers then work through at reduced capacity; a consumer started before its data is consistent writes from a state that is about to change. The order belongs in the plan, with the checks that gate each step.
Replay is where correctness is lost. Messages accepted before the failure may be delivered again after it, and a consumer that is not idempotent will apply them twice. The usual defence is an idempotency key: the caller attaches a unique request identifier, and the receiver answers a repeat with the original result instead of acting again. AWS describes this as “a unique caller-provided client request identifier” that earns “a semantically equivalent response” for some interval. The interval is the limit. Stripe’s API reference, for example, says v1 keys can be removed once they are at least 24 hours old, so replaying older messages needs deduplication of its own. The outbox pattern, where a service writes the event in the same transaction as the state change, closes the gap between “saved” and “announced”.
Asynchronous replication adds a different problem. Writes the old primary accepted but had not replicated are missing from the new one. They are the recovery point made visible, and they need a list, an owner and a reconciliation step, because some of them are customer payments.
The record below shows how one recovery claim looks when it is measured at the flow. The stations inside the band are the ones the exercise covered.
Online order flow, recovery after losing the primary region
Illustrative example — not a customer result- Storefront
- Agreed boundarySign-inUnknown
Operator access in the recovery region is assumed.
Break-glass accounts exist. Nobody has used them with the identity provider unavailable.
- Checkout
- Payment providerPartially verified
Provider callbacks reach the recovery region.
The provider allowlists the recovery egress addresses. Reconciling captured payments after failover was not exercised.
- Order databaseVerified
Point-in-time restore met its two-hour target.
Restored at production volume in an isolated account; log replay included.
- Fulfilment
Next decisionThe four-hour objective is not yet supported for the whole flow: exercise break-glass access and payment reconciliation before the next peak.
Exercise in steps
Each kind of exercise answers a different question, and none answers all of them. NIST SP 800-84 draws the first line: “A tabletop exercise is discussion-based only and does not involve deploying equipment or other resources”, while functional exercises let staff “validate their operational readiness” in a simulated environment.
| Exercise | What it tests | What it leaves out |
|---|---|---|
| Tabletop | Decisions, owners and access paths, walked through by the people who would use them | Every duration; nothing is executed |
| Component restore | One data store restored into an isolated environment, timed | The rest of the flow, and the order of restart |
| Flow restore | Everything the flow needs, restored at production-like volume and reconciled | The production network path and real traffic |
| Controlled production failover | Real traffic moved with abort criteria agreed in advance; network path, access and capacity together | Failures the team did not plan for |
| Game day | A failure the operators do not know about in advance | Whatever the scenario excludes |
Google’s Disaster Recovery Testing programme (DiRT) is the best-documented example of the last row. Kripa Krishnan’s 2012 account describes a simulated data-centre outage that “caused authentication systems to fail in unexpected ways, which in turn locked most teams out of their workstations”, and tests that “uncovered several services that were singly homed”.
Exercises that touch production need explicit approval from the system owner, a bounded blast radius, monitoring that does not depend on the system under test, and abort conditions with a named person who calls them. The organization that runs the system keeps the authority to stop.
Questions to ask your team
- When did we last recover the order flow end to end, with timings for each phase and a reconciliation of payments against orders?
- Who can declare a disaster at 3 a.m., who stands in for them, and how long did that decision take in the last exercise?
- Can the on-call engineer reach production with the identity provider down, and has anyone done it?
- Where are the keys that decrypt our backups, and would they survive the failure we plan for?
- What do we restore first, and what stays stopped until reconciliation finishes?
- Which copies would survive an attacker with administrative access, and how long does a full restore from them take?
References
- Sri Viswanath, Atlassian. Post-Incident Review on the Atlassian April 2022 outage. 30 April 2022.
- Santosh Janardhan, Meta. More details about the October 4 outage. 5 October 2021.
- Daniel Sturman and others, Roblox and HashiCorp. Roblox Return to Service. 20 January 2022.
- David Weston, Microsoft. Helping our customers through the CrowdStrike outage. 20 July 2024; Microsoft KB5042421.
- AWS. Disaster Recovery of Workloads on AWS: Recovery in the Cloud. AWS whitepaper, 12 February 2021.
- NIST. SP 800-34 Rev. 1, Contingency Planning Guide for Federal Information Systems. May 2010.
- NIST. SP 800-84, Guide to Test, Training, and Exercise Programs for IT Plans and Capabilities. September 2006.
- Mike Ulrich. Addressing Cascading Failures. Chapter 22 of Site Reliability Engineering, Google, 2016.
- Malcolm Featonby. Making retries safe with idempotent APIs. Amazon Builders’ Library.
- Stripe. Idempotent requests. Stripe API reference, read 11 October 2026.
- Kripa Krishnan. Weathering the Unexpected. ACM Queue 10(9), September 2012.
