CDC Pipeline - Junior¶
Polling updated_at can miss deletes, race concurrent updates, and load the primary. CDC reads the database's ordered commit log instead.
sequenceDiagram
participant DB as Postgres
participant P as Poller
DB->>DB: row deleted
P->>DB: WHERE updated_at > last_time
DB-->>P: delete is invisible
Debezium converts WAL records into insert, update, and delete events for search, cache, and warehouse consumers. The hard transition is loading existing rows while new writes continue. Test yourself¶
- Why can timestamp polling miss deletes?
- What truth does the WAL contain?
- Why is an initial snapshot needed? Continue to
middle.md.