Skip to content

Change Data Capture

How change data capture streams inserts, updates and deletes from databases, and why it beats repeated full extracts.

Editorial team 2 min read

Change data capture (CDC) tracks changes in a source database — inserts, updates and deletes — and delivers them to other systems.

Why CDC

Repeatedly copying whole tables is slow, heavy on the source database and misses deletions. CDC moves only what changed, often in near real time.

Approaches

  • Log-based CDC: read the database's transaction log (write-ahead log or binlog). Captures every change, including deletes, with minimal load on the source. The preferred approach.
  • Timestamp-based: query rows with an "updated at" value after the last run. Simple, but misses deletes and relies on timestamps being maintained correctly.
  • Triggers: database triggers write changes to a separate table. Adds load and complexity to the source.

What CDC Produces

A stream of change events with the operation, the row's data (before and after), and ordering information. Downstream systems apply these to keep copies in sync.

Common Uses

  • Keeping a warehouse or lakehouse up to date.
  • Feeding search indexes and caches.
  • Event-driven integrations between services.
  • Auditing changes.

Challenges

  • Schema changes in the source must be handled.
  • Ordering and exactly-once delivery require care.
  • Initial snapshots must be combined with ongoing changes.
  • Sensitive data flows onward, so governance applies.

Tools

Open-source connectors such as Debezium, and managed services from cloud and data-integration providers.

More in Data engineering

All Data engineering guides →
Data engineering Guide · 2 min

What Is Data Engineering?

What data engineers do, how data flows from source systems to analysis and AI, and the core skills involved.

Data engineering 2 min read 4 Jan 2026

Data engineering Guide · 2 min

ETL Versus ELT

The difference between transforming data before loading and after, and why modern warehouses shifted the default to ELT.

Data engineering 2 min read 3 Jan 2026

Data engineering Guide · 1 min

Data Warehouses, Data Lakes and Lakehouses

The three main architectures for analytical data storage, what each is good for and how they are converging.

Data engineering 1 min read 2 Jan 2026

Data engineering Guide · 2 min

Data Modelling for Analytics

Star schemas, facts and dimensions: how to design tables that make analysis fast, consistent and easy to understand.

Data engineering 2 min read 1 Jan 2026