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
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.
From the source to the files, each lesson has its place in the pipeline.
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.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.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_SEQ | Op | TIMESTAMP | status |
|---|---|---|---|
| …0000000000418230 | I | 2025-12-15 09:14:03.217 | created |
| …0000000000418231 | U | 2025-12-15 09:14:03.482 | paid |
| …0000000000418232 | U | 2025-12-15 09:14:03.482 | cancelled |
Then the sixth: the DMS instance does not need the same size for its whole life.
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.