Change Data Capture (CDC) 00:00:01 One committed change reaches the search box A customer updates a catalog record. The database transaction succeeds while the search index still has yesterday's description. Trace the durable handoff from committing the row to indexing it. The app commits user 1. Its work is finished. The connector reads the log record and makes an event of it. The event goes to the topic with the row's key. The indexer applies it and moves its bookmark. Two more commits follow the same way, in the same order. The index removes the document. A tombstone follows, and the consumer skips it. The consumer's bookmark says how far that consumer progressed. Publish deletes with explicit semantics and advance the checkpoint only after the intended side effect can survive a restart. 00:00:49 Two perfectly successful price updates disagree One request writes ten and pauses. Another writes twelve and indexes it. Predict what search will display when the delayed first request finally updates the index. Price 10 is stored. Request A is paused for a moment. Price 12 replaces it. 12 is the right answer. Search shows 12. The delayed request now sends ten to search. The database still holds twelve, and without a later correction the discrepancy persists. Two independent writes can complete in different orders. Deriving the search feed from one committed history gives consumers an ordering anchor for each relevant key. 00:01:32 Which changes does a poll actually see A recorder inspects three capture mechanisms after an insert, an update and a delete. Decide whether observing a row's latest contents can reconstruct every transition it went through. All three are in the transaction log. Writes are hardly affected. All three again, but each write now writes twice. Only the latest state of row 1 is found. The insert is merged into it and the deleted row is missed. Transaction logs, explicit triggers and polling impose different costs and coverage. A poll needs special treatment for deletions and can miss intermediate states between observations. 00:02:13 Keep the delete's position An indexer receives a revision twice. Then a delete arrives and the old update is replayed. Predict what comparison prevents the deleted item from reappearing. Nothing seen yet for key 1, so it is applied. 11 is newer than 10. Position 11 is not newer than 11. Ignored. The row goes, the position stays. Position 11 arrives once more. 11 is older than 12, so the row stays deleted. Keep enough durable version or tombstone information for the replay horizon. A checkpoint alone does not make independent downstream side effects atomic with consuming the event. 00:02:54 Start a new index while sales continue A fresh index needs existing rows and new changes. Mark a coordinated snapshot boundary before scanning, and watch two more commits arrive while the scan is in flight. From now on the log is kept for the connector. Each existing row is published with operation r. Two commits arrive during the read. They wait in the log. The connector streams 51 and 52. Nothing is missing. Start streaming at the position paired with that snapshot under the connector's consistency rules. Overlap can be deduplicated, but a gap may leave a search document wrong indefinitely.