liveBook · Manning

Change-data-capture

As explained in Kafka for Architects

Change data capture is a pattern that observes a source system's change records and emits insertions, updates, and deletions as events.

Change data capture (CDC) is an event-driven alternative to repeatedly copying a source system’s current state. It reads change logs and emits insertions, updates, and deletions for downstream systems in real time. section 5.0 section 5.1.2

CDC uses a uniform event representation rather than requiring specialized events for every business change. Kafka provides the central streaming hub, while downstream systems consume the resulting topics independently. section 5.0 section 5.1.2

CDC is useful when:

  • Systems need database changes made available to multiple destinations without building custom notification services. section 5.1.2
  • A streaming flow is preferable to waiting for a batch process to complete. section 5.0
  • The source contains data that changes through direct updates rather than application-managed services. section 5.1.2

Reference-data replication

Reference tables such as occupations, education levels, and country codes can be streamed from source systems through Kafka topics. Kafka Connect source connectors publish the data, while independent sink connectors deliver it to an MS SQL database and Amazon S3. Debezium can provide the CDC integration with source change logs. section 5.1.2

How Kafka for Architects covers it

How deep it goes
Explains CDC versus snapshots, event representation, connectors, and deployment architecture without detailing connector implementation internals.
Examples
Shows reference tables flowing from PostgreSQL and MongoDB through Kafka topics into MS SQL and Amazon S3.
What it assumes
Assumes familiarity with source and destination systems, change logs, Kafka topics, and the distinction between snapshots and events.
What you can do after
Operate/configure Kafka Connect with source and sink connectors, optionally integrating Debezium for change-log streaming without custom code.
How it connects
Connects CDC with Kafka, Kafka Connect, Debezium, snapshot-based replication, data integration, and event streaming.

Also explained in

Compare how 5 books explain change-data-capture →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.