> ## Content Index
> Fetch the complete content index at: https://abundance.alloconomy.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Migrate the consumers that depend on the field
- URL: https://abundance.alloconomy.com/alloconomy/de-interview-migrate-the-consumers-that-depend-on-the-field/
- Published: 2026-11-22T05:04:56.000Z
- Updated: 2026-11-22T16:32:01.000Z
- Description: Three consumers read an ambiguous amount.
- Author: Sathya Narayanan
- Tags: Alloconomy, Data Engineering, Data Engineering Interview Field Guide, #web-only, #series-detail, #Import 2026-11-21 19:24, Data contracts and safe change

1. [Collection · 10 seriesThe Data Engineering Interview Field Guide](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)
2. [Series opening · 3 essaysData contracts and safe changeSeries 9 of 10](https://abundance.alloconomy.com/alloconomy/de-interview-the-decimal-that-changed-its-meaning/)
3. This essay2 of 3

Data engineering · 3 essays

Data contracts and safe change

Complete reading path · You are in Part 2 of 3
1. Part 1[The decimal that changed its meaning](https://abundance.alloconomy.com/alloconomy/de-interview-the-decimal-that-changed-its-meaning/)A checkout field keeps its name and decimal type but begins including tax.
2. Part 2**Migrate the consumers that depend on the field**Current essayThree consumers read an ambiguous amount.
3. Part 3[Fresh, complete, and fit to use](https://abundance.alloconomy.com/alloconomy/de-interview-fresh-complete-and-fit-to-use/)Three warehouses usually send daily dispatches.

## 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](https://www.amazon.com/dp/1098119061?ref=abundance.alloconomy.com), 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.

1. [Back to the series openingData contracts and safe changeSeries 9 of 10](https://abundance.alloconomy.com/alloconomy/de-interview-the-decimal-that-changed-its-meaning/)
2. [Explore the collectionThe Data Engineering Interview Field Guide](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)

[Previous · The decimal that changed its meaning](https://abundance.alloconomy.com/alloconomy/de-interview-the-decimal-that-changed-its-meaning/) · [Next · Fresh, complete, and fit to use](https://abundance.alloconomy.com/alloconomy/de-interview-fresh-complete-and-fit-to-use/) · [Complete series map](https://abundance.alloconomy.com/alloconomy/data-engineering-interview-field-guide/)