Databases
posts (6)
- Recovery from the Ground Up: Rollback, PITR, and Returning After Failure4/5
PITR for One Tenant: Restoring One Database
A simple PITR example in a multi-tenant system: one tenant has one database, so we restore only that database instead of rolling back the whole production…
- Testing Through Layers: From Code to Infrastructure7/9
Migration Tests and Data Tests: Safe State Changes
A migration test checks schema and data changes, while a data test protects state compatibility. This layer decides whether a release can be rolled back safely.
- Recovery from the Ground Up: Rollback, PITR, and Returning After Failure3/5
Whole-Server PITR: Restore Is Only the Beginning
Whole-server PITR does not end when the database is restored. We still need to freeze writes, validate state, switch traffic, and consciously abandon or move…
- Recovery from the Ground Up: Rollback, PITR, and Returning After Failure2/5
Rolling Back a Release: Code Is the Easy Part
Release rollback often looks like returning to the previous application image. In practice, the hard parts are data, migrations, and side effects that already…
- Testing Through Layers: From Code to Infrastructure3/9
Integration Tests: The Real System Boundary
An integration test checks whether code works with a real dependency or a real boundary. It tests the place a unit test cannot see by definition.
- series · 5 parts
Recovery from the Ground Up: Rollback, PITR, and Returning After Failure
Recovery does not start with a large disaster recovery plan. It starts with a simple question: what exactly do we need to return to, and how much can we lose?