Posts tagged “migrations”

  1. How do you migrate a live database without downtime?

    Most outages during migrations aren't failed migrations; they're migrations that held a lock while traffic queued behind them. Measured on a 5M-row table under load: one-step changes that stalled every request for 2-8 seconds, and the online versions that stalled them for a fraction of a second…

    · 9 min read · System Design

  2. Refactoring or rewrite?

    Refactor in small steps by default; most rewrites take longer than planned and lose behaviour nobody wrote down. Rewrite only behind a strangler fig, piece by piece, with old and new running side by side. How to decide, and how to do either without a big-bang cutover.

    · 6 min read · How we build