Server racks in the half-light, cables and green status lights
Field notes · Long read

MySQL to S3 with AWS DMS: What Actually Works in Production

Seven lessons learned the hard way to ingest hundreds of TB with almost zero maintenance. It took two years to get there.

By Alexis Blandin · 5 min read

Scroll down

I don't like sharing field notes about specific software: those articles age badly. But on AWS DMS to S3, we suffered enough at Jolimoi that keeping it to ourselves would be criminal.

Disclaimer: what follows only holds in our context. The pipeline is described below.

The pipeline
Aurora MySQLAWS RDS · binlogs
↓
AWS DMSfull load, then CDC
↓
S3Parquet · YYYYMMDD
↓
Autoloadermicro-batch · 30 min
↓
Delta LakeAuto Optimize · Z-Ordering
↓
dbtmodeling
The source: an Aurora MySQL database on AWS RDS.
AWS DMS reads the database changes and pushes them to S3.
On S3, Parquet files. For us it is only an ingestion buffer: we never query it directly.
Databricks Autoloader ingests those files in micro-batches every 30 minutes…
…into Delta Lake, which dbt then models. Everything that follows happens along this pipeline.
A bundle of blue network cables plugged into a switch
Seven lessons

What works
in production

From the source to the files, each lesson has its place in the pipeline.

Aurora MySQLAWS RDS · binlogs
↓
AWS DMSfull load, then CDC
↓
S3Parquet · YYYYMMDD
↓
Autoloadermicro-batch · 30 min
↓
Delta LakeAuto Optimize · Z-Ordering
↓
dbtmodeling
Partitioning: keep it simple. Hive style, one YYYYMMDD partition, period. No needless complexity. It works for us because we do no query pruning directly on S3: Autoloader ingests everything into Delta Lake. The real payoff: backfills and migrations become trivial. Adapt to your volume and access patterns, but start simple.
Split DMS tasks strategically. Not one task per source: a split by table type, based on volume, churn rate and criticality. You get independent full reloads and fine-grained tuning. Careful: we only do this for isolated tables. If table A references table B and they live in two tasks, you risk temporal inconsistencies. Schema drift, for its part, gets handled on the Autoloader side, through automatic schema inference.
Premigration assessments: skip them. When the target is S3, I think they are a waste of time. DMS pushes unstructured Parquet: there is no relational schema to validate. We only run basic checks, row counts and a few checksums. Pushing to S3 costs so little that you can iterate fast, without drowning in validations that make no sense here.
DMS Serverless: we backed out. Tested several times, over periods of three to six months: more expensive, slower, unpredictable scaling. We backed out every time. AWS keeps improving the product, but today, on pricing, classic instances remain more predictable and cheaper.
Transaction metadata is non-negotiable. Add a transaction identifier (AR_H_CHANGE_SEQ for MySQL), the Op (INSERT, UPDATE, DELETE) and the TIMESTAMP. DMS can truncate precision to the millisecond. Without these columns, there is no reliable way to order concurrent operations. It looks like a detail, until the day it breaks your consistency guarantees.
Binlog retention and sizing. On the source side, raise binlog retention: seven days minimum for us. We lost events once, because a binlog expired too soon, and we have not skimped since. On the DMS side, run a big instance for the full load, do the import, then scale down before switching to ongoing CDC. That saved us thousands of euros. But never undersize the instance storage.
Small files, the real enemy. Even in Parquet. We aim for 100 to 200 MB per file and tune DMS commit and flush settings accordingly. Compaction happens automatically on the Databricks side, after ingestion into Delta Lake, with Auto Optimize and Z-Ordering. The cost of loading from S3 is negligible, and you normally load only once.

Two lessons deserve a drawing. The fifth first: when two operations land in the same millisecond, only the transaction identifier tells which came first.

AR_H_CHANGE_SEQOpTIMESTAMPstatus
…0000000000418230I2025-12-15 09:14:03.217created
…0000000000418231U2025-12-15 09:14:03.482paid
…0000000000418232U2025-12-15 09:14:03.482cancelled
Made-up example. Two updates share the same truncated timestamp: without the sequence, “paid” and “cancelled” come out in random order.

Then the sixth: the DMS instance does not need the same size for its whole life.

Full load big instance Ongoing CDC, small instance time → instance size
A diagram, not a measurement. The instance storage, for its part, does not shrink.

Not a set-and-forget solution.Two years to get there.

AWS DMS to S3 takes care. The difference comes down to task granularity, limited to isolated tables, complete transaction metadata, smart sizing, and a real obsession with operational details.

The downstream architecture matters as much as DMS. We never query S3 directly: everything goes through Autoloader into Delta Lake, then through dbt. Parquet on S3 is only an ingestion buffer.

DMS errors are caught and surfaced in Slack by an in-house agent. The only truly nasty bug we hit: an ALTER TYPE on a MySQL ENUM, which scrambled the values. Caught fast, fixed, then a fresh full load.

Today we ingest hundreds of TB with almost zero maintenance. It took two years to get there. Adapt to your context, don't copy blindly.