internalsGet Pro

Module 07 · Lesson 6 of 9Pro

Ordering and duplicates in CDC pipelines

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

When you finish this page you can

  1. Explain why a Debezium pipeline delivers some changes twice after a crash, and which copies a consumer can tell apart.
  2. Say which ordering a CDC topic keeps, per key and per partition, and where that ordering ends.
  3. Choose the field that decides which of two changes to one row is newer, and say why updated_at and Kafka offsets fail at it.
  4. Remove duplicates and keep the newest change per row in DuckDB, and guard a streaming consumer against old changes.

Builds on 3 lessons

Start with lesson 116 min
  1. Change data capture: reading the database’s change log16 min
  2. Debezium and CDC connectors in practice18 min
  3. Deduplication: keeping one row per entity17 min

The orders tile jumped by ₹10 lakh

is an online store in India, now taking about 500,000 orders a day. Meera, a data engineer on its data team, replaced the hourly orders load with on Monday 15 November 2027. reads every change to the orders database and writes it to Kafka topics. Consumers read those topics to keep live order counts and, from the next lesson, current-state tables for Daniel’s finance reports.

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