internalsGet Pro

Data Engineering · Module 07

Change data capture and replication

Lessons
9
Free
0
Reading
~3 h

Your progress

0 / 9 lessons done

Sign in to track

Lessons

  1. Change data capture: reading the database’s change logMost data teams start by querying a replica for changed rows, and most outgrow it when someone asks about a value that was overwritten, or a row that was deleted. Change data capture is how the warehouse sees every change, and it brings a new job: keeping a reader on the production database healthy.16 min
  2. Debezium and CDC connectors in practiceMost teams that stream database changes run Debezium or a tool built the same way. The configuration takes an hour; the operational risk, a slot that quietly fills the production database’s disk, is what wakes people up at night.18 min
  3. Case: Shopify’s CDC from a sharded monolithMost teams move to change data capture after an incremental load has quietly missed deletes or edits. Shopify’s account shows the full path at large scale, including the problems it hadn’t solved yet, so you can plan for them before your own pipeline goes live.18 min
  4. Initial snapshots: loading history before changesEvery CDC pipeline starts with rows that were written before anyone was listening. Loading them is the longest and riskiest step of a CDC launch, and the step most often redone after an outage.16 min
  5. Deletes, updates and schema changes in CDCA CDC pipeline is only as correct as its handling of the awkward cases: rows that disappear, updates that don’t say what changed, and tables that gain columns while the stream runs. These are where copies quietly drift from the source.18 min
  6. Ordering and duplicates in CDC pipelinesEvery CDC pipeline repeats changes after a crash, and many deliver changes out of the order a consumer reads them. A consumer that trusts arrival order counts orders twice or moves an order back to an old status, with no error anywhere.18 min
  7. Landing CDC data in a warehouse or lakehouseEvery CDC pipeline ends in a table someone queries. If the change events land without a merge, or with a careless one, reports count each order several times or show rows that no longer exist, and nothing fails.17 min
  8. Application events or CDC: choosing a sourceSooner or later an app team offers to publish its own events so the data team can stop reading its tables. Saying yes or no well means knowing what each source can lose, and most data platforms end up running both.16 min
  9. Design: syncing a production database to analyticsCopying a production database into the warehouse is one of the most common jobs a data platform has. Each piece is simple; the design is in making the pieces agree, switching readers over without a gap, and noticing within minutes when the copy stops moving.28 min

Practise with

No tools or paper guides for this module yet.

Terms this module teaches 19

Open glossary

Application event

A message a service writes on purpose to say what happened in the business, with fields its owning team chooses, rather than a copy of a changed database row.