Data Lake Layers: Architecture, Types, and Best Practices
14 min read

Most data lakes start off tidy. A team spins up a few pipelines into Amazon S3, dumps a few database exports and event logs, adds the spreadsheets that finance keeps sending over, and plans to sort it all out once things settle down. Things don't calm down much. So 6 months later we have 3 copies of the orders table with slightly different row counts. Analysts are querying raw JSON because the cleaned version is 2 days behind. No one wants to be the one that deletes anything.
Layering is how most teams work themselves out of that situation, or avoid it altogether. The sections below go through each data lake layer with one running example, an orders table replicated from PostgreSQL. You can see what really changes as data goes from one layer to the next.
What Are Data Lake Layers?
Data lake layers are areas of a data lake that segregate data by how much processing has been applied to it. One zone holds newly ingested data, one holds data that has been checked and cleaned, and one holds tables built for reporting or machine learning. Each zone has its own rules for who can write to it, what checks that the data has passed, and how long it is kept.
In most setups these zones are logical, not physical. They often have a single object store and are divided by bucket, prefix, or catalog namespace so that s3://lake/raw/ and s3://lake/curated/ can reside on the same storage. But in practice, the difference is in how much the reader can trust the data in it.
Naming varies by team. Landing, staging, and production were common terms in older Hadoop-era setups and bronze, silver, and gold became popular in Databricks' medallion architecture. Whatever you call them, the idea is that each layer you move up makes a table more reliable, and more tied to a specific use.
How Does a Layered Data Lake Architecture Work?
Data enters at the raw layer and moves up through a series of jobs. Each job reads from one layer and writes to the next one. Nothing is edited in place on the way, so every table can be traced back to its source.
You can see how this works by looking at the orders table through the layers.

- An ingestion pipeline captures all insert/update/delete events on the PostgreSQL
orderstable and writes those change events as-is to the raw layer. - A cleansing job applies the changes to get the current state of each order, converts
created_atto UTC, and drops the duplicate events left behind by a connector retry. - A modeling job joins cleaned orders to customers and products to produce a
daily_revenuetable in the curated layer. - A finance dashboard consumes
daily_revenue, and no one on the finance team ever needs to know that the raw change events exist.
The setup pays off when something goes wrong. Imagine a bug in currency conversions inflating revenue for two weeks before anyone notices. With layers, the fix is to fix the job and rebuild daily_revenue from the cleansed layer; without layers, the team would be asking application engineers for a new export and hoping nothing else changed in the meantime.
Layers also make it easier to sort out ownership. Data engineers usually own ingestion and cleansing. Analytics engineers are usually responsible for the curated models. The people reading the data know which zone to go to for what.
Key Layers of a Data Lake Architecture
There are two types of layers in a data lake architecture and it helps to separate them in your mind. Three are zones where data sits at different levels of refinement; the other three are services that move, store and serve that data.
| Layer | Also called | What it holds or does | Main users |
|---|---|---|---|
| Raw | Bronze, landing | Source data exactly as ingested | Data engineers |
| Cleansed | Silver, standardized | Validated, deduplicated, typed data | Data engineers, analysts, data scientists |
| Curated | Gold, consumption | Business models, metrics, aggregates | Analysts, BI tools, business teams |
| Processing and transformation | Compute layer | Jobs that move data between zones | Data and analytics engineers |
| Storage | Foundation layer | Files, table metadata, catalog | Platform teams |
| Consumption | Serving layer | Query engines, BI, ML, APIs | Anyone who reads the data |
The rest of this guide takes each in turn, starting with the raw layer where every piece of data first lands.
Raw Data Layer
The raw layer, some teams call this bronze or landing, is where everything lands in the lake. Data is stored in the lake exactly as it was sent from the source. So a PostgreSQL change event, a clickstream payload or a vendor's CSV data file looks the same in the lake as it did on its way out. Ingestion pipelines usually add a few columns of their own, e.g. when the record arrived, what system it came from, which log offset or batch ID it belongs to.
It feels like a waste to just leave that data lying around especially when the cleaned up version has everything that the analysts need. The raw copy pays for itself later, when cleansing logic changes and history must be reprocessed, or when an auditor asks what a source system actually sent on a particular date.
The raw layer works best when it is append-only, writable only by ingestion pipelines, and partitioned by ingestion date or source so that reprocessing a single week doesn't require scanning an entire year. Record new or renamed columns from the source here and do not reject them, as the cleansed layer is the better place to decide how to handle a new or renamed column. Retention also requires some decision early on because keeping every change event forever gets expensive fast.
For databases, change data capture (CDC) is the usual way to fill this layer. Rather than dumping whole tables every night, CDC reads inserts, updates, and deletes from the database's transaction log as they happen. OLake Go does this for sources such as PostgreSQL, MySQL, and MongoDB and writes the results straight into Apache Iceberg tables, so the raw layer has snapshots and schema evolution from the first sync. For a raw layer that keeps every change, set the stream to append mode; the default for database CDC streams is upsert, which keeps only the latest state of each row.
Cleansed Data Layer
The cleansed layer, also known as silver, is where the orders change events turn into an orders table someone would actually want to query. Jobs read from raw, apply the latest change for each order, and write out one row per order with consistent types.
Most of the work here is routine cleanup. Timestamps arrive in three formats and need converting to UTC, a connector retry leaves duplicate events that have to be dropped, country codes show up as both IN and India, and some records fail validation outright and get routed to a quarantine table for someone to review. This is also the right place to mask or tokenize personal data, before it has a chance to spread into a dozen downstream tables.
Tables in this layer still look like their sources. Cleansed orders has the same columns as the application's orders table, just without the mess, and joins or business rules are left for the curated layer. Keeping it that way means several teams can build on the same cleansed tables without inheriting someone else's report logic.
Quality checks belong at the exit of this layer. Row counts, uniqueness on primary keys, freshness thresholds, and checks that every customer_id exists in customers should all pass before the data moves on, so a broken upstream feed stops here instead of turning up in the next morning's dashboard.
Curated Data Layer
The gold or curated layer is organized around the questions a business asks, not the source systems. In the running example, that means daily_revenue, built from joining cleansed orders with customers and products, as well as tables for customer lifetime value, churn, inventory turnover, and whatever else leadership reviews every Monday.
Curated data typically exists in one of a few forms. Dimensional models with fact and dimension tables work well for analysts, wide denormalized tables work well for BI tools that aren't great at joins, and feature tables work well in machine learning pipelines. It is the layer that most people in the company will touch, so it is held to the highest standard of accuracy, freshness and documentation.
The trouble here is mostly metric definitions. If finance defines an active customer as someone who ordered in the last 30 days, and marketing counts anyone logged in, the two teams will argue over numbers that are both technically correct. For most of those arguments, the answer is to define each metric once, record its owner and refresh schedule in the catalog, and announce a change before a column is renamed or dropped.
The two layers are kept apart since, for the most part, curated tables can be rebuilt from cleansed data. If the definition of revenue is updated, the curated layer is recomputed, and the cleansed layer underneath remains the same.
Data Processing and Transformation Layer
None of the above zones move data by themselves. The processing and transformation layer is compute that reads from one zone, applies logic, and writes to the next, and has no data of its own.
Jobs in this layer are batch or stream jobs. Batch jobs run on a schedule, every hour or every night and process large volumes cheaply. Unlike batch jobs, streaming jobs process records as they arrive. This is important when a fraud check or an operations dashboard can't wait an hour for new data. Many teams do both, streaming change data into the raw and cleansed layers, and leaving the heavier aggregations to a nightly batch.
The standard tools are Apache Spark for large batch and streaming jobs, Apache Flink for low latency streams, Trino for SQL transformations and dbt for organizing SQL models with tests and dependencies. Apache Airflow or Dagster typically sits on top, determining what runs when and in what order.
Regardless of the engine, jobs must be idempotent. This means that if you run a job twice on the same input, you will get the same output. That one property is what makes backfills boring, and retries safe. Your transformation code should be version controlled, with tests, and the lineage it produces recorded so that anyone can trace daily_revenue back to the raw change events it came from.
Data Storage Layer
Ultimately every zone lives in the storage layer which in a modern data lake is a stack of parts each solving a different problem.

At the bottom, object storage such as Amazon S3, Google Cloud Storage or Azure Data Lake Storage stores every file at low cost and grows without any capacity planning. The files themselves are usually Apache Parquet or ORC, columnar formats that compress well and allow engines to read only the columns a query asks for.
But a folder of Parquet files is not a table. Writing two jobs at once can overwrite each other, a reader can see a half-written write, and changing a column type may mean rewriting everything. Open table formats, like Apache Iceberg, Delta Lake, and Apache Hudi, address this problem by maintaining metadata that records exactly which files comprise a table at any given time. That metadata is what gives the lake ACID transactions, schema and partition evolution and time travel to previous snapshots. A catalog such as AWS Glue, Apache Polaris, Project Nessie, or any Iceberg REST catalog tells each engine where the current metadata for a table resides.
Storage needs ongoing maintenance as well. CDC and streaming pipelines write often and in small batches, which leaves thousands of small files that slow queries down, and every commit adds a snapshot that keeps old data and metadata around. Regular compaction merges small files into larger ones, and snapshot expiration clears out history that is no longer needed. OLake Fusion runs both of these on Iceberg tables as part of its table maintenance.
Data Consumption Layer
The consumption layer is where the work of every other layer finally gets used. Analysts build dashboards in Tableau, Power BI, Looker, or Apache Superset; data scientists pull curated and cleaned tables into notebooks to train models; applications read aggregates through APIs; and query engines such as Trino, Spark SQL, DuckDB, Snowflake, and Amazon Athena run both scheduled and ad hoc SQL.
Not long ago, each of these tools often needed its own copy of the data. Open table formats changed that, because an Iceberg table registered in a shared catalog can be read by many engines at once. The finance team can query daily_revenue from Snowflake while the data science team reads the same table from Spark, and there is still only one copy to keep correct.
This is also where governance becomes visible to most people. Access controls decide who can see which tables, columns, and rows, and a catalog with clear descriptions and owners helps people find the right table in the first place. When discovery is poor, people tend to use whichever table they stumbled on first, and the lake slowly drifts back toward the confusion the layers were meant to fix.
Data Lake Layers Architecture
In short, data moves from sources on the left to consumers on the right. Processing jobs move it from zone to zone, storage sits below it all, and governance sits above it all.

Each arrow between zones is a processing layer job and each zone is a set of tables in the same storage layer. So you can rebuild any layer from the previous one.
Best Practices for Data Lake Layers
- Never edit raw data in-place. Add new records and rebuild every other layer from them.
- Keep the same open table format in each zone. So every layer gets transactions, and time travel, and any engine can read any layer.
- Make promotion dependent on quality checks. Data that fails completeness, uniqueness or freshness checks remains untouched until someone examines it.
- Pick a naming pattern and stick to it. With names like
raw.pg_orders,cleansed.orders, andcurated.daily_revenue, the layer is obvious before anyone opens the table. - Grant access layer by layer. Most people need curated tables, fewer need cleansed data, and very few should be able to see raw data which might still contain unmasked personal information.
- Enter the lineage in the catalog, because it takes much longer to trace a wrong number back through four jobs by hand than to look it up.
- Schedule compaction and snapshot expiration from day one, rather than waiting until queries slow down.
- Think twice before you pile on the layers. Adding a sandbox zone for experimenting or an archive zone for cold data can be a good idea, but every extra zone means more jobs to run, monitor and pay for.
Conclusion
Layers don't fix a data lake by themselves, but they give it a shape that makes problems easier to find and cheaper to fix. Raw data is kept as is, cleansed data is trustworthy and curated data answers specific questions, with processing, storage and consumption layers taking care of moving, holding and serving it. If a number on a dashboard looks wrong, the path back to the source is short, and if the business changes its mind about a definition, the affected tables can be rebuilt without touching anything underneath.
Teams building this on Apache Iceberg can hand the most repetitive parts of the job to OLake: OLake Go replicates databases into Iceberg tables for the raw layer, and OLake Fusion runs compaction and snapshot expiration to keep those tables fast as they grow.


