Releasing schema changes across mixed versions 00:00:01 A new column meets an old reader A new worker always fills a newly required field. An older job, queued yesterday, omits it. When both reach the same table, the database applies today's constraint to both. Nia follows the older job all the way to its commit. Before the change, zero of a thousand writes fail this compatibility check. With the constraint enforced immediately, sixty-five of a thousand fail. The new writer's happy-path test could never reveal an old writer still running asynchronously. During a rolling deployment old and new binaries can read and write the same data. A schema migration is therefore a protocol change across versions. 00:00:42 List every writer that will live through the migration Expand the schema first, introduce compatible readers and writers, backfill in bounded batches, validate the result and remove the old representation only after every dependent path has moved. A migration immediately requires a field that old workers omit. New requests pass smoke tests but in-flight jobs from the previous release start failing. Inventory readers, writers, rollback candidates and asynchronous consumers. Inspect lock acquisition as well as data compatibility because even a metadata change may wait behind a long transaction. 00:01:19 Delay the constraint until old jobs finish In what order can Nia introduce the field and eventually require it without stranding yesterday's jobs? First allow both representations. Deploy compatible readers and writers, fill historical data where appropriate and validate the result. Observe long-lived and background writers across the transition. Only enforce the constraint once all live paths satisfy it and rollback compatibility has been considered. If mixed-version writes succeed but latency rises, inspect migration lock queues and backfill I O before modifying format compatibility. 00:01:55 Prove compatibility before contracting In a mixed-version rehearsal, incompatible writes return to zero per thousand. The rollout includes mixed generations. Compatibility must hold through deployment and the promised rollback window. Nia also measures the migration's lock wait. A compatible data format and an acceptable interruption budget are separate conditions for a successful change.