← All blogs
DATA ENGINEERINGFIRST DRAFT · 29 OCTOBER 2026

From MySQL to Databricks: Building an Integrated CDC Pipeline with Lakeflow Connect

A practical design for validating inserts, updates, deletes and recovery in a MySQL change data capture pipeline.

Editorial image for From MySQL to Databricks: Building an Integrated CDC Pipeline with Lakeflow Connect
AI-generated editorial photograph for this topic; illustrative, not a product or client screenshot.
First draft for review

This article develops the supplied brief. The demo is proposed and has not been executed. Screenshots, benchmarks and tested configuration will be added after implementation.

Why changing data needs a different approach

An overnight extract can explain yesterday’s orders. It may miss the cancellation that happened ten minutes ago. Copying the entire orders table more frequently can reduce that gap, but the work grows with the dataset, even when relatively few rows have changed.

Change data capture (CDC) starts with an initial dataset and then follows subsequent changes. The engineering challenge is to make those changes arrive correctly, with enough evidence to explain missing rows, delayed updates or unexpected totals. This draft proposes a small, repeatable validation exercise rather than claiming a completed production deployment.

What the integrated pipeline changes

Databricks’ AWS release notes list the MySQL integrated CDC pipeline as generally available from 15 October 2026. Its defining change is architectural: extraction and application run within one pipeline update, without a separate ingestion gateway. The integrated-pipeline guide describes scheduled execution as the default. Confirm the execution modes available in your workspace before choosing a latency target.

Use the AWS documentation linked below as the starting point. Record your actual cloud, region, MySQL version, connector configuration and run schedule in the final walkthrough. A release announcement does not establish availability in every environment.

Proposed architecture: MySQL orders + binary log; Extract + stage changes; Apply changes using stable keys; Unity Catalog current state; Reconcile source and destination
Proposed architecture with component roles, contract fields, control boundaries and operational evidence. Not a tested deployment.

Design a small, inspectable source

Use fictional orders and a stable primary key. Keep the first dataset deliberately small so a person can reconcile every row. For this exercise, define the destination as a current-state representation. If the business needs every historical version, design and validate that requirement separately.

ColumnPurpose
order_idStable primary key
customer_idSynthetic customer reference
order_statusCurrent business state
order_totalAmount using an explicit decimal type
updated_atSource-side validation timestamp

Before running ingestion, check the documented source versions, logging configuration, permissions, network route and log retention requirements. Store connection credentials through supported connection management. Do not place them in notebooks, screenshots or sample repositories.

Proposed demonstration: prove every mutation

  1. Establish a baseline. Create three synthetic orders. Save a source query result and run the initial load.
  2. Reconcile the snapshot. Compare primary-key sets, statuses and amounts. A matching row count alone is insufficient.
  3. Insert one order. Record the source commit time and wait for the next pipeline update. Check the new key and all expected values.
  4. Update one status. Change an existing order from pending to cancelled. Verify that the destination reflects the chosen current-state semantics.
  5. Delete a test order. Confirm the destination behaviour against the documented configuration.
  6. Restart and reconcile. Interrupt only the disposable test workflow, restart it, and repeat the key and value comparisons.

These are proposed test steps. No Databricks workspace or MySQL database has been used to execute them for this article.

A validation checklist worth keeping

Capture the evidence after each operation, rather than collecting only a final “pipeline succeeded” screenshot.

TestExpected result for this designEvidence to capture
Initial loadAll baseline keys and values matchSource and destination extracts
InsertExactly one new current-state rowKey, values and visibility timestamp
UpdateExisting row has the new statusBefore/after comparison
DeleteDeleted key absent from current-state outputKey lookup on both sides
RestartNo unexplained missing or duplicate keysReconciliation and run logs

If a check fails, first separate ingestion delay from incorrect state. Confirm that the relevant pipeline update completed, then inspect keys, source permissions, network errors and retention settings. Review documented handling of schema changes before extending the exercise.

Measure correctness before celebrating speed

Record initial-load duration, source-to-destination lag, failed updates, recovery time and reconciliation differences. Measure source overhead if you have access to suitable monitoring. Use several changes across several runs; a single fast insert is not a useful service-level promise.

The final article should include the tested configuration, screenshots, a sanitised run log and actual measurements. Until those exist, the result is a proposed implementation and validation plan. A CDC pipeline earns trust when changes apply correctly, failures are visible and recovery has been demonstrated.

Worked example and design decisions

Insert a fictional order for 100.00, update it to 125.00 and cancel it. Delete a separate disposable order. Save the committed source state after every mutation. Compare a current-state destination with that expectation. If history is required, choose and validate it explicitly rather than assuming CDC preserves every intermediate state.

Use this scenario to write the expected result before building the pipeline or agent. Identify the exact source facts, the permitted transformations and the outcome that a reviewer should see. Keep the reference result independent of the implementation under test.

A concrete data or asset contract

The following is a proposed application contract, not an assertion that these are native vendor API fields. Adapt names and types to the selected platform while preserving their intended meaning.

Proposed fieldMeaning and implementation concern
order_idStable synthetic primary key
order_statusCurrent business status
order_totalDecimal amount with defined scale
updated_atSource observation time
source_positionProgress evidence where exposed
run_idIngestion update being reviewed

Document null semantics, stable identifiers and schema ownership with the contract. A missing observation, a zero amount and a denied lookup are different states and should not collapse into the same empty response.

Implementation blueprint

1. Pin the source configuration

Check the supported MySQL version, logging requirements, permissions and retention guidance for the selected connector. Review the source contract with its owner.

2. Separate snapshot and changes

Reconcile the initial population first. Then test inserts, updates and deletes so a snapshot mismatch is not confused with incremental failure.

3. Design the freshness envelope

Include scheduling, extraction, application and failed runs in the target. A fast best-case update does not describe normal or recovery behaviour.

4. Reconcile at the destination

Compare key sets, statuses and decimal amounts. Test nulls, type mappings and deletion behaviour. Aggregate counts should supplement row-level checks in the small demo.

Failure analysis: test the uncomfortable case

An outage lasts longer than source-log retention. Confirm the documented recovery route and whether a new snapshot is required. Do not claim replay works without exercising that exact configuration.

Build this condition into the synthetic test set. Capture the observed output, the control that should detect the issue and the recovery decision. If the system returns a polished but unsupported result, record that as a failure rather than a successful request.

Operational ownership and runbook

Monitor run outcomes, source connectivity, lag and reconciliation exceptions. Include the source owner in escalation. Separate a successful ingestion update from a business-validated output.

A useful incident record identifies the affected product or capability, the relevant run or request, the business time represented and the owner of the next action. Distinguish restoring infrastructure from restoring correct service output. Preserve enough versioned evidence to explain the recovered state.

Evidence required before a production claim

The core design controls for this topic are: Stable keys; versioned configuration; snapshot and mutation checks; documented recovery; and visible freshness.

  1. Contract review: confirm field meaning, intended use, owner and access boundaries.
  2. Positive and negative tests: include the worked example, invalid inputs, restricted access and the failure case described above.
  3. Repeatable measurements: retain configuration, workload size, timing method, failures and the baseline used for comparison.
  4. Recovery evidence: demonstrate the documented recovery route and validate the resulting data or application behaviour.

This expanded article remains a proposed technical design. Environment-specific configuration, screenshots and measured outcomes should be added only after the implementation is executed and reviewed.

Official references

Reference scope: Databricks on AWS. Reviewed 29 October 2026; confirm workspace availability and current prerequisites before implementation.

CONTINUE THE SERIESFresh Data, Better AI: Building Search on Streaming Tables, Materialized Views, and Iceberg →