All case studies
PersonalPersonal project (MIT) · 2026

A medallion pipeline you can actually read

Bronze, Silver and Gold on Databricks for market data, built small enough to explain end to end.

Author

The problem

Medallion architecture gets described a lot more often than it gets shown. I wanted a complete, readable reference where each layer's responsibility is obvious and the whole thing is small enough to hold in your head.

What I did

Architecture

Medallion architecture: Bronze, Silver and GoldSourcemarket dataBronzeappend-only, faithfulSilverdedup + types + rulesGoldKPI aggregatesDashboardno cleaning hereone place defines correctnesscheap to query
Bronze stays faithful to the source so a source-side bug remains reproducible. Silver is where 'correct' gets defined: dedup, types, business rules. Gold pre-aggregates into the shapes a dashboard consumes, so query-time work stays trivial.

What went wrong first

Resisting the urge to clean early

Filtering bad rows in Bronze is tempting and quietly destroys your ability to reproduce a source-side bug. Keeping Bronze faithful is a discipline, not a default.

Results

layers with explicit contracts
3layers with explicit contracts
MIT-licensed and readable end to end
PublicMIT-licensed and readable end to end

A reference implementation is a teaching tool. The value is that someone can read all of it in one sitting and see exactly why each boundary exists.

Stack

DatabricksPySparkDelta LakePythonMedallion architecture
Repository