How it works
Replicate durable objects and metadata to meet a stated recovery target, such as how many minutes of commits you can afford to lose, and test restores. Replace a failed stateless API or upload worker; promote a metadata replica with awareness of replication lag. A notification outage delays discovery, but cursor replay recovers changes. Use retry backoff and jitter, a random delay added to each wait, to avoid reconnection storms: one million devices retrying in the same minute is about 16,700 requests per second, while spreading them over ten minutes is about 1,670.
A restore is a consistency problem. Suppose corruption at 08:00 forces a restore of the 02:00 metadata backup. Blocks from the next six hours now have no rows, so reconciliation must find them. Devices hold cursors beyond the restored log, so the server must detect those and send a snapshot. If cleanup ran at 03:00, it may have deleted blocks the 02:00 rows still need, so delay garbage collection for longer than your oldest usable backup.
Trace an upload from chunks through verification, commit, change event, and another device’s download. Measure pending-upload age, checksum failures, change-log lag, cursor resets, sync convergence time, conflict rate, and restore success. Deletion must follow retention policy across revisions, backups, and links. This tracing and reconciliation is ongoing engineering work, so set recovery targets no stricter than the product needs.
Notifications stop for an hour while storage remains healthy. Are devices permanently inconsistent?
No. Durable change-log cursors allow reconnect or periodic polling to catch up. Monitor lag and stagger retries.
Use this as a guide for self review; written answers are not graded.Keep in mind
- A restore needs both metadata and required bytes.
- Measure data integrity and end-to-end sync, not only API uptime.