Streaming and Change Data Capture · Lesson 1 of 5 · 12 min
Events, not tables
Change data capture turns every insert, update and delete in a database into an event.
A nightly load copies a table once a day. Change data capture (CDC) instead reads the database's own change log and sends every change as an event, seconds after it happens. Tools like Debezium do this for Postgres and MySQL, and the events usually travel through Kafka.
Each event says what happened (op): c for create, u for update, d for delete. It carries the row after the change, a position in the log (lsn, the log sequence number) and timestamps.