ExpandContractMigration

Change a shared format by adding the new form beside the old, moving every consumer, then removing the old

Infrastructure · Safety · bootstrap 0.11.0

Mechanism

To change an interface, schema, storage layout or message format shared by producers and consumers that deploy independently, the change runs in three phases with a gate between each. Expand: the new form is introduced beside the old so every deployed reader and writer still works; writers may write both. Migrate: consumers move to the new form and stored data is backfilled, with CompatibilityCheck run for every inventoried producer-consumer pair in each direction in which the pair communicates. Contract: the old form is removed only after an inventory of its remaining consumers, including old versions, caches, copies of the interface and in-flight messages, comes back empty. Each phase records the conditions under which it can be rolled back. Reusing an existing field or name with a new meaning is a contraction of the old meaning and an expansion of the new one in a single step, and its readers are found as in MeaningChangeSweep.

Invariants

Failure modes

Where this came from

—

Builds on

Related

Identity