Latest dealsDeals See all deals→

Database Migrations Without Downtime

A practical walk-through of the techniques that let you reshape a production database while the application keeps serving traffic. We cover when zero-downtime actually earns its complexity and when a scheduled window is the right answer, then work through the expand–contract pattern, dual-writing, and large-scale backfills with real Postgres examples. Aimed at developers who've been handed a growing schema and a promise of ninety-nine point nine.

4 lessons 8 min total Self-paced

Lessons

Lesson 2 · 2 min read

The Expand–Contract Pattern

Expand the schema additively. Deploy code that tolerates both shapes. Backfill. Flip the reads. Contract the schema. Four phases, clear rules.

Lesson 3 · 2 min read

Dual-Writing Through a Transition

Writing to both shapes during the transition window is how you keep reads consistent without a lock. The failure modes to watch for.

Discussion