Change Data Capture
Stream inserts, updates and deletes from operational databases into pipelines with log-based change data capture, and apply them correctly downstream.
4 objectives 6 steps about 130 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Compare snapshot diffs, timestamp-based extraction and log-based CDC by latency, load on the source, delete handling and correctness.
- Configure log-based CDC from PostgreSQL (logical replication slot and Debezium on Kafka Connect) and interpret create, update, delete and tombstone events.
- Apply a change stream to a target table with MERGE, preserving per-key order, honoring deletes and ignoring replayed events.
- Handle the initial snapshot, source schema changes and replication-slot lag without losing or duplicating changes.
Lesson plan
6 steps, about 130 min · 5 of 5 lessons available so far
- Three Ways to Detect That Data Changed Concept · 20 min
- Logical Decoding and the Write-Ahead Log Concept · 20 min
- Lab: PostgreSQL to Kafka with Debezium Lab · 30 min
- Worked Example: Applying Changes in Order with MERGE Worked example · 25 min
- Snapshots, Schema Changes and Slot Lag Concept · 20 min
- Check: CDC Failure Modes Knowledge check · 8 questions
Practise it
Run PostgreSQL, Kafka and Debezium with Docker Compose; capture changes from an orders table, apply them to a replica table with MERGE, restart the consumer mid-stream and replay a partition, then prove the target matches the source row for row, including deleted rows. Track replication-slot lag and retained bytes, pause the consumer and verify snapshot-to-stream handoff, schema changes and delete replay with explicit recovery bounds.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.