internalsGet Pro

Module 07 · Lesson 2 of 9Pro

Debezium and CDC connectors in practice

Level
Intermediate
Topic
Change data capture and replication
Reading time
18 min

When you finish this page you can

  1. Prepare a PostgreSQL 18 database for Debezium with logical decoding, a publication, a replication slot and a replication user.
  2. Write and explain a Debezium 3.7 PostgreSQL connector configuration, key by key.
  3. Read a change event’s envelope and use its before, after, op, source and ts_ms fields.
  4. Size, cap and monitor the WAL a replication slot keeps, and decide what happens when the connector stops.

Builds on 2 lessons

Start with lesson 116 min
  1. Change data capture: reading the database’s change log16 min
  2. Incremental loads with watermarks17 min

One JSON file replaces the hourly load

is an online store in India. A year after the earlier modules, it takes about 500,000 orders a day. The orders service keeps them in its own PostgreSQL 18 database, in orders and order_items. Meera, a data engineer, moves those rows to the warehouse, where Daniel’s finance team and the live festival dashboard read them.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan