What is Change Data Capture (CDC) in Cassandra, and what is it used for?
Last updated
CDC (Change Data Capture) copies commit-log segments holding mutations for tables with
cdc = trueinto thecdc_rawdirectory for external consumers.Used to stream changes to Kafka, search indexes, caches, data lakes, or audit logs without polling.
Events are per replica (duplicates must be handled), and if
cdc_rawfills up, writes to CDC tables are rejected.
- https://planetcassandra.org/post/introducing-cdc-in-apache-cassandra-a-game-changer-for-event-driven-architecture/
- https://docs.datastax.com/en/dse/6.9/managing/configure/change-data-capture-log.html
- https://docs.datastax.com/en/cdc-for-cassandra/cdc-concepts.html
- https://axonops.com/docs/data-platforms/cassandra/architecture/storage-engine/cdc/
- https://github.com/datastax/cdc-apache-cassandra
- https://medium.com/walmartglobaltech/walmarts-cassandra-cdc-solution-6fc650031a3
- https://cassandra.apache.org/doc/latest/cassandra/managing/operating/cdc.html
- https://cassandra.apache.org/doc/3.11/cassandra/operating/cdc.html