internalsGet Pro

Module 07 · Lesson 9 of 9Pro

Design: syncing a production database to analytics

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

When you finish this page you can

  1. Design a CDC sync from two production PostgreSQL databases to Snowflake, from requirements and estimates to the final set of tables.
  2. Drive every table’s merge from one registry, so a fix or a new column reaches all tables at once.
  3. Switch reports from a batch load to CDC only after a reconciliation proves the copy matches the source.
  4. Measure freshness end to end with a heartbeat row that travels the whole pipeline, and alert on it from outside the pipeline.
  1. Design: ingesting orders from five sources28 min
  2. Debezium and CDC connectors in practice18 min
  3. Initial snapshots: loading history before changes16 min
  4. Deletes, updates and schema changes in CDC18 min
  5. Ordering and duplicates in CDC pipelines18 min
  6. Landing CDC data in a warehouse or lakehouse17 min

Sunday’s orders stopped at 19:40

is an online store in India that takes about 500,000 orders a day. Meera, a data engineer on Kartly’s data team, copies its production databases into Snowflake, the warehouse. Daniel, who leads finance reporting, reads yesterday’s numbers from there at 07:00.

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