Change Data Capture (CDC)

    CDC vs. Database Replication

    Bane Tech Engineering · 5 min read

    Database replication and change data capture both move data changes from one place to another, and often rely on the same transaction logs. Their purpose is different: replication keeps copies of a database identical, while CDC turns changes into events that any system can consume, transform and act on.

    Database replication

    Replication maintains one or more copies of a database, usually on the same engine. It serves high availability, disaster recovery and read scaling. The replica mirrors the source structure and is typically managed by the database vendor's own tooling.

    Change data capture

    CDC captures individual inserts, updates and deletes and publishes them as a stream. Targets can be different databases, data warehouses, search indexes, caches, message brokers or applications, and data can be filtered or transformed on the way.

    Key differences

    ReplicationCDC
    Primary goalIdentical copy of the databasePropagate changes to other systems
    TargetsUsually same engineHeterogeneous: databases, streams, apps
    TransformationNone or minimalFiltering, mapping, enrichment
    GranularityEntire database or tablesSelected tables, columns or rows
    Typical usesHA, disaster recovery, read replicasIntegration, analytics, event-driven architecture, migrations

    Which one to choose

    • Choose replication when you need a failover copy or read scaling on the same database engine.
    • Choose CDC when changes must reach different systems, formats or teams.
    • Use both where needed: replication for resilience, CDC for integration.

    See Log-Based CDC Explained for how CDC reads changes efficiently.