Skip to content
Reviewed by Siddharth Sharma Nov 16, 2026

Home › Guides › Change Data Capture

Tech Explained · 2026

Change Data Capture in 2026: How CDC Works, CDC vs Batch ETL and the Real Cost of Zero-ETL Mirroring

Change data capture reads a database's transaction log so every insert, update and delete reaches your warehouse in seconds rather than waiting for a nightly batch. Microsoft's Fabric documentation puts mirroring compute at free with 1 TB of free mirroring storage per capacity unit, which is why most teams now start there.

16 November 20269 min readBy the 360 Digital Transformation Editorial Team
Key takeaways
  • CDC reads the log, not your tables. No WHERE updated_at > query, no full scan, and deletes finally arrive.
  • Zero-ETL mirroring is the cheapest way in. Replication is free in Fabric; querying the mirrored data is billed as normal. The bill moves, it does not vanish.
  • Run your own connector only when you must transform in flight. Mirroring copies what is there. It will not mask a PAN column before it lands.
  • The outage you will actually cause is a replication slot. A stopped connector makes PostgreSQL hoard WAL until the source disk fills.
  • Budget for schema changes, not setup. Setup is an afternoon. The column somebody adds at 11pm is the project.

The 2am batch finished at 6:40am. The claims dashboard still shows yesterday's policy count, the operations head has asked twice why it disagrees with her policy admin screen, and you are the one saying "the pipeline runs overnight" for the third time this week. Closing that gap is the entire job of change data capture.

What Change Data Capture Actually Does to Your Database

Every transactional database already writes a log of what it changed, because it needs one to recover from a crash and to feed replicas. PostgreSQL calls it the write-ahead log, SQL Server keeps a transaction log, MySQL writes a binary log. That log is a complete, ordered record of every committed change, and it exists whether you read it or not. CDC subscribes to it.

The one thing batch ETL cannot do

Take the most common incremental pattern in Indian enterprise data teams: a nightly job with WHERE modified_date > @last_run. It works until someone deletes a row. A deleted row has no modified_date left to compare, so it is simply absent from tomorrow's extract and your warehouse keeps that policy alive forever. Teams find this out when a cancelled policy turns up in the renewals report six months later.

CDC catches the delete because the delete is in the log. Switching it on is three or four statements: wal_level = logical plus a publication and a replication slot on PostgreSQL, sys.sp_cdc_enable_table on SQL Server, binlog_format = ROW on MySQL. Worth knowing before you price a six-week project, because none of that is the hard part.

Three numbers that set the 2026 build-or-buy line

Managed ingestion got cheap enough that writing your own connector is now a choice, not a default.

1 TB
Free mirroring storage per capacity unit, per Microsoft's Fabric mirroring overview
$0.082
Per DCU-hour commonly quoted for AWS DMS Serverless, single-AZ, US East
100 DBUs
Free daily allowance Databricks lists for Lakeflow Connect ingestion

Read from vendor documentation and public pricing trackers, checked 16 November 2026. Cloud rates vary by region and change often.

How Log-Based CDC Works, Step by Step

A connector first takes a snapshot, because a log holds only changes and you need a starting state. It reads the existing rows and records the exact log position it began from, usually a log sequence number or binlog offset, then switches to streaming from there. Each committed transaction arrives as change events carrying an operation code: c for create, u for update, d for delete, r for a row read during the snapshot. The connector checkpoints its position, so a restart resumes instead of replaying everything.

Ordering is guaranteed per key, not globally. Two updates to the same policy arrive in commit order. An update to a policy and an insert into a claim may not, because they can travel through different partitions. Merge logic that assumes a global order will be wrong under load and right in testing, which is the worst combination there is.

Log-based CDC, from one row write to a refreshed report

Notice where the connector sits: beside the log, never in front of your tables.

How log-based change data capture moves a row from an operational database to a report A vertical flow of six stages: an application writes a row, the database commits it to the transaction log, a CDC connector reads the log, change events are batched into a lakehouse table, and a report reads the fresh data. Application writes a row INSERT, UPDATE, DELETE Azure SQL or PostgreSQL every commit, in order Transaction log (WAL) reads the log, not tables CDC connector change events, batched Lakehouse table MERGE on primary key Report reads fresh data

Generic log-based CDC flow, drawn 16 November 2026. Stage names differ by vendor; the sequence does not.

One detail trips nearly everyone up: delivery is at least once, not exactly once. After a restart a connector may re-emit events it already sent. That is why the last step is a MERGE keyed on the primary key and never an INSERT. If you have seen a mirrored table hold 1.21 million rows for 1.2 million policies, this is why.

Also read: What Is ETL? for the batch model CDC is replacing, and What Is Apache Kafka? for the partition behaviour that decides whether your merges are correct.

CDC vs Batch ETL vs Zero-ETL Mirroring: 10 Criteria Compared

Criterion Nightly batch ETL Log-based CDC you run Managed zero-ETL mirroring
Freshness Hours, set by the schedule Seconds to a minute Near real time, vendor controlled
Load on the source Heavy during the window Light, reads a log file Light, same log mechanism
Catches deletes No, unless you add soft deletes Yes, a delete is a log event Yes
Transform in flight Yes, that is the point Yes, add a processing step No, it replicates as-is
Setup effort Low if an orchestrator exists Medium: connector, sink, merge Low: a wizard and permissions
Cost shape Compute per run, easy to forecast Always-on connector plus storage Free replication, billed on query
Who operates it Whoever owns the orchestrator You, including slot and lag hygiene The platform vendor
Schema changes Fails loudly, usually at 2am Configurable, needs a real policy Vendor rules, little control
Backfill and replay Rerun for a date range Re-snapshot or rewind an offset Re-seed the mirror
Best fit Daily reporting on stable data Many sinks, masking, custom logic One source into one lakehouse

What the table hides is the conversation with whoever owns the source. Logical decoding on PostgreSQL raises WAL volume and adds a slot the DBA now has to watch; SQL Server CDC creates change tables and a capture job inside their instance. Ask for wal_level = logical on a production policy database with no retention or monitoring plan and you will be told no, correctly.

Change Data Capture Tools in 2026: What Each One Costs

Option How it reads changes What it costs Pick it when
Debezium on Kafka Connect Log-based, per-source connectors Open source; you pay for Kafka and Connect Many sinks, or transforms before landing
Microsoft Fabric mirroring Managed CDC into OneLake Replication free, 1 TB storage per CU, queries billed Your reporting already lives in Fabric
AWS DMS Serverless Full load, then log-based CDC About $0.082 per DCU-hour single-AZ, double for multi-AZ Source and target both sit in AWS
Databricks Lakeflow Connect Managed connectors into Unity Catalog 100 DBUs a day free, then about $0.35 per DBU on AWS Premium You are already a Databricks shop
Native logical replication Publication and subscription No licence cost, just two instances You want a read replica, not a lakehouse
Query-based polling WHERE updated_at > on a schedule Cheapest to build, most expensive to trust Never, if the table has deletes

Debezium is still the reference implementation and it is actively maintained: the project shipped 3.7.1.Final on 9 November 2026, with release notes covering cases where change events could be skipped or duplicated after a connector restart. That is a fair description of the bug class you inherit by running your own connector, and a reason to stay current instead of pinning a version for two years.

The managed numbers are now small enough to change decisions. Databricks lists 100 free DBUs per day for Lakeflow Connect, enough on its own description to ingest up to 100 million records a day across eligible managed sources. Pricing trackers reading the AWS price list in August 2026 put DMS Serverless near $0.082 per DCU-hour in US East single-AZ, where one capacity unit is 2 GB of RAM and the service scales from 1 to 384 units. Check both in the vendor calculator for your region before you commit.

Is Zero-ETL Mirroring Really Free? What the Pricing Page Means

Microsoft's Fabric mirroring overview says replication compute is free and does not consume capacity units, and that you get a terabyte of free mirroring storage for every capacity unit you buy. The same documentation says compute used to query mirrored data through SQL, Power BI or Spark is billed at standard rates, and that OneLake requests made during mirroring consume capacity as normal.

So the honest summary is that the bill moves rather than disappears. You stop paying to copy and start paying to read. For a team whose Power BI models refresh a few times a day, that is a clear win. For sixty analysts running ad hoc SQL against mirrored tables all afternoon, the query bill can beat what the nightly pipeline cost.

What mirroring will not do for you

Here is the caveat that should stop some teams. Mirroring replicates what is in the source. It does not filter columns, mask a PAN or Aadhaar field, apply a business rule or reshape a table on the way in. If your compliance position says identifiers must never land in the analytics estate in the clear, no managed mirror can satisfy it and you are back to a connector with a transform step. Teams usually discover this after the mirror is live and the security review starts.

Coverage is the other half of the picture. Microsoft's Fabric update posts through 2026 describe mirroring for Azure SQL Database and Managed Instance, SQL Server, PostgreSQL, Oracle, Snowflake and Cosmos DB, plus an open mirroring route for sources without a built-in connector. Inside that ecosystem, mirroring plus the DP-700 skill set is close to the default architecture now, and private-network setups pull in Azure networking knowledge you will be expected to have.

A Worked Scenario: Two Engineers, One Insurer, 40 GB of Policy Data

This is an illustrative scenario rather than a real client outcome, but the shape is common enough to recognise. A mid-size Indian insurer has a two-person data team. The policy admin system runs on Azure SQL with roughly 40 GB of data and 1.2 million active policies, and about 90,000 rows change on a weekday. The nightly package reads six tables and finishes in four hours forty minutes on a good night. Twice a month it does not finish.

Mirroring is the right call here, and the reasoning is arithmetic rather than taste. Forty gigabytes sits well inside the free mirroring storage that comes with even a small capacity, so replication costs effectively nothing. The nightly window disappears, which removes the two bad mornings a month. Neither engineer has to learn Kafka, run a Connect cluster or own a replication slot, and at two people that saving outweighs the elegance of a custom pipeline.

Now change one fact. If compliance requires the customer PAN column to be tokenised before it leaves the source network, mirroring cannot do it. The same team should run a log-based connector with a masking step between the stream and the lakehouse, accept the extra operational load and plan for one of them to be on call. Same volume, same budget, opposite answer, because the constraint changed.

Live course

Build mirroring, merges and lakehouse pipelines live, the way DP-700 tests them

Live online·Sat–Sun, 8–11 PM IST·50+ hrs·Rs 24,999

Microsoft Fabric data engineering for the DP-700 certification, with DP-900 fundamentals included, taught live over 8 weeks. Hands on projects, mentor support and placement guidance.

Explore the course
Microsoft Fabric Data Engineer Course (DP-700 + DP-900 + Claude)

What Usually Goes Wrong With Change Data Capture

Nobody warns you about the replication slot, so here it is. You stop a connector on a Friday to debug something and forget it. The PostgreSQL slot it created is still registered, so the database dutifully keeps every WAL segment since that slot's position, because as far as it knows the consumer is coming back. By Monday the data disk is full, the source has stopped accepting writes, and the policy admin system is down because of a tool nobody in the room has heard of. Look at pg_replication_slots and its lag column before you walk away from any connector, and drop slots you are not using.

Four ways a CDC pipeline bites
  • Orphaned replication slots. A stopped connector hoards WAL until the source disk fills. That is an outage, not a nuisance.
  • Non-idempotent sinks. At-least-once delivery plus INSERT equals duplicate rows after every restart. Merge on the key.
  • Snapshot pressure. The first read of a large table can saturate the source. Snapshot off a replica, or in chunks, during a quiet window.
  • Silent lag. Nothing errors when a connector falls forty minutes behind. Add an alert on replication lag or admit you have a hope, not a pipeline.

The schema change is the other one. A developer adds a column at 11pm and, depending on your configuration, the connector either dies, which is annoying but visible, or carries on and quietly ignores the new field, which is worse because the data looks fine for three weeks. Decide which behaviour you want before you need it.

Where the hours actually go on a first CDC project

Setup is the small part. Plan the schedule around schema handling and the merge.

Schema change handling and testing30%
Initial snapshot and backfill25%
Merge and deduplication into the target20%
Monitoring, lag alerts and slot hygiene15%
Source configuration and permissions10%

A planning split based on the usual shape of these rollouts, not a measurement. Use it to argue for schedule, not to report progress.

6 Steps to Ship Your First CDC Pipeline

A six-step build plan for one table

Each step ends in something you can show a reviewer, not a tick box.

Step 1

Pick one table with a real primary key

Not six tables, and not the one with a composite key. Deliverable: a one-page note naming the table, its key and its daily change volume.

Step 2

Get the source enabled properly

Set wal_level = logical, or run sys.sp_cdc_enable_table, on a copy first. Deliverable: WAL retention and a monitoring owner agreed in writing, not a verbal yes.

Step 3

Snapshot, and record the log position

Load off a replica if you have one. Deliverable: a row count that matches the source, plus a written log sequence number you could resume from tomorrow.

Step 4

Write an idempotent merge

A MERGE on the key handling insert, update and delete. Deliverable: a test that replays one batch twice and shows the row count unchanged.

Step 5

Break it on purpose

Stop the connector ten minutes and restart. Add a column. Delete 100 rows. Deliverable: four screenshots and a note on what the connector did with the new column.

Step 6

Alert on lag, then hand it over

One alert on replication lag crossing a threshold you choose. Deliverable: a one-screen runbook covering restart, re-snapshot and dropping a stale slot.

Sequence drawn from the usual order of a first CDC rollout, written 16 November 2026.

Step five is the one people skip and the one that separates a portfolio project from a demo. Those failure drills are also what lab time in a live Microsoft Fabric data engineering programme is for, because reading about an orphaned slot teaches you nothing and causing one teaches you permanently.

Is Change Data Capture Worth Learning in 2026?

For anyone targeting a data engineering role, yes, and ahead of most tools on a typical roadmap. Freshness became a requirement rather than a preference, partly because dashboards now drive hourly decisions and partly because retrieval systems feeding AI agents and RAG pipelines are useless when they answer from last night's snapshot. Indian postings reflect it: mirroring, Debezium and replication lag now appear where they would have said SSIS two years ago.

Here is who should skip it. Six weeks into SQL, CDC is the wrong next thing; window functions, a star schema and one clean Power BI model get you interviews that CDC will not, because entry-level analyst roles never touch replication. Same for a team whose entire dataset is a 2 GB MySQL database the business reads once each morning. A scheduled query is the correct engineering answer there, and picking CDC because it is modern is how two-person teams end up operating infrastructure they cannot staff.

If you are already in a data role, this is what I would do in your position: learn log-based CDC end to end on one table using a managed service, not a Kafka cluster, then go back and learn what the managed service was hiding. That order gets you working sooner, and the second half is what interviewers actually probe. On the Microsoft stack that path runs through mirroring, lakehouse merges and the DP-700 objectives, which is the ground the Microsoft Fabric Data Engineer course covers live over 8 weeks, and a free demo class is the cheapest way to check the format suits you.

Also read: Microsoft Fabric vs Azure Synapse in 2026 if you are still deciding which platform to build this on.

Frequently asked questions

What is change data capture in simple terms?

Change data capture reads the log your database already writes, so every insert, update and delete can be copied elsewhere within seconds. Instead of asking your tables what changed, it watches the record of what changed. You gain freshness, and unlike a nightly extract you also capture deletes.

Is CDC better than batch ETL?

Better at freshness and deletes, worse at being simple. Batch ETL is still right when the business reads a report once a day, when heavy transformation is needed anyway, and when nobody can own an always-on connector. CDC wins when stale data makes real decisions wrong.

Does change data capture slow down the source database?

Log reading is light, because the log is written anyway. The real costs are the initial snapshot on a large table and extra log retention. On PostgreSQL the risk to plan for is a replication slot holding WAL until the disk fills, which is an outage rather than a slowdown.

What is the difference between log-based CDC and query-based CDC?

Query-based CDC polls your tables with something like WHERE updated_at > last_run. It is easy to build and cannot see deletes or two updates inside one interval. Log-based CDC reads the transaction log, so it sees every committed change in order. If a table has deletes, polling is the wrong tool.

Is Microsoft Fabric mirroring really free?

The replication is. Microsoft's documentation says mirroring compute is free and does not consume capacity units, with 1 TB of free mirroring storage per capacity unit purchased. It also says querying mirrored data through SQL, Power BI or Spark is billed at standard rates, so the cost moves from copying to reading.

Do I need Kafka to use CDC?

No. Kafka helps when several systems need the same change stream or you want to replay history, which is why Debezium usually runs on Kafka Connect. For one source landing in one lakehouse, a managed service such as Fabric mirroring, AWS DMS or Lakeflow Connect gets you there without a broker.

Which CDC tool should I learn first in 2026?

Whichever matches the stack you want to be hired into, then Debezium for the mechanics. In the Indian market the Microsoft path is advertised most, so Fabric mirroring plus a lakehouse merge is a practical first project and it maps onto the DP-700 objectives.

About this guide. 360 Digital Transformation is an Anthropic Partner and a Microsoft Authorized Training Partner. Other certification bodies, vendors and employers named here are not affiliated with us. Product features and pricing change often; figures cited were checked on 16 November 2026.

Learn it live with 360 Digital Transformation

Turn this guide into a skill employers can see

Live weekend cohortEMI available

Microsoft Fabric Data Engineer Course (DP-700 + DP-900 + Claude)

Rs. 24,999Rs. 31,249 Save 20%

Tools and platforms you work with

  • Microsoft Fabric
  • Apache Spark and PySpark
  • Delta Lake
  • T-SQL
  • Python
  • Fabric Notebooks
  • Git
  • GitHub
Add bonus modules
See the syllabus and batch dates

Other live courses on this career path