awesome-everything RU
↑ Back to the climb

Queues, Streams, Eventing

Change data capture: free-recall review

Crux Free-recall prompts across the CDC unit. Answer each in your own words first, then reveal the model answer and compare.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 13 min

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the mechanism stick.

Goal

Reconstruct the unit’s core mechanisms — log-based capture vs polling, the slot as a loaded gun, snapshot-then-stream, delete capture, and at-least-once delivery — without looking back at the lesson.

Recall before you leave
  1. 01
    Why does log-based CDC beat polling a table on a cursor, on every axis that matters?
  2. 02
    Explain why a logical replication slot can take down the primary, and what you put in place before shipping CDC.
  3. 03
    What is the snapshot-then-stream startup, and why is the snapshot the dangerous part?
  4. 04
    Why does capturing full DELETE events need REPLICA IDENTITY FULL, and what does it cost? What is a tombstone?
  5. 05
    Why is CDC delivery effectively at-least-once, and how does that change how you write the consumer? How does ordering help?
  6. 06
    When would you reach for the outbox pattern instead of capturing domain tables directly, and how does it relate to CDC?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: log-based CDC beats polling on latency, completeness, query load, and app intrusion; the slot’s unconditional WAL promise is both why CDC is resumable and why it can fill a disk, so you alert and cap; startup is snapshot-then-stream with incremental snapshots avoiding the long lock; full deletes cost WAL via REPLICA IDENTITY FULL and need tombstones for compaction; delivery is at-least-once so consumers must be idempotent; and the outbox composes with CDC to give you a schema-decoupled, atomic event contract.

Continue the climb ↑Change data capture: config and query reading
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources2
expand
  1. 01
  2. 02

Trademarks belong to their respective owners. Editorial reference only.