Change data capture
medium 28 minChange data capture (CDC) turns every insert, update and delete in a database into an ordered stream of events that other systems follow: search indexes, caches, warehouses and services.
Where it shows up
The same pattern appears across everyday software.
Shopify
An engineering post from 2021 describes log-based CDC with Debezium and Kafka Connect over more than 100 MySQL shards, averaging about 65,000 records a second over the Black Friday weekend of 2020.
LinkedIn Databus
Open-sourced in 2013 and independent of one source database. The announcement names Oracle and MySQL as sources and thousands of consumers as the scale.
Amazon DynamoDB Streams
A time-ordered log of item changes, kept for 24 hours. A consumer that is away longer loses events.
MongoDB change streams
Applications subscribe to changes instead of reading the oplog by hand, and continue after a break with a resume token.
SQL Server
Change data capture is built in. Its source is the transaction log, and changes are stored in change tables that a clean-up job trims.
Debezium
Connectors for many databases with a similar event structure. The project's FAQ says that consumers see every event at least once and must expect duplicates after failures.