Migrate the consumers that depend on the field
Three consumers read an ambiguous amount.
The interview prompt
Three consumers read an ambiguous amount. Billing runs continuously, finance closes monthly, and an executive export runs once a quarter. A usage dashboard reports zero reads for the last seven days. Is the old field ready to retire?
Make the retirement condition observable
Start by listing consumers and which definition each expects. Keep the old field stable during migration, add explicitly named replacements, publish sample rows, and define the first effective record. If the old and new definitions refer to different business quantities, simultaneous operation lets consumers reconcile only the values that should agree.
For a school purchase of $20 plus $2 tax, a revenue report may need $20 while a payment export needs $22. A dashboard that averages those two versions across a deployment date produces a series with no single meaning. Introduce a versioned measure or restate an agreed interval from recoverable inputs. If historic tax components are unavailable, show the historical limitation.
Seven days of silence cannot rule out a quarterly dependency. Use lineage, code search, query telemetry across the full operating cycle, an owner acknowledgment, or a rehearsed quarterly run. Agree on a rollback plan. Old and new readers should remain compatible during any rollback window, including replays of records produced before the migration.
The model behind the answer
The checkout team wants to retire the ambiguous amount. Introduce the explicitly named fields alongside it, publish their effective date, and give consumers a period in which both definitions can be inspected. A version number identifies the agreement. It cannot tell you which dashboards still read the old column.
Run old and new calculations on the same orders. For the $20 book, the old pre-tax measure and the new pre-tax field should agree at $20. The new charged field should reconcile to the independently observed $22 receipt. Comparing two aliases of the same mistaken expression provides little evidence.
Identify owners for active consumers, instrument remaining use, and agree on a retirement condition. If a historical period contains only a single ambiguous value, state which periods can be reconstructed and which must retain their original definition. A rollout can be compatible for tomorrow’s records and impossible to backfill faithfully for last year’s.
Rehearse a release with an older consumer
Have the agent propose an additive migration and a reversal plan. In a sandbox, run an archived quarterly export against the new producer and the new reader against an old record. Ask the consumer owner for expected dollars in both cases.
Reviewer decision. For a $20 item with $2 tax, verify which consumer expects $20 and which expects $22. A successful parse proves only structural compatibility. Keep both fields available until the slow consumer has exercised the new contract. Restoring the old code cannot recover a field that was already dropped from stored history.
Further reading. Designing Data-Intensive Applications, 2nd ed., on new readers of old data and old readers of new data.
One more question
A consumer wants a six-year backfill, but tax components exist only for the most recent two years. What do you ship?
Check your reasoning
Supply verified component-level history for the two recoverable years and explicitly label the older measure or its unknown components. An estimated backfill is a separate product requiring a method, uncertainty statement, and consumer agreement.
Previous · The decimal that changed its meaning · Next · Fresh, complete, and fit to use · Complete series map