Joseph Leporati

Engineering notes

Writing: zero downtime

Notes on building and running production systems: payments and ledgers, multi-tenant architecture, reliability and performance, and applied AI. By Joseph Leporati, software engineer and technical program manager in Monroe, Louisiana.

· 7 min read · database migration

Can You Migrate an Old Database Without Taking the Business Offline?

Usually, yes. If your team or vendor controls the application code, the expand-contract pattern changes a live database in additive steps: add the new structure, write to both, backfill history, move reads over, and drop the old structure last. Nothing goes offline and every step can be reversed. If you are replacing a system whose code you cannot change, a parallel run is safer. It costs extra weeks, but it removes the hard cutover.

Read the article