Change Data Capture (CDC) is a data integration pattern that identifies, captures, and delivers row-level modifications—INSERT, UPDATE, and DELETE operations—from a source database's transaction log to downstream systems with minimal latency. Unlike batch-based extraction, CDC reads directly from the database's native replication log, enabling non-intrusive, low-overhead change detection without impacting operational workloads.
Glossary
Change Data Capture (CDC)

What is Change Data Capture (CDC)?
Change Data Capture is a set of software design patterns used to identify and track row-level changes in source database tables and stream those changes to downstream systems in real-time.
CDC powers real-time use cases by feeding event streams into platforms like Apache Kafka or Amazon Kinesis, where they drive event stream processing, sessionization, and real-time customer segmentation. This architectural pattern eliminates the latency of periodic bulk extracts, ensuring that propensity scoring and next-best-action engines operate on current data rather than stale snapshots.
Key Characteristics of CDC
Change Data Capture is defined by its ability to track and stream row-level mutations. The following characteristics distinguish CDC from bulk batch replication.
Log-Based Capture
The most efficient CDC method reads directly from the database transaction log. This approach captures INSERT, UPDATE, and DELETE operations with minimal latency and zero impact on source application performance. Unlike trigger-based methods, log-based capture does not require schema changes to the source tables.
Push-Oriented Delivery
CDC operates on a push model, streaming changes to downstream systems as they happen. This contrasts with batch-oriented pull models. The immutable, ordered stream of events is typically published to a distributed log like Apache Kafka, allowing multiple independent consumers to subscribe to the same feed.
State and Schema Evolution
CDC pipelines must handle schema evolution gracefully. As source tables add or modify columns, the capture process and downstream consumers must adapt without data loss. A Schema Registry is critical for managing compatibility and ensuring the structural integrity of the change stream over time.
Exactly-Once Semantics
Enterprise-grade CDC guarantees idempotent processing. This ensures that in the event of a network failure or crash, replaying the log does not introduce duplicates. Achieving exactly-once semantics requires tight coordination between the capture agent and the stream processor to manage checkpoints and offsets.
Before-Image Support
To enable complex downstream reconciliation, CDC often captures the before-image (the row state prior to the mutation) alongside the after-image. This is essential for auditing, conflict resolution in bi-directional replication, and training machine learning models on the delta of a change.
Filtering and Routing
CDC is not just a raw firehose. Mature implementations allow for content-based filtering and routing. For example, a single capture stream can be partitioned so that only changes to high-value customer tables are routed to the real-time personalization engine, while all other changes go to the data lake.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Clear, technical answers to the most common questions about implementing and operating Change Data Capture (CDC) patterns in modern data architectures.
Change Data Capture (CDC) is a set of software design patterns used to identify and track row-level changes—INSERT, UPDATE, and DELETE operations—in source database tables and stream those changes to downstream systems in real time. Rather than relying on expensive batch queries that scan entire tables for modifications, CDC operates by reading the database's native transaction log (such as MySQL's binlog, PostgreSQL's write-ahead log, or SQL Server's transaction log). A CDC connector parses this log, extracts committed row mutations, serializes them into a structured event, and publishes them to a distributed streaming platform like Apache Kafka. Downstream consumers—data warehouses, caches, search indexes, and microservices—consume these events to maintain eventually consistent, up-to-date materialized views without placing additional query load on the source database.
Related Terms
Change Data Capture is a foundational pattern for real-time data architectures. These related concepts define the infrastructure, guarantees, and processing paradigms that surround and enable CDC pipelines.
Event Sourcing
An architectural pattern where the state of a business entity is determined by an immutable, append-only sequence of all state-changing events, rather than just storing the current state. CDC is often the mechanism that publishes these events from a transactional database into an event log. The database transaction log becomes the source of truth, and the CDC connector translates row-level mutations into domain events.
Exactly-Once Semantics
A delivery guarantee ensuring that even in the event of failures, each record is processed only once, and the resulting state is computed as if the failure never occurred. CDC pipelines must coordinate idempotent writes and transactional sinks to prevent duplicate records when a connector replays a batch after a crash. Frameworks like Apache Flink implement this via distributed checkpointing.
Schema Registry
A centralized service that stores and manages the schemas for data formats like Avro or Protobuf. In a CDC pipeline, the schema of the source table is embedded in each event. A schema registry enforces compatibility rules—such as backward compatibility—ensuring downstream consumers can deserialize events even as the source table evolves.
Watermarking
A mechanism in stream processing that tracks the progress of event time and provides a threshold for tolerating late-arriving data. When consuming CDC streams, watermarks allow windowed aggregations to close correctly, even if events from the source database arrive out of order due to network lag or distributed commits.
Outbox Pattern
A transactional messaging pattern where a service writes to both its business tables and an 'outbox' table within a single database transaction. A CDC connector then tails the outbox table to reliably publish messages to a message broker. This guarantees at-least-once delivery without the risk of dual-write inconsistencies.
Event Stream Processing (ESP)
A computing paradigm that continuously processes and analyzes streams of event data in real-time. CDC is the ingestion backbone for ESP; it converts static database snapshots into a continuous, ordered stream of immutable events that stream processors can join, filter, and aggregate to detect patterns and trigger automated actions.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us