Contracts, Lineage, and Evolution: Capstone
Core Concepts (5)
- 1.A data contract is an agreement between producer and consumer
- 2.Lineage shows what breaks when something changes
- 3.Schema changes should be compatible by default
- 4.Domain ownership scales better than a central team alone
- 5.Privacy rules must follow data wherever it travels
Map to Your Experience
Recall a column that was renamed or dropped upstream. Who found out first, and how long did it take?
Design Brief: Design the Data Platform End to End
Learn
Technical choices about engines and pipelines only hold up if the data stays trustworthy as teams and schemas change. The final discipline is governance, which is less about committees and more about making agreements explicit and checkable.
A data contract states what a producer promises: the fields, their types and meaning, the freshness, and who to contact. Consumers rely on it, and automated checks in the producer's build reject changes that break it. This turns surprise breakage in the warehouse into a failed test in the owning team's pipeline.
Lineage records where data came from and where it goes. When a source field changes, lineage tells you which tables, dashboards, and models are affected. It also supports audits: you can show an auditor how a regulatory figure was derived. Capture it automatically from pipelines rather than by hand, since hand drawn maps go stale quickly.
Schema evolution needs a safe routine. Adding an optional field is usually compatible. Renaming or removing one is not. The expand and contract approach adds the new shape alongside the old, migrates consumers, and only then removes the old shape. It is slower than a single change but it never breaks a reader.
Ownership is the last piece. A central team cannot understand every domain, so a data mesh style approach asks domain teams to publish their data as a product, while a platform team provides common tools and guardrails. Privacy rules, such as deletion on request, must travel with the data into every copy, which is only possible when lineage is reliable.
Map
Choose one dataset that other teams consume. Write down its producer, its consumers, the fields they depend on, and what would happen if a field changed type tomorrow. Mark which of these facts exist today only in someone's memory. Share the result with a colleague and note where their reading differs from yours.
Design
Produce the capstone design for the whole data platform. Show storage, movement, and analytics. Write two data contracts in plain prose, describe a compatible schema change using expand and contract, and explain how a deletion request reaches every copy of a person's data. Close with the single biggest risk and how you would monitor it. Keep the output to a single page that a peer could review in ten minutes without your help.
Requirements
- •Include storage, movement, and analytics layers
- •Define at least two data contracts
- •Describe a compatible schema change end to end
Constraints
- •Personal data must be deletable on request
- •Ten producing teams, one platform team
Must Cover
Trade-off Axis
central control vs team autonomy
Referenced Patterns
Competencies Advanced
Ready to Design?
Open this day in the Design Studio. The studio follows this track: its days, concepts, patterns and trade-offs are loaded, and you keep one design across the whole track.
Open in Studio →