Zero-Downtime SQL Server to BigQuery Migrations With Debezium and Native GCP Primitives

We migrated 5+ legacy enterprise data warehouses (500GB+ scale) off on-premises SQL Server and Azure into BigQuery without taking production applications offline. Replacing a heavyweight managed ETL layer with Debezium CDC, Kafka, and native GCP primitives cut real-time ingestion spend by 90% (from roughly $10k/month down to under $1k/month) and lowered overall platform TCO by 30% while retiring recurring vendor license fees.

The build-vs-buy story behind that $10k/month bill is covered in How We Replaced a $10k/mo Managed ETL Pipeline With Under $1k/mo in Native GCP Primitives. This blueprint focuses on the repeatable migration architecture that held up across all five warehouses.

Architecture Overview

[On-Prem SQL Server & Legacy Azure DBs (CDC Enabled)]
                          │
                          ▼
            [Debezium + Kafka (Change Stream)]
                          │
         ┌────────────────┴────────────────┐
         ▼                                 ▼
[Pub/Sub + Dataflow Streaming]    [GCS Staging (Dead-Letter & Backfills)]
         │                                 │
         └────────────────┬────────────────┘
                          ▼
          [BigQuery (Raw -> Curated / dbt & Dataform)]
                          ▲
                          │
  [Cloud Composer (Airflow)] + [Automated Row-Count & Checksum Parity Checks]
  (Provisioned via Reusable Terraform Modules)
  1. Non-disruptive CDC capture: Enabling SQL Server Change Data Capture (CDC) and reading transaction logs through Debezium and Kafka decoupled source database load from cloud writes. Operational apps kept running with zero downtime, and Kafka absorbed downstream spikes without hammering legacy SQL Server instances.
  2. Native GCP streaming and batch convergence: Kafka pushed change events into Pub/Sub and Dataflow for low-latency streaming into BigQuery raw tables, while GCS staging held bulk initial snapshots and dead-letter payloads. Cloud Composer (Airflow) orchestrated scheduled merges, dbt/Dataform transformations, and historical backfills.
  3. Automated parity checks and billing caps: Before any BI dashboard or downstream consumer cut over, scheduled verification jobs compared source-table row counts and key checksums against BigQuery every day, catching silent drift before stakeholders saw bad numbers.
  4. Standardized Terraform modules across 5+ migrations: Every warehouse migration reused the same Terraform modules for Pub/Sub topics, BigQuery datasets, IAM boundaries, and alerting, so the fifth migration took days to stand up instead of weeks.

Trade-Offs

DimensionTurnkey Managed Visual ETLDebezium + Kafka + Native GCP Primitives
Monthly ingestion costHigh (~$8k–$15k/mo)Low (under $1k/mo; ~90% reduction)
Schema drift & debuggingBlack-box UI and opaque vendor logsPlain code, GCS dead-letter payloads, and standard cloud logs
Zero-downtime cutoverSupported, often at steep cluster costNative CDC stream + parallel parity verification
Multi-warehouse reusePer-connector licensing scales poorlyReusable Terraform modules across 5+ warehouses (~30% lower TCO)
Operational ownershipVendor handles runtime patchingYour platform team owns Kafka, Airflow, and on-call alerts

Where This Pattern Fits (And Where It Doesn't)

If you are running a short-lived proof of concept or have no platform engineering team to own Kafka and Airflow operations, pay for a turnkey managed connector and move on. Once you are consolidating multiple legacy SQL Server or Azure warehouses onto BigQuery for a 3-to-5-year horizon, Debezium plus native GCP primitives wins on unit economics, debuggability, and zero-downtime control.