Change Data Capture
Capture changes from your production database in real-time. RisingWave enables zero-latency pipelines with no dual writes, no log parsing, exactly-once guarantees.
Why CDC
Dual writes force your application to write simultaneously to the database and a message queue. If one write succeeds and the other fails, data becomes inconsistent and debugging becomes a nightmare. CDC treats your database as the single source of truth, automatically capturing changes with no application changes required.
| Factor | Dual Writes | CDC (RisingWave) |
|---|---|---|
| Consistency | Risk of partial failure | Automatic, guaranteed |
| App Changes | Modify every write path | Zero — reads from DB log |
| Complexity | Two write targets to manage | Single source of truth |
| Failure Mode | Silent data divergence | Checkpoint-based recovery |
Use Cases
Real-time replication keeps data lakes in sync with source databases. Streaming analytics lets you analyze customer behavior as it happens. Cache invalidation automatically refreshes caches when data changes. Feature stores for ML models always contain fresh data for training and inference.
Mirror database to data lake. Always in sync. No batch exports or scheduling.
Analyze customer behavior as it happens. Create real-time materialized views on CDC data.
Detect DB changes, invalidate cache automatically. No stale data served to users.
CDC into RisingWave, ML models always see fresh features for training and inference.
How It Works
Change Data Capture (CDC) captures every INSERT, UPDATE, DELETE operation on your database in real-time, creating a stream of changes. Unlike batch exports that run hourly or daily, CDC provides a live feed of data modifications as they occur in your source database.
Start capturing database changes in real-time with SQL.
Enable Real-Time Pipelines