Blog
Articles
Change Data Capture and Lineage: Keeping Real-Time Pipelines Auditable

Change Data Capture Needs Code-Derived Lineage, Not Batch Scans

Articles
November 10, 2026
Team Foundational
Subscribe to our Newsletter
Get the latest from our team delivered to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Ready to get started?
Try It Free
Change data capture events flowing in real time into an auditable record

Change data capture pipelines move data the moment it changes, not on the next scheduled run. That speed is the whole point of adopting CDC, but it creates a lineage problem most teams do not notice until an audit or an incident forces the question of which code path a given record actually traveled through. For teams running CDC on Kafka, Debezium style connectors, or cloud native event buses, most lineage tools cannot answer that question. They were built around batch transformation boundaries and capture a snapshot every few hours. A CDC pipeline does not wait for that snapshot. Closing the gap requires lineage derived from the actual code in the CDC connectors, stream processors, and consumers, not from periodic scans of warehouse metadata.

Why Batch-Built Lineage Tools Lose the Trail

Most lineage tooling was designed around a scheduled job model: extract, transform, load, then record what happened. That model assumes a transformation has a clear start and end, and that metadata scans run often enough to catch every change. CDC breaks both assumptions. A single source table change can fan out through a message broker to a dozen consumers within seconds, each one a separate piece of code with its own transformation logic. A tool that only inspects warehouse tables after the fact sees the destination, not the path. It cannot tell a compliance team which consumer, which transformation, or which deployed version of a streaming job actually touched a given field.

Where the Blind Spots Show Up

  • Kafka consumers and producers that transform payloads in application code the lineage tool never parses.
  • Stream processing jobs (Flink, Spark Streaming, or custom Java and Python services) that reshape events before they land anywhere a catalog can see them.
  • Schema evolution on the source side that changes what a CDC event contains, with no corresponding update to downstream documentation.
  • Replay and backfill jobs that reprocess historical change events through code paths that differ from the live pipeline.

Catching these before they reach production follows the same discipline covered in how to catch data pipeline breaking changes before they ship, except CDC multiplies the number of places a breaking change can hide.

Change Data Capture, Defined

Change data capture (CDC) is a set of techniques for identifying and capturing changes made to data in a source system so they can be propagated to downstream systems in near real time.

CDC typically works through log based replication, trigger based capture, or timestamp polling, pushing insert, update, and delete events into a streaming platform such as Kafka or a cloud native event bus. Teams adopt CDC to keep analytics, search indexes, and downstream services synchronized without waiting for a batch window. The tradeoff is that a single source change now travels through a chain of connectors, consumers, and transformations instead of one scheduled job, which multiplies the number of code paths that lineage has to account for.

What This Means for Incident Response and Audits

When a CDC pipeline misbehaves, the cost shows up as hours spent manually reconstructing which connector, consumer, or transformation touched a record, instead of minutes spent reading a lineage graph that already reflects the production code. The same gap shows up in audits: a reviewer asking how a specific field moved from a source database to a downstream report needs an answer tied to the code that is actually deployed, not a diagram drawn from the last documentation update. Ramp saw its build success rate improve from 85 percent to 95 percent after adopting governance that scales with its engineering organization, according to Kevin Chao, Analytics Engineering Lead, who runs this across 40 or more engineers and 100 or more pull requests weekly. That kind of outcome depends on lineage that reflects the code in production, not a periodic approximation of it.

DimensionBatch oriented lineage toolsCode derived CDC lineage
When lineage updatesOn the next scheduled metadata scanAutomatically when connector or consumer code changes
What it seesSource and destination tablesEvery connector, stream processor, and consumer in between
Coverage of streaming codeLimited or none for Kafka consumers, Flink, Spark StreamingFull, since lineage is derived from that code directly
Audit readinessReconstructed after the fact, often manuallyAvailable on demand, tied to the deployed code path

What Good Looks Like

Auditable CDC lineage comes from analyzing the actual code that moves and transforms the data: the connector configuration, the stream processing logic, and the consumer services, not just the tables the pipeline eventually writes to. Foundational analyzes source code across any code that touches data, including Kafka consumers and producers, Spark and Flink streaming jobs, and the Java, Python, or Scala services that sit between them, not only the pipeline's entry and exit points. Because that lineage is derived directly from code, it regenerates automatically when a connector is redeployed or a transformation changes, instead of waiting on the next scheduled metadata crawl. That is what makes governance of CDC pipelines proactive rather than a forensic exercise after something has already gone wrong: the lineage graph reflects what the code does today, not what a scan observed last week. It is the same principle behind governing data at the code level, applied specifically to streaming and CDC pipelines.

Frequently Asked Questions

Why don't our existing lineage tools catch changes from our CDC pipelines?

Most lineage tools were built to scan warehouse and table metadata on a schedule, which works for batch ETL but misses the connectors, stream processors, and consumer services that make up a CDC pipeline. Those components are application code, not warehouse objects, so a metadata scanner never sees the transformation logic inside them. Lineage derived from the code itself, rather than from what lands in a table afterward, is what closes this gap.

What is the difference between change data capture and data lineage?

Change data capture is the mechanism that moves data changes from a source system to downstream consumers in near real time. Data lineage is the record of how that data moved and what transformed it along the way. CDC without lineage tells you data changed; lineage tells you which code changed it, through which systems, and what depends on it now.

Can code derived lineage keep up with a Kafka based CDC pipeline in real time?

Yes, because the lineage is generated from the connector, stream processing, and consumer code itself rather than from observing data after it lands. When that code is redeployed or a transformation changes, the lineage graph regenerates with it, instead of waiting for the next scheduled scan of destination tables.

Do we need separate lineage tooling for streaming pipelines versus batch pipelines?

No. The underlying requirement is the same: deterministic lineage derived from the code that touches the data, whether that code runs on a schedule or reacts to a stream of change events. A single source code based approach covers both, including the Java, Python, Scala, and SQL that typically connect batch and streaming systems together.

Keep Every CDC Pipeline Auditable

CDC pipelines move faster than the lineage tools most teams rely on today, and that gap only grows as more systems adopt real-time replication. Governing that gap requires lineage built from the code that actually moves the data, not a periodic snapshot of where it landed. See how Foundational traces every CDC connector, stream processor, and consumer in a live demo.

code snippet <goes here>
<style>.horizontal-trigger {height: calc(100% - 100vh);}</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/ScrollTrigger.min.js"></script>
<script>
// © Code by T.RICKS, https://www.timothyricks.com/
// Copyright 2021, T.RICKS, All rights reserved.
// You have the license to use this code in your projects but not to redistribute it to others
gsap.registerPlugin(ScrollTrigger);
let horizontalItem = $(".horizontal-item");
let horizontalSection = $(".horizontal-section");
let moveDistance;
function calculateScroll() {
 // Desktop
 let itemsInView = 3;
 let scrollSpeed = 1.2;  if (window.matchMedia("(max-width: 479px)").matches) {
   // Mobile Portrait
   itemsInView = 1;
   scrollSpeed = 1.2;
 } else if (window.matchMedia("(max-width: 767px)").matches) {
   // Mobile Landscape
   itemsInView = 1;
   scrollSpeed = 1.2;
 } else if (window.matchMedia("(max-width: 991px)").matches) {
   // Tablet
   itemsInView = 2;
   scrollSpeed = 1.2;
 }
 let moveAmount = horizontalItem.length - itemsInView;
 let minHeight =
   scrollSpeed * horizontalItem.outerWidth() * horizontalItem.length;
 if (moveAmount <= 0) {
   moveAmount = 0;
   minHeight = 0;
   // horizontalSection.css('height', '100vh');
 } else {
   horizontalSection.css("height", "200vh");
 }
 moveDistance = horizontalItem.outerWidth() * moveAmount;
 horizontalSection.css("min-height", minHeight + "px");
}
calculateScroll();
window.onresize = function () {
 calculateScroll();
};let tl = gsap.timeline({
 scrollTrigger: {
   trigger: ".horizontal-trigger",
   // trigger element - viewport
   start: "top top",
   end: "bottom top",
   invalidateOnRefresh: true,
   scrub: 1
 }
});
tl.to(".horizontal-section .list", {
 x: () => -moveDistance,
 duration: 1
});
</script>

Govern CDC Pipelines in Real Time

Request a demo to see deterministic lineage trace every CDC connector, consumer, and stream.

Govern CDC Pipelines in Real Time

Request a demo to see deterministic lineage trace every CDC connector, consumer, and stream.

Govern CDC Pipelines in Real Time

Request a demo to see deterministic lineage trace every CDC connector, consumer, and stream.

Share this post
Subscribe to our Newsletter
Get the latest from our team delivered to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Ready to get started?
Try It Free

Governance that starts at the source.