Sit down for a minute. You have just joined a team that has “a lakehouse”, and everyone keeps saying bronze, silver, gold as if you were born knowing it. Let me explain it the way I would to a new colleague over a cup of tea, because the idea is simpler than the vocabulary.
Picture a kirana store owner who keeps three things. A shoebox with every paper bill exactly as it came in, crumpled ones included. A ledger where she has written those bills up neatly, one line per sale, with spelling fixed and duplicates removed. And a single page on the wall that says “this month: sales, profit, top five items”. Nobody confuses the three. If the wall page looks wrong, she goes to the ledger. If the ledger looks wrong, she goes to the shoebox. That is the whole medallion idea.
Bronze: the shoebox
The bronze layer holds data as it arrived from the source. A payment gateway’s daily file, a dump from the order system, clickstream events. You add very little: perhaps the time you loaded it and the file it came from. You do not fix spellings, you do not drop rows you dislike, you do not rename columns to match your naming standard.
Why be so lazy? Because the source will not send it again. Many systems only keep thirty or ninety days of history, and some APIs cannot be replayed at all. If you clean at the door and your cleaning rule turns out to be wrong, the original is gone. Bronze is your insurance, and it is cheap, since storage costs far less than the hours spent re-extracting.
Bronze is also allowed to be ugly. Dates stored as text, three spellings of “Bengaluru”, an amount column that sometimes contains “N/A”. Leave it. Ugly-but-faithful beats tidy-but-guessed.
Silver: the ledger
Silver is where you make the data trustworthy. Types are fixed, so that dates are real dates and amounts are numbers. Duplicates are removed by a documented rule. Obviously broken rows are set aside rather than silently deleted. Different systems are brought into one shape, so “cust_id” in one table and “CustomerNo” in another become the same thing. Often you also join in small reference data, such as mapping a pincode to a city.
Notice what silver does not do. It does not answer a business question. It is still at the level of one order, one payment, one event. Several different teams can build on it, and that sharing is the point: the cleaning rule is written once, not re-invented in fifteen analysts’ spreadsheets.
A small illustration. Suppose Tuesday’s raw order file from a Coimbatore-based retailer has 48,200 rows. After silver processing you have 47,950: 180 were exact repeats from a retried upload, and 70 had no order amount. Those 70 do not vanish. They land in a quarantine table with a reason, so someone can ask the source team about them. 48,200 minus 180 minus 70 is 47,950, and that arithmetic is something you should be able to show on request.
Gold: the page on the wall
Gold is shaped for the people who consume it. Daily sales by store. A customer table with lifetime value. A star schema that Power BI or Tableau reads quickly. Business rules live here: what counts as a “completed” order, whether returns are netted off, which fiscal calendar applies. Because gold is built from silver, a change in a rule is a re-run, not a new data collection exercise.
You will usually have several gold tables for different audiences. Finance wants one view, marketing another. That is fine, as long as both are derived from the same silver base, so their numbers can be reconciled.
What the layers buy you on a bad day
Say the business discovers that a discount code was being recorded as negative revenue for three weeks, and gold is wrong. In a one-step pipeline you are now chasing the source team and hoping they still have the files. In a layered one, you fix the rule in the silver step, re-run silver and gold for those three weeks from bronze, and compare before and after. Bad day, but a bounded one.
The second benefit is debugging. When a number looks off, you walk backwards one layer at a time and ask where it first went wrong. Gold wrong but silver right means a business-rule problem. Silver wrong but bronze right means a cleaning problem. Bronze wrong means it was wrong at the source, and the conversation is with another team entirely.
When three layers is too many
Do not treat the names as a religion. The pattern is popularised by Databricks, but nothing about it is a standard, and teams bend it. A small startup with one source and two analysts may be fine with raw and clean. A large company may add a layer between silver and gold for conformed entities. Others split gold by domain. What matters is the principle: keep the original, make cleaning explicit and repeatable, and separate “is this data correct?” from “what does the business want to see?”.
There are real costs. You store the data more than once. Every layer is another set of jobs to schedule and monitor, and latency adds up if each hop waits for the previous one. For streaming data that must be fresh within seconds, teams sometimes skip layers or compress them. And it is quite possible to build three layers of badly named tables that are just as confusing as one. A layer is only worth having if you can say, in a sentence, what is allowed to happen in it.
So next time someone says “that is in silver”, you can translate it: cleaned, de-duplicated, still at the grain of the source, not yet a business answer. Then ask what rule produced it. That question is more useful than the metal.
Figures and names in the examples are illustrative.
Leave a Reply