Skip to main content

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 inventoryData lineage
LayerApplicationData
QuestionWhich system depends on which interface?Where does this data come from, where does it go, and why?
Main audienceEngineers and system ownersArchitects, data owners, privacy and compliance
Typical useImpact analysis when an interface changesData ownership, trust in reports, privacy, regulatory reporting, checks against guardrails
Closest TOGAF artifactApplication 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:

LevelShowsTypical source
System levelWhich systems data moves between: the data flowsArchitecture repository, documented by architects and data owners
Data set levelWhich tables, topics, files and data products feed which othersData catalogs and data platforms, harvested from pipelines
Attribute levelWhich field is derived from which, through which transformationsData 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​

PropertyExample
Data entitiesThe data entities that flow, and if needed which attributes: Customer: name, address, email
Source and targetThe system where the data comes from, and the system it goes to
PurposeBilling needs customer addresses to send invoices
Realized byThe integrations that carry the flow, with the interfaces they use
Direction of changeOne-way copy, or changes flowing back to the master system
FrequencyReal time, hourly, nightly
ClassificationThe most sensitive data in the flow, see Data Classification
Leaves the organizationWhether 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?