Disaster recovery, RTO, and RPO
We recover from faults that defeat the normal replicas and their shared dependencies. A backup file is useful only if its restore path meets the service’s promises. We will separate downtime from data loss, calculate recovery stages, and rehearse the return to service.
#Section 25Disaster recovery includes usable restoration
An operator accidentally deletes the score table, and replication promptly copies the deletion. Disaster recovery restores the service after an incident that defeats ordinary fault tolerance. It needs independently recoverable state, executable procedures, credentials, infrastructure, and verification.
A backup preserves recoverable state from a chosen time. A replica maintains another serving copy and can copy a destructive change. The difference explains why replication and backup should be distinct parts of the design. A recovery copy may need different permissions and a deletion policy that routine application credentials cannot override.
Test the complete path. Create a replacement database, restore the snapshot, replay permitted log history, verify invariants, and update application routing. Secrets and configuration may require their own recoverable source. An encrypted backup without its usable key is not a usable backup.
#Section 26RTO is the unavailability objective
Heron can tolerate an illustrative ten-minute recovery target for a regional disaster. The recovery time objective, or RTO, is the target maximum time to restore the required service after the defined incident. Specify when the clock starts and which operation must work when it stops.
The illustrative restore trace spends 60 seconds preparing a replacement, 180 restoring data, and 120 verifying and routing. Total recovery is 360 seconds. A 600-second objective leaves 240 seconds of margin in this model. That margin must cover variable startup, operator response, and recovery failures rather than disappear into an optimistic estimate.
A time objective is a target, not a measurement. Record actual drill times and failures. Returning a process ping may happen before authorized reads or writes are safe; that earlier event cannot stop the clock for a service promise that requires those operations. AWS recovery guidance distinguishes these objectives.
#Section 27RPO is the data-loss objective
A recovery snapshot is an illustrative 300 seconds old when the region fails. At 20 score events per second, 300 times 20 is 6,000 events potentially absent from that snapshot. This is a time gap translated through the stated event workload, not a universal loss bound.
The recovery point objective, or RPO, is the target maximum gap in recoverable committed data, commonly expressed as time before the incident. Log replay can shrink the gap if its log survives independently. A snapshot schedule alone does not establish the gap because a failed or delayed backup can make the latest usable copy older.
An asynchronous replica lagging 2 seconds represents 40 events at the same rate. Do not describe that as guaranteed RPO without bounding lag during failure and checking what was acknowledged. Synchronous commitment to sufficient surviving replicas can protect acknowledged effects against a named fault, but it adds dependencies and latency.
#Section 28Restore verification and recovery drills
A restore finishes without errors, but the restored score rows do not match the event history. Successful file copying is only one stage. Recovery verification checks the service’s invariants before making restored state authoritative.
For Heron, reconcile command identifiers, match versions, and score totals. Verify that object metadata does not advertise missing media and that old writers cannot commit after the new database is promoted. Record which acknowledged interval is preserved and which interval, if any, needs user reconciliation.
Run the drill with realistic size and permissions. A tiny restore does not exercise the bandwidth, storage allocation, and index rebuild required by production. Measure time from the chosen incident boundary to the promised operation, and test a deliberately unusable recovery copy so the fallback procedure is also exercised.