Inferensys

Glossary

Debezium

An open-source distributed platform for Change Data Capture (CDC), built on top of Apache Kafka, that streams row-level changes from various databases into data pipelines.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
CHANGE DATA CAPTURE PLATFORM

What is Debezium?

Debezium is an open-source distributed platform for Change Data Capture (CDC) built on top of Apache Kafka, streaming row-level changes from databases into data pipelines.

Debezium is an open-source distributed platform for Change Data Capture (CDC) built on top of Apache Kafka. It monitors databases and streams row-level INSERT, UPDATE, and DELETE operations as real-time events, enabling downstream consumers to react to data changes with low latency without polling or batch extraction.

Debezium uses database-specific connectors—such as for MySQL, PostgreSQL, MongoDB, and SQL Server—that read transaction logs directly. This log-based approach captures changes atomically and preserves ordering, ensuring exactly-once semantics when paired with Kafka. The platform integrates with a Schema Registry for schema evolution and supports the Outbox Pattern for reliable microservice communication.

CHANGE DATA CAPTURE PLATFORM

Key Features of Debezium

Debezium is a distributed platform that turns your existing databases into event streams, enabling applications to react immediately to every row-level change committed to your database transaction logs.

01

Transaction Log Tailing

Debezium reads directly from the database's native transaction log, capturing row-level changes as they are committed. This approach guarantees no data loss and imposes minimal overhead on the source database.

  • Reads from MySQL binlog, PostgreSQL WAL, MongoDB oplog, and SQL Server transaction log
  • Captures INSERT, UPDATE, and DELETE operations as structured events
  • Maintains total order of changes as they occurred on the primary database
Sub-ms
Capture Latency
03

Schema Change Handling

Debezium detects and propagates Data Definition Language (DDL) changes, such as adding a column or altering a table, without interrupting the data stream. Schema history is stored in a dedicated Kafka topic.

  • Emits a schema change event to a separate topic for downstream consumers
  • Integrates with Schema Registry to manage Avro schema evolution and compatibility
  • Supports schema-on-read patterns by providing the full history of table structures
04

Snapshotting for Initial State

When a connector starts for the first time, Debezium performs a consistent snapshot of the existing database state before switching to streaming mode. This ensures downstream systems have a complete, point-in-time view.

  • Uses global read locks or snapshot isolation depending on the database engine
  • Emits snapshot completion events to signal the transition to real-time streaming
  • Supports incremental snapshots for resuming interrupted initial loads on large tables
05

Message Transformation & Routing

Debezium supports Single Message Transformations (SMTs) and content-based routing to reshape events before they land in Kafka topics. This allows for filtering, renaming, and restructuring without additional stream processors.

  • Built-in SMTs for extracting new record state, flattening nested structures, and filtering by operation type
  • Topic routing can direct changes for different tables to separate Kafka topics
  • Custom SMTs can be implemented via the Kafka Connect plugin interface
06

Multi-Tenant & Multi-Database Support

A single Debezium instance can monitor multiple databases, schemas, or tables simultaneously. Connectors are configured with per-tenant filtering to isolate data streams for different downstream consumers.

  • Whitelist/blacklist configurations for databases, schemas, and tables at the connector level
  • Supports multi-tenant deployments where a single connector captures changes across many logical databases
  • Each captured table maps to a dedicated Kafka topic by default, enabling fine-grained access control
DEBEZIUM CDC

Frequently Asked Questions

Clear, technical answers to the most common questions about Debezium's architecture, deployment, and operational behavior for Change Data Capture.

Debezium is an open-source distributed platform for Change Data Capture (CDC) built on top of Apache Kafka. It works by acting as a source connector for Kafka Connect, monitoring your database's transaction log to read row-level inserts, updates, and deletes as they are committed. Instead of polling tables with expensive queries, Debezium taps directly into the database's native replication stream—such as MySQL's binlog, PostgreSQL's logical decoding, or MongoDB's oplog—to capture changes with minimal latency and zero data loss. Each captured change is emitted as an event to a dedicated Kafka topic, where downstream consumers can reliably process the stream of immutable, ordered change events. This architecture decouples source databases from target systems, enabling real-time data synchronization, cache invalidation, and event-driven microservices without modifying your application code.

Prasad Kumkar

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.