Data Warehouse Architecture: Layers, Flow, and Ownership

Plan warehouse data flow, layer boundaries, ownership, and operational checks. Compare ETL and ELT and see how physical design varies by provider.

published: reading time: 17 min read author: Geek Workbench updated: November 12, 2026
Quick Summary

This guide focuses on warehouse architecture: how data moves from source through landing and transformation to consumer-facing models, and who owns each boundary. ETL and ELT place transformations at different stages, while physical design and compute controls differ by provider. Use workload-specific validation and freshness gates, then track their evidence through cutover and operation.

Data Warehouse Architecture: Building the Foundation for Analytics

This page covers warehouse architecture: data flow, layer boundaries, operating ownership, and failure checks. The companion Data Warehousing guide covers fact and dimension modeling, schema design, and slowly changing dimensions.

Architecture decisions should follow data sensitivity, freshness needs, consumer queries, recovery requirements, and the team that will operate each layer. Start with these responsibilities:

Boundary Accountable owner Evidence to retain
Source to landing Source and ingestion owners Extract watermark, source schema/version, row or event counts
Landing to modeled data Pipeline owner Transformation version, validation result, retry/replay state
Model to consumer Dataset or product owner Freshness status, published schema, access policy, known limitations
Incident response Named on-call or steward Alert, decision to block/continue, correction and consumer notice

What Makes a Data Warehouse Different

Your operational database runs OLTP (Online Transaction Processing). Every insert, update, and delete happens against a single record or small set of records, and response time matters in milliseconds. A data warehouse runs OLAP (Online Analytical Processing), where queries scan millions of rows, join across dozens of tables, and aggregate across time periods. The access patterns are fundamentally different, which is why you don’t run both workloads on the same system.

A common architecture separates source systems, a landing or staging area, integrated models, and consumer-facing data marts. These are logical boundaries; an implementation may combine or split them based on ownership, security, and operational needs.

The source layer feeds data from your operational systems—ERP, CRM, e-commerce platform, financial software, whatever runs the business. These systems care about transactions, not analytics. The staging layer acts as a landing zone where raw data sits temporarily before being cleaned and loaded. The core warehouse stores integrated, cleaned data in a structure optimized for analytical queries. Data marts are focused subsets, often oriented around a business function like finance or marketing, that provide faster query performance for specific user groups.

ETL Versus ELT: The Loading Strategy Decision

The way data moves from source to warehouse defines much of your architecture’s personality. ETL (Extract, Transform, Load) has been the traditional approach: extract data from sources, transform it in a dedicated processing layer (often on-premises), then load into the warehouse. This keeps the warehouse relatively simple but requires significant processing power outside it.

ELT (Extract, Load, Transform) flips the order. You load raw data into the warehouse first, then perform transformations using the warehouse’s own compute resources. Cloud data warehouses with massive parallel processing (Snowflake, BigQuery, Redshift) made this pattern practical. Now you can often skip a separate transformation layer entirely and let the warehouse do the heavy lifting.

ELT can fit teams that can safely land source data and run transformations in warehouse compute. ETL or a separate pre-load control can fit cases where data must be filtered or transformed before landing, or where source, network, security, or compute constraints shape the flow. Neither pattern is universally simpler or faster; compare operational burden, data exposure, recovery, and cost for the target system.

The Staging Layer: Raw Zone Matters

Some architectures keep a minimally transformed landing copy so teams can replay data or inspect what the source delivered. Retention, deletion, access, and cost controls still apply; keeping raw data is a decision with an owner and purpose, not a default requirement.

The raw layer also decouples your loading process from your transformation process. Load first, transform second, in separate steps that can be monitored and retried independently.

-- Example: Raw table structure capturing source state
CREATE TABLE raw_orders (
    load_id BIGINT,
    source_system VARCHAR(50),
    extracted_at TIMESTAMP,
    order_id VARCHAR(50),
    customer_id VARCHAR(50),
    order_total DECIMAL(12,2),
    order_status VARCHAR(20),
    raw_json JSON,
    CONSTRAINT pk_raw_orders PRIMARY KEY (load_id, order_id)
);

The SQL is illustrative and uses a generic dialect. Whether to retain a source payload alongside parsed fields depends on the replay need, privacy policy, and retention rules.

Modeling Is a Separate Decision

The architecture defines how data moves and who owns each layer. The presentation model defines how users analyze it. For fact-table grain, dimension design, and SCD choices, see Data Warehousing. A data mart can expose a dimensional model, but it is not required for every use case.

Physical Design Depends on the Provider

Do not assign physical-design rules by dataset size alone. First inspect representative queries, data distribution, freshness goals, concurrency, and cost. The controls differ by product: BigQuery exposes partitioning and clustering; Redshift offers distribution styles and sort keys; Snowflake uses virtual warehouses for compute and automatically organized micro-partitions, with clustering options for some workloads. Check current provider documentation before translating a general warehouse concept into a table setting. The references below were checked on 2026-11-12.

Provider Architecture-specific control Official reference
BigQuery Partitioned and clustered tables Partitioned tables
Amazon Redshift Distribution styles and sort keys Distribution styles and sort keys
Snowflake Separate virtual warehouse compute; automatic micro-partitions and optional clustering Virtual warehouses and micro-partitions and clustering

Tools of the Trade

A warehouse usually depends on surrounding systems for ingestion, orchestration, transformation, identity, monitoring, and BI. Select these components based on team skills and integration requirements; no single toolchain is required. Keep operational ownership clear when a pipeline crosses tools or teams.

When to Use a Data Warehouse

A data warehouse is the right choice when:

  • You need to answer questions that require joining data across multiple business domains (finance, CRM, supply chain)
  • Query response time matters but can tolerate seconds rather than milliseconds
  • Your data volumes are large enough that analytical queries would degrade operational systems
  • You need a shared source of truth for business metrics across teams

A warehouse may not be the right place for every workload. Keep transactional reads and writes in systems designed for them; assess latency, freshness, and concurrency before routing operational dashboards to an analytical platform. A small workload may be served by an existing database or reporting layer if it meets isolation and performance needs.

Data Warehouse Architecture

The canonical data warehouse architecture flows through distinct layers. Data enters from source systems, lands in a staging area, transforms into the core warehouse, and surfaces through data marts:

flowchart TD
    subgraph Sources[Source Systems]
        ERP[ERP]
        CRM[CRM]
        Commerce[E-commerce]
        Finance[Finance]
    end
    subgraph Staging[Staging / Raw Layer]
        Raw[Raw Tables]
    end
    subgraph Warehouse[Core Warehouse]
        Fact[Fact Tables]
        Dim[Dimension Tables]
    end
    subgraph Marts[Data Marts]
        FinanceMart[Finance Mart]
        MarketingMart[Marketing Mart]
        OpsMart[Operations Mart]
    end
    subgraph BI[BI & Analytics]
        Dashboards[Dashboards]
        Reports[Reports]
        AdHoc[Ad-hoc Queries]
    end
    ERP --> Raw
    CRM --> Raw
    Commerce --> Raw
    Finance --> Raw
    Raw --> Fact
    Raw --> Dim
    Fact --> FinanceMart
    Fact --> MarketingMart
    Fact --> OpsMart
    Dim --> FinanceMart
    Dim --> MarketingMart
    Dim --> OpsMart
    FinanceMart --> Dashboards
    MarketingMart --> Reports
    OpsMart --> AdHoc

Each layer needs an owner and an observable handoff. Sources own the source contract; ingestion owns delivery and replay; model owners own transformations and quality evidence; consumers own their use-specific acceptance criteria. A landing area can retain source payloads when approved, while marts can be omitted when a simpler published model serves the use case.

Trade-off Table: ETL vs ELT vs Cloud Native

Aspect Traditional ETL Traditional ELT Cloud Native Warehouse
Transform location External processing cluster Warehouse compute Warehouse compute
Infrastructure Separate transform runtime may be needed Warehouse compute for transforms Varies by service and surrounding tools
Setup complexity Depends on source, transforms, and operators Depends on transforms and warehouse Depends on service and integrations
Scale Fixed capacity Elastic Elastic
Cost model Runtime-specific Compute and storage model varies Provider-specific
Data quality enforcement Before load After load After load
Best for Complex pre-load validation, sensitive data separation Cloud warehouses, SQL-centric teams New cloud projects, simple pipelines

The right boundary depends on data handling requirements, source load, available compute, operational ownership, and recovery. For provider-specific compute and physical design, see the official references in the previous section; pricing and controls vary by service.

Production Failure Scenarios

Staging layer data corruption

Bad data enters the staging layer from a source system with a schema change the pipeline did not expect. The raw JSON column contains truncated records. Downstream transformation queries return nulls or wrong values, but the pipeline completes without errors because staging was loaded successfully.

The danger here is silent failure. The pipeline reports success because staging received rows. The warehouse fills with nulls or incorrect values. Downstream dashboards show revenue figures that are wrong, but no alert fires because the pipeline finished. By the time someone notices, the data is already baked into historical aggregates and reports that executives have been acting on.

Mitigation: validate row counts and null rates at the staging layer before marking a load complete. Reject loads where expected row counts deviate more than 10% from the moving average. Store schema version metadata with each staging load so pipeline logic can detect and handle breaking changes. Beyond row counts, validate field-level completeness: check that required fields are never null, that numeric fields contain valid ranges, and that foreign key values in staging records match known dimension keys. These checks catch schema drift early, before bad data propagates into the warehouse. Log every validation failure with enough context to reproduce the source data state for debugging.

Dimension table inconsistency after late-arriving records

A dimension record arrives late with an updated_at timestamp before the fact record that references it. The fact loads into the warehouse. The dimension update arrives seconds later. A Type 2 dimension record is inserted with effective dates that overlap the fact record. Queries that filter by dimension attributes return different results depending on join order.

Late-arriving dimensions are a fact of life in any warehouse that pulls from multiple source systems. The business does not pause operations while your pipeline catches up. A customer updates their address in the CRM, but the corresponding fact record in the ERP already shipped with the old address attached. When you load the dimension update and backfill the history, overlapping effective date ranges create ambiguity that SQL joins cannot resolve cleanly.

The impact is subtle but real. Reports filtered by dimension attributes become non-deterministic. The same query against the same data returns different results depending on join order or filter sequence. Business users lose confidence in numbers they thought they understood. Auditors find discrepancies between reported figures and source system totals.

Mitigation: use a staging table for dimension updates with a batch watermark. Only commit dimension changes to the production dimension table after the fact load watermark has advanced past the dimension record’s event time. This creates a ordering gate that prevents dimension records from being inserted with effective dates that precede already-loaded facts. Alternatively, use Type 1 SCD for attributes where historical accuracy is less critical than query simplicity, and reserve Type 2 only for high-value analytical attributes like customer segmentation or revenue tier that demand precise historical tracking.

ETL pipeline silently produces wrong aggregates

The transformation logic has a subtle bug — the SUM(amount) used amount_usd instead of amount_eur for European sales records. The pipeline completes without errors. Incorrect totals appear in dashboards. The bug is discovered weeks later during a financial audit.

Wrong aggregates are particularly insidious because the pipeline never fails. SQL executes cleanly, aggregations compute, rows update. The only signal that something is wrong is a business user noticing that the numbers do not match what they expect from source reports. By then, weeks or months of bad data have accumulated in historical tables, and cleaning it up requires reprocessing entire load cycles.

The root cause is usually a missing or misplaced filter condition, a unit conversion factor applied inconsistently, or a join that unintentionally doubles or halves the row count before aggregation. These bugs hide in transformation logic that looks reasonable on first read but computes the wrong thing.

Mitigation: add data contract assertions that compare aggregate totals against expected ranges. Alert if a pipeline produces totals that deviate more than 5% from the same period last week. Beyond aggregate totals, validate row counts at each transformation step, comparing them against the prior run’s output. Record checksum values for each fact table after every load so you can detect any unexpected changes to historical data. Build aggregate sanity checks that verify the sum of parts equals the total: total revenue should equal the sum of regional revenues, total orders should equal the sum of product category orders. Any violation of these equalities is a red flag that demands investigation before the pipeline continues.

Distribution key skew causing query timeouts

A new fact table was created with customer_id as the distribution key. A few large enterprise customers dominate the row count. Their rows land on the same node. Queries that join on customer_id cause a memory spill on that node and time out.

Distribution key skew is a common cause of query failures in cloud data warehouses running at scale. The warehouse distributes rows across nodes based on a key you specify. When that key has high cardinality and uneven distribution, some nodes end up with far more rows than others. Those nodes run out of memory during joins or aggregations, spill to disk, and the query times out. The same query might work fine on a small dataset where the skew is manageable, then fail catastrophically as data grows.

A key with a few dominant values can skew distribution even when it has many distinct values. Measure the actual key distribution and query plan rather than choosing a key from cardinality alone. This failure mode applies to systems with user-managed distribution keys; other warehouses expose different physical controls.

Mitigation: profile distribution and join plans before selecting a distribution strategy. Consider the provider-supported alternatives, and re-check after the data shape or workload changes. For Redshift, review its documented distribution styles; do not apply that advice as if every warehouse exposed the same setting.

Observability Checklist

Track these at each pipeline stage:

Landing layer: rows or events loaded vs the source watermark and expected range; required-field failures; schema-version mismatch.

Transformation layer: check results, rows processed versus loaded, duration by model, and compute or spend signals available from the provider.

Warehouse layer: query latency percentiles, queueing or concurrency, resource saturation, and provider-specific compute or spend versus budget.

Data mart layer: mart_row_counts vs historical baseline. query_usage_by_team to see which marts are actually used. dashboard_refresh_latency.

-- Pipeline SLA monitoring query
SELECT
    pipeline_name,
    MAX(completed_at) as last_completed,
    EXTRACT(EPOCH FROM (NOW() - MAX(completed_at))) / 60 as minutes_since_completion,
    CASE
        WHEN EXTRACT(EPOCH FROM (NOW() - MAX(completed_at))) / 60 > 60 THEN 'BREACHED'
        WHEN EXTRACT(EPOCH FROM (NOW() - MAX(completed_at))) / 60 > 45 THEN 'WARNING'
        ELSE 'OK'
    END as sla_status
FROM pipeline_runs
GROUP BY pipeline_name;

Set alert thresholds from the dataset SLA, expected volume range, user-impact target, and budget. Review them with the dataset and platform owners when baselines change.

Common Anti-Patterns

Building a warehouse before understanding query patterns

Teams design a warehouse schema from the data they have, not the queries they need. The resulting schema is technically correct but serves no one well. Business users cannot write the queries they need, or the queries run for minutes when they should take seconds.

This anti-pattern is tempting because it feels like good engineering. You survey the source systems, normalize the data into clean structures, apply proper referential integrity. The result is a textbook-normalized schema that requires business users to write six-way joins to answer the question “which region had the most returns last quarter?” The schema is technically elegant and practically useless.

The right approach is to start with the questions, not the data. Before designing anything, interview business users across finance, marketing, operations, and executive teams. Ask what questions they are trying to answer, not what data they have. Document the top twenty queries they run regularly. Design the schema to serve those queries first, then figure out how to load the data to support it. This means denormalizing where it makes queries faster, duplicating data where it eliminates joins, and organizing fact tables around the events that actually drive the business.

Using the warehouse as a staging ground

Loading raw data directly into production fact and dimension tables without a staging layer couples load failures to query availability. A failed load mid-transaction can leave the warehouse partially updated, with no way to roll back cleanly.

The staging layer is not optional infrastructure. It is the buffer that decouples data ingestion from data serving. When you load directly into production tables, any failure between the start of the load and the commit leaves the warehouse in an inconsistent state. Rows have been inserted but are incomplete. Aggregations have been updated but are wrong. Queries run against partially-loaded data return incorrect results with no easy fix short of reloading from source.

Beyond availability, staging enables rollback. When a transformation bug is discovered after a load completes, staging gives you a clean target to reprocess without touching production data. You can rebuild the production table from staging without any data loss because staging still holds the original raw data.

Always load through staging. Transformations run against staging. Only swap to production tables after validation passes. The swap itself should use an atomic operation: insert into the production table from staging in a single transaction, then truncate staging. This keeps production tables immutable during loads and guarantees that either the entire load completes or none of it does.

Ignoring the datamart layer

The warehouse is one large schema serving all use cases. Query performance degrades as the schema grows, and competing workloads from different teams interfere with each other.

The warehouse should serve production marts, not direct BI queries. Create separate marts for each major team. Let each team optimize their mart for their query patterns without affecting others.

Quick Recap

  • Define source, landing, transformation, and consumer boundaries with an owner at each handoff.
  • Choose ETL or ELT based on data handling, recovery, workload, and team constraints.
  • Use freshness, validation, and service-impact gates before publishing data.
  • Physical design and compute controls vary by provider; consult current documentation and measure representative queries.
  • For fact/dimension schema and SCD details, see Data Warehousing.

Conclusion

Start with the data consumers, freshness target, recovery path, and operating owners. Add layers only when they create a useful boundary for security, replay, transformation, or workload isolation. Measure the implementation with representative queries and service signals, then revisit it as data and ownership change. For modeling details, continue with Data Warehousing.

For deeper dives into specific modeling approaches, see star schema and snowflake schema. To understand where raw data lives, read about data lakes. Teams building modern platforms increasingly adopt the lakehouse pattern to unify these approaches.

Category

Related Posts

Star Schema: The Workhorse of Dimensional Data Modeling

Discover why star schema remains the dominant approach for analytical databases, how it enables fast queries, and when to use it versus alternatives.

#data-engineering #star-schema #dimensional-modeling

Data Warehousing

Learn warehouse modeling concepts: OLTP and OLAP, star and snowflake schemas, fact and dimension tables, and slowly changing dimensions.

#database #data-warehouse #olap

ELT Pattern: Transforming Data in the Data Warehouse

ELT flips ETL by loading raw data first, then transforming in the warehouse. Learn how modern cloud platforms enable ELT at scale.

#data-engineering #elt #data-warehouse