Data Lineage
Data entities show where data is stored. Data lineage shows how it got there: where data originates, which systems and processing steps it passes through, and where it ends up, for example in a report, a data product or a partner's system.
Lineage is made of data flows. A data flow is a single step: data moving from one system to another, such as customer data from the CRM to billing. Chained together, the flows form the lineage of the data, from its origin to its last consumer.
Each data flow is realized by one or more integrations, the technical dependencies between systems and integration interfaces. A single flow may itself pass through several technical hops, such as the CRM publishing to a topic, an integration platform transforming the event, and billing consuming the result.
Why lineage belongs to data
Integrations and data lineage describe the same landscape from two sides:
| Integrations inventory | Data lineage | |
|---|---|---|
| Layer | Application | Data |
| Question | Which system depends on which interface? | Where does this data come from, where does it go, and why? |
| Main audience | Engineers and system owners | Architects, data owners, privacy and compliance |
| Typical use | Impact analysis when an interface changes | Data ownership, trust in reports, privacy, regulatory reporting, checks against guardrails |
| Closest TOGAF artifact | Application Interaction Matrix (application architecture) | Data Dissemination Diagram (data architecture) |
TOGAF places the Data Dissemination Diagram in its data architecture. It shows how data entities relate to business services and to the application components that realize them. Lineage adds the movement between those components. It is a property of the data, not of the technology that carries it: the technology can change while the lineage stays the same.
Levels of lineage
Lineage can be recorded at different levels of detail:
| Level | Shows | Typical source |
|---|---|---|
| System level | Which systems data moves between: the data flows | Architecture repository, documented by architects and data owners |
| Data set level | Which tables, topics, files and data products feed which others | Data catalogs and data platforms, harvested from pipelines |
| Attribute level | Which field is derived from which, through which transformations | Data platforms and transformation tools, for critical reports and regulated data |
The architecture repository keeps the system level: the data flows between systems, with the data entities they carry. The data set and attribute levels are collected automatically in data catalogs and platforms, and linked back to the systems and data entities in the repository.
What to record for each data flow
| Property | Example |
|---|---|
| Data entities | The data entities that flow, and if needed which attributes: Customer: name, address, email |
| Source and target | The system where the data comes from, and the system it goes to |
| Purpose | Billing needs customer addresses to send invoices |
| Realized by | The integrations that carry the flow, with the interfaces they use |
| Direction of change | One-way copy, or changes flowing back to the master system |
| Frequency | Real time, hourly, nightly |
| Classification | The most sensitive data in the flow, see Data Classification |
| Leaves the organization | Whether the data goes to a vendor or partner, and under which agreement |
Personal data
The level of detail matters most for personal and regulated data. Knowing where personal data comes from and where it goes is needed:
- to answer privacy requests, such as deleting a customer's data in every system that holds it
- to maintain the record of processing activities required by GDPR Article 30, which lists categories of personal data, recipients and transfers to other countries
- to check that data processing agreements exist for every vendor that receives personal data
For these purposes, recording that Customer flows from one system to another is not enough. The flow needs to say which personal attributes travel, and for what purpose.
Collecting lineage
Lineage can partly be harvested:
- Data platforms and catalogs collect lineage from pipelines, from source systems to reports. OpenLineage is an open standard for collecting lineage metadata from data jobs.
- Schemas and contracts of integration interfaces show which entities each interface exposes. Combined with the integrations inventory, they give a first draft of the data flows between operational systems.
The purpose of a flow, and its legal basis for personal data, cannot be harvested. They need to be documented by the data owners.
Checking lineage against guardrails
Once lineage is recorded, it can be checked against data guardrails:
- Customer data is changed only in the master system: are there flows that write customer data into the CRM from other systems?
- Personal data does not leave the EU: which flows go to systems or vendors hosted elsewhere?
- Analytics through data products, not operational APIs: which reports read directly from operational systems?
Flows that break a guardrail either need an exception or a plan to change them, often as part of a target architecture.
Questions data lineage can answer
- Where does customer data go after it is created, and why?
- Where does the number in this report come from, and can we trust it?
- Which systems and vendors receive personal data?
- Which flows and reports would be affected if the CRM is replaced?
- Which systems change master data that they do not own?