> [!abstract] A technique that streams database changes out of the database, allowing you to publish events based on data modifications.
## How It Works
1. Write data to your database normally
2. CDC streams the changes out the back of the database
3. Hook into that stream to publish events
## Comparison to Transactional Outbox
- Alternative to [[Transactional Outbox Pattern]]
- Outbox is often easier to work with
- CDC requires database support for streaming changes
## Sources
[[x_Sources/Videos/Video - Build An Event Driven System - NDC Oslo 2024|Build An Event Driven System - James Eastham (NDC Oslo 2024)]]