Setting up PostgreSQL for Debezium – Elephant Tamer
Edit: In the original post, I made a mistake about Debezium versions: it should be 1.2.2 to 1.3.0, not 2.0 to 3.0. And we have experienced a production incident with 1.2.1 so my recommendation is – go for 1.3.1, not any other version (as for November 2020). Debezium is a popular Open Source change data capture (CDC) solution. It’s based on a set of well-established components (Kafka, Kafka Connect, ZooKeeper) and used successfully in production by companies like Dehlivery or BlaBlaCar. However, the setup is not as straightforward as one may think, and you may encounter some obstacles. In this post, I will share some tips originating from hooking up Debezium to a quite big and busy OLTP Postgres database. Originally, Debezium was connected to a Postgres DB using a wal2json or decoderbufs plugins. Don’t use them – as native logical replication became available in Postgres 10, a better option called “pgoutput” was introduced in Debezium. From the database perspective, the Debezium connect
Edit: In the original post, I made a mistake about Debezium versions: it should be 1.2.2 to 1.3.0, not 2.0 to 3.0. And we have experienced a production incident with 1.2.1 so my recommendation is – go for 1.3.1, not any other version (as for November 2020). Debezium is a popular Open Source change data capture (CDC) solution. It’s based on a set of well-established components ( Kafka , Kafka Connect, ZooKeeper) and used successfully in production by companies like Dehlivery or BlaBlaCar . However, the setup is not as straightforward as one may think, and you may encounter some obst
related reading
- Flink CDC for Postgres: Lessons Learned | sap1ens.comsap1ens.com
- Track every PostgreSQL data change using Debezium - DEV Communitydev.to
- Debezium and TimescaleDBdebezium.io
- Patching the PostgreSQL JDBC Driverengineering.zalando.com
- GitHub - debezium/debezium: Change data capture for a variety of databases. Please log issues at https://github.com/debezium/dbz/issues. · GitHubgithub.com
- Overcoming Pitfalls of Postgres Logical Decodingblog.peerdb.io
- debezium-examples/postgres-toast at main · debezium/debezium-examplesgithub.com
- An Overview of Distributed PostgreSQL... | Crunchy Data Blogcrunchydata.com
- PostgreSQL CDC - RisingWavedocs.risingwave.com
- Ingest data from self-hosted PostgreSQL | Materialize Documentationmaterialize.com
- DBMS Musings: It’s Time to Move on from Two Phase Commitdbmsmusings.blogspot.com
- Nine ways to shoot yourself in the foot with PostgreSQLphilbooth.me