Debezium
- Problem solved: continuously and almost instantly propagate every row change of a database to other systems, without periodic queries.
- Era: first commit in November 2015, version 0.1 on March 18, 2016, 1.0 on December 18, 2019.
- Publisher: Red Hat, then the Commonhaus Foundation since December 2024 (non-Apache project, Apache 2.0 license).
- Created by: Randall Hauch, founder of the project, sponsored by Red Hat.
- Category: change data capture (CDC).
Historical context
Change Data Capture is not a new idea: the project's FAQ describes it as "an older term" for any system that monitors changes in a database so that other software can respond to them. What changes in the mid-2010s is Kafka and its integration framework Kafka Connect: by storing the history of changes in Kafka logs, a database can be turned into an event stream that an application consumes, even after being stopped.
Randall Hauch founds Debezium, which Red Hat has been the sole sponsor of since its beginnings in 2015; the first commit dates from November 2015. On March 18, 2016, he publishes version 0.1: "a distributed platform that turns your existing databases into event streams". It has a single connector, for MySQL, which reads the binlog and produces an event for every committed row change. It runs in Kafka Connect 0.9.0.1.
In early 2017, Randall Hauch, who is changing jobs, looks for a successor: Gunnar Morling becomes project lead. Version 1.0 ships on December 18, 2019, with stable connectors for MySQL, Postgres, MongoDB and SQL Server, and incubating connectors for Cassandra and Oracle. In 2020, version 1.2 adds Debezium Server, a standalone runtime built on Quarkus that sends changes to messaging systems other than Kafka: Amazon Kinesis, Google Cloud Pub/Sub or Apache Pulsar.
In October 2022, Gunnar Morling hands over to Jiri Pechanec. He takes stock: 3 officially supported databases at the start, 8 in 2022, over 450 contributors, users such as Reddit, Shopify, Ubisoft and Zalando. Version 3.0 ships on October 2, 2024. On November 4, 2024, the project announces its move to the Commonhaus Foundation, which also hosts Hibernate, Jackson and Quarkus; it joins in December 2024.
Key idea
Do not query the database, read its log: the binlog for MySQL, the logical replication stream for PostgreSQL. Every committed insert, update or delete becomes an event describing the row before and after the change. These events are stored in Kafka, by default one topic per table: a stopped consumer can restart and catch up on everything it missed.
How it works
- Three ways to deploy: as source connectors in Kafka Connect (the most common case), with Debezium Server towards other messaging systems, or embedded as a library in a JVM application (Debezium Engine).
- Initial snapshot: on first connection, the connector takes a consistent snapshot of the tables, then follows changes continuously. Incremental snapshots move forward in chunks of 1024 rows by default.
- Event format: an envelope with
before,after,source(connector, database, table, transaction, position in the log) andop(ccreate,uupdate,ddelete,rread during a snapshot,ttruncate). - Guarantees: in normal operation, each event is seen once; on failure, delivery is "at least once", so consumers must tolerate duplicates.
- Connectors: the 3.7 series is tested with, among others, MySQL, MariaDB, PostgreSQL, MongoDB, SQL Server, Oracle, Db2, Cassandra, CockroachDB, Spanner, Vitess and TiDB, plus a JDBC sink connector.
Example of an update event emitted by the PostgreSQL connector (simplified extract from the documentation):
{
"before": { "id": 1 },
"after": { "id": 1, "first_name": "Anne Marie", "last_name": "Kretchmar" },
"source": {
"connector": "postgresql",
"db": "postgres",
"table": "customers",
"txId": 556,
"lsn": 24023128
},
"op": "u"
}
By the numbers
| Figure | Context | Source |
|---|---|---|
| November 2015 | First commit of the project | Debezium blog (1.0) |
| 96 issues | Addressed for 1.0 and its preview releases (2019) | Debezium blog |
| ~200 issues | Resolved in three months for 1.2 (2020) | Debezium blog |
| 3 to 8 | Officially supported databases, from launch to 2022 | "Debezium Evolving" |
| 450+ | People who contributed to the code base (2022) | "Debezium Evolving" |
| 1024 rows | Default chunk size of an incremental snapshot | PostgreSQL documentation |
| 3.7.1.Final | Latest stable release as of November 6, 2026 | Releases page |
Milestones
- November 2015: first commit, under Red Hat's sponsorship.
- March 18, 2016: version 0.1 (MySQL connector, Kafka Connect 0.9.0.1).
- Early 2017: Gunnar Morling succeeds Randall Hauch as project lead.
- December 18, 2019: 1.0 (MySQL, Postgres, MongoDB, SQL Server; tested with Kafka 2.4.0).
- May 19, 2020: Debezium Server appears in 1.2.0.Beta2 (final on June 24, 2020).
- October 17, 2022: 2.0.
- October 26, 2022: Gunnar Morling steps down as lead, Jiri Pechanec takes over.
- October 2, 2024: 3.0 (Java 17 minimum according to InfoQ).
- November 4, 2024: move to the Commonhaus Foundation announced, effective in December 2024.
Did you know?
- The name comes from "DBs", for multiple databases, and the "-ium" suffix of periodic table elements. The FAQ suggests pronouncing it "dee-BEE-zee-uhm".
- Database vendors such as ScyllaDB and Yugabyte build their own Debezium connectors, which makes the event format "kind of a de-facto standard for CDC".
- The donation to Commonhaus covers the trademark and domain names, not the copyright: Red Hat has no exclusive claim to copyright on the code.
- With PostgreSQL, the
beforefield of an update may only hold the key: its content depends on each table's REPLICA IDENTITY setting.
Strengths and limitations
| Strengths | Limitations |
|---|---|
| Continuous capture, with no queries on the tables | Depends on access to each database's log and its configuration |
| Event format shared by many databases | At-least-once delivery on failure: duplicates possible |
| Replayable history thanks to Kafka | Classic deployment tied to Kafka and Kafka Connect |
| Three deployment modes (Connect, Server, Engine) | Bulky JSON events without the Avro converter |
Place in the system
Bridge between operational databases (MySQL, PostgreSQL, Cassandra...) and the rest of the platform, through Kafka. Events then feed stream processing such as Flink or data lake tables: Hudi Streamer, for example, keeps a Hudi table in sync with a database by reading Debezium events.
Sources
raw-data/ecosysteme/debezium/debezium.mdraw-data/chronologie/jalons-sources.md(Debezium 0.1)- 0.1 announcement (2016-03-18): https://debezium.io/blog/2016/03/18/Debezium-0-1-Released/
- 1.0 announcement (2019-12-18): https://debezium.io/blog/2019/12/18/debezium-1-0-0-final-released/ and release notes: https://debezium.io/releases/1.0/release-notes
- 1.2.0.Beta2 (2020-05-19) and 1.2.0.Final (2020-06-24) announcements: https://debezium.io/blog/2020/05/19/debezium-1-2-beta2-released/ and https://debezium.io/blog/2020/06/24/debezium-1-2-final-released/
- Gunnar Morling, "Debezium Evolving" (2022-10-26): https://debezium.io/blog/2022/10/26/debezium-evolving/
- Move to Commonhaus (2024-11-04): https://debezium.io/blog/2024/11/04/debezium-moving-to-commonhaus/ and FAQ: https://debezium.io/foundation/faq/
- Post of 2025-12-12: https://debezium.io/blog/2025/12/12/contribution-requirements-changing/
- FAQ: https://debezium.io/documentation/faq/
- Architecture: https://debezium.io/documentation/reference/stable/architecture.html
- PostgreSQL connector: https://debezium.io/documentation/reference/stable/connectors/postgresql.html
- Releases and archives: https://debezium.io/releases/ and https://debezium.io/archives/
- Hudi documentation, ingestion: https://hudi.apache.org/docs/hoodie_streaming_ingestion
- [S] InfoQ (2024-10): https://www.infoq.com/news/2024/10/java-news-roundup-sep30-2024/
- Date and version of exactly-once support (KIP-618), to be sourced on debezium.io.
- Recent usage figures (contributors, downloads) published by the project after 2022.
- Exact role of Red Hat in the creation in 2015, beyond sponsorship.
- List of the 3 databases supported at the start and the 8 of 2022, not detailed by the source.
- Use with Flink (claim carried over from the old page), to be sourced.