liveBook · Manning

Parallel change

Parallel change is a migration technique that introduces a compatible replacement alongside an existing structure or interface, transitions use to the replacement, and then removes the old one.

How 2 Manning books explain it

Grokking Software Architecture

A database migration pattern that introduces compatible schema changes in stages so old and new application versions can operate during a rollout.

How it is used
Uses phased schema changes to keep services compatible during zero-downtime rollouts.
How deep it goes
Explains three migration phases, dual writes, backfills, and concurrency risks.
Examples
Uses a customer_phone-to-phone_mobile rename and an orders insert that writes both columns.
What you can do after
Operate a phased schema migration while old and new service versions remain active.

Read how Grokking Software Architecture explains parallel change →

Crack Any Codebase with AI

The expand-contract pattern changes a live schema in stages by adding compatible structures, migrating reads and writes, backfilling data, and later removing the old structures.

How it is used
Safely rolls out live schema changes without locking a busy table in one disruptive step.
How deep it goes
Details adding structures, dual-writing, backfilling, switching reads, and later removal, but not application endpoint tracing.
Examples
Uses replacement columns, duplicate credential fields, migration files, git commits, and GitHub's gh-ost.
What you can do after
Operate/configure staged schema rollouts and diagnose incomplete migrations from their history and duplicate structures.

Read how Crack Any Codebase with AI explains parallel change →

Also covered in

Related concepts

Questions about parallel change

What is parallel change?

Parallel change is a migration technique that introduces a compatible replacement alongside an existing structure or interface, transitions use to the replacement, and then removes the old one.

Which Manning books explain parallel change?

Grokking Software Architecture and Crack Any Codebase with AI.

What are the parts of parallel change?

Parallel change includes dual-write mode.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.