Zero-Downtime Database Migrations
$33.99
Buy on Amazon View on Apple BooksPrefer it in print? See every format on Amazon →
Price on Apple Books. Amazon’s price may differ.
- Published
Description
Every team eventually ships a schema change that looked harmless and froze the application. This book gives you a repeatable way to avoid that. Using a small fictional online shop, it shows how to split risky changes with the expand and contract pattern, run backfills in safe batches, add constraints and indexes in stages, and rename columns, change types, split tables and merge them without a flag day. You will learn how to order deploys across application versions, use feature flags with comparison reads, decide between rollback and roll-forward, set lock and timeout budgets, rehearse on production-sized copies and watch a change while it runs. Engine-specific behaviour is described honestly, and a runbook template and checklists are included for use at your desk.