Skip to content

Change data capture

Change data capture records database changes so that downstream applications can process them.

Also known asCDC
APIs and data contracts

Capture changes rather than only full exports

Change data capture, or CDC, captures changes to database data for downstream processing. One possible approach reads the change log; PostgreSQL describes logical decoding for this. Other approaches may work differently.

In a fictional example, a changed product category must reach an analysis system. The technical row change does not itself explain whether the product has received business approval. CDC therefore does not replace the definition of business events. Clarify the initial dataset, deletions, schema changes and restart position. Recipients must also handle possible repeats. Capturing a change does not prove that it has been applied correctly in the target.

Sources