Data Warehouse Architecture Built for Reliable AI

Every report, AI agent and plain-language question your business runs reads from its warehouse. Rudder Analytics advises on the architecture, then builds and runs it in your own cloud account.

DashboardsAsk AIAI agentsCustom MCP
Semantic layerOne definition for each metric
GoldBusiness-ready models
SilverCleaned and joined, history kept
BronzeRaw, as each source sends it
StorefrontMarketplacesERPAd platforms
A warehouse as it grewFaults marked in red pen
StorefrontMarketplacesERPAd platforms
Storageanalytics.orders_rawanalytics.orders_final_v2Raw and cleaned in one schema
Modelsshopify_orders_modelnetsuite_so_modelOne model per source system
Historydim_customerRegion updated in place
Computeorder_linesFull refresh, all history
Financeentity_fx_recon.xlsxEdited by hand at each close
AccessRevenue dashboardPermissions held in the BI tool
AIAsk AI reads orders_rawNo definitions, no required filters

Where Warehouses Break Down

Most warehouses grow one source and one report at a time. AI then inherits every shortcut.

Raw and cleaned tables share one schema, so nothing can be rebuilt or audited after a bad load.

Each model copies its source, so every ERP or storefront change breaks the reports downstream.

Customer and product records change in place, so last year's figures shift after the fact.

Full refreshes and cold data on hot compute push the bill past the growth of the data.

Finance converts and consolidates in spreadsheets at each close, so group figures rest on one file.

Permissions live in the dashboards. A direct query or an AI tool can read every table.

AI queries raw tables with no definitions or required filters. Valid SQL still returns a wrong answer.

Data platform architecture

Business Data, Engineered for Decisions

Rudder Analytics designs, builds and runs every layer, with AI at work inside each one.

Contribution margin, source to decisionAI at workEngineer approves

Business systems

Read in place, so nothing is re-keyed or replaced.

  • ERP & finance
  • Commerce
  • CRM
  • Web & app
  • Marketing
  • Spreadsheets
  • Supply chain
  • Partners & EDI

Every source connected, mapped to one model and governed from the first load.

Each load on the schedule it needs, tested and watched before anyone reads it.

One modeled, secured home for every figure, quick to query and cost-controlled.

Dashboards, embedded views and AI answers, all reading the same certified metrics.

Served with your access rules

Decisions

  • CEOInvestment
  • CFOMargin and cash
  • COOStock and service
  • CMOSpend and growth
Diagram of the data platform, read top to bottom; each service floor opens in detail. Business systems such as the ERP, CRM, commerce, marketing, supply chain, partner and spreadsheet data are read in place through change data capture, APIs, event streams, EDI and files. Data Engineering maps each source field to one model of orders, customers, costs and products, with AI proposing the mappings, data contracts whose rules AI drafts, lineage with AI impact analysis, version control that reviews every change before release, and role-based access with masked personal data. Data Pipelines load streaming, micro-batch and batch data, clean and join it, run automated tests for nulls and ranges, referential integrity, duplicate keys and business rules that hold a duplicate load, and publish before the morning review; AI drafts transforms, diagnoses a failed run and flags an unusual volume, and monitoring tracks success, duration, volume and freshness. An engineer approves each change. Data Warehousing keeps raw data, cleans it, models it into facts and dimensions, and defines each metric once in a semantic layer that feeds gold tables for sales, finance and operations; AI drafts metric definitions, assists with SQL, tunes slow queries and controls compute cost. Data Visualization serves the same certified metrics to BI dashboards in Power BI or Tableau, custom analytics embedded in other apps, Ask AI, AI assistants through a custom MCP server, and AI Signals with AI Insights, with dashboards by function, certified views checked on every release, and governed self-service. Contribution margin is traced from the ERP to the CFO: 31.4%, 1.2 points above plan. The CEO, CFO, COO and CMO decide from the same numbers.

Warehouse Design, From Platform to Access

Rudder Analytics advises on each decision before building it.

A platform chosen for your cloud

Options are weighed on your current cloud, data volumes, team skills and running cost.

AI at workAI converts legacy SQL for a migration, and engineers reconcile the outputs before the switch.

Platform decisionOptions weighedRecommended
GCPBigQuery
AWSPostgreSQL on RDSClickHouse
AzureMicrosoft Fabric
Any of the threeSnowflakeDatabricks
Current cloudData volumesTeam skillsRunning cost
Your Google Cloud accountBigQuery
BronzeSilverGoldSemantic layer
Fits the current cloudSized for your data volumesMatches your team's skillsRunning cost priced first

Layers and models shaped by the business

Bronze, Silver and Gold feed a semantic layer. An order's lines, payments, refunds and shipments meet at the order-line grain.

AI at workAI proposes source-to-model mappings, and an engineer approves each one.

Customers, products, stock and finance follow the same design.

One order, from source to modelAs it landsAs modeled
Storefrontorder 48212 · USDheaderlinespayments
MarketplaceMK-50117 · EURrefundsfees
ERPSO-20931 · USDshipmentslanded costs
Bronze keeps each record as its source sends it
BronzeSilverGoldSemantic layer
Order lineCustomerProductChannelDateCurrencyNet revenueOL-48212-1C-1043SKU-2210Storefront14 AugUSD212.00OL-48212-2C-1043SKU-0877Storefront14 AugUSD128.00MK-50117-1C-2876SKU-2210Marketplace14 AugEUR196.00
Net revenue defined once in the semantic layer

Storage shaped by how data is queried

Partitions, clustering and retention tiers follow the questions asked, so cold data stays off hot compute.

AI at workAI finds the queries that drive the bill. Each rewrite must return identical results.

order_lines, read for the last 7 daysUnpartitionedPartitioned
orders by channel · last 7 days
Oldest historyThis week
Scans every month of historyOne storage tier for all data
orders by channel · last 7 days
Cold tierHot tier
Reads only the partitions it needsBatch, micro-batch and streaming land here

Access and change controlled on the tables

Access is set by role and column. Schema changes are versioned, traced through lineage and released after approval.

AI at workAI runs impact analysis on lineage before an engineer approves a change.

Schema change, fct_order_lineChange proposedChange released
ship_costfulfillment_costWaiting for approval
Column-level lineage: what the change touchesmart_marginmodelMargin dashboardreportContribution marginAsk AI metric
fct_order_line, version 2Approved by the data architect
ColumnFinanceMarketingAI toolsnet_revenuefulfillment_costcustomer_emailmasked

How AI Reads Your Warehouse

An AI answer is only as reliable as the warehouse behind it.

Ask AI works inside AI OS. Leaders' own AI assistants connect through a Custom MCP Server.

A leader's question, traced step by step
What was net revenue by channel last quarter, across both entities?
Net revenue by channel, Q3
DTC$21.4M
Marketplaces$12.8M
Wholesale$7.9M
Total, both entities$42.1M
Formula
Gross sales less returns, discounts and refunds
Filters
Actuals · reporting currency · both entities
Period
Jul 1 to Sep 30
Fresh to
September, complete
Reads the business contextget_business_context · two entities · reporting currency · fiscal calendar
Warehouse design: Business rules documented
Has a query refusedrun_query order_lines · no currency filter · refused
Warehouse design: Required filters enforced
Finds the tables and their rulesdescribe_table order_lines · must filter: currency, scenario
Warehouse design: Documented schema
Uses the governed metricquery_metric net_revenue · version 3 · read-only
Warehouse design: Semantic layer, read-only access
Checks freshness, shows the workingget_data_freshness · September complete · formula · filters · period
Warehouse design: Load monitoring and lineage

The Warehouse Behind the AI Layer

AI OS, Custom MCP and AI agents all read one governed warehouse. A lead agent coordinates specialists, and a person approves every action.

  • Shared business context
  • Open MCP standard
  • Scoped access for each agent
  • Every action logged

See Agentic AISee AI in Data Engineering

Lead agent · tasks on the warehouse
  1. Semantic modelMetric definitions
  2. Data classificationSensitive columns
  3. Quality checkTests on new loads
Approved and logged0123 of 3
Specialist agent, semantic modelReads Gold models · writes to a test branch

The lead agent asked for contribution margin in the semantic layer.

metric: contribution_margin
  reads: gross_margin, fulfillment_cost,
         payment_fees, paid_media
  grain: order_line   owner: finance
Matches the finance report for last quarter
Add contribution margin to the semantic layer as version 1
ApproveWaiting for an analytics engineerApproved by an analytics engineer, logged
Specialist agent, data classificationReads column metadata · writes to a test branch

New columns arrived in customers from the CRM.

customer_email: sensitive, masked for AI toolsphone: sensitive, masked for AI toolslifetime_orders: open to analysts
Apply column-level access rules to the new columns
ApproveWaiting for a data architectApproved by a data architect, logged
Specialist agent, data testingReads the new load · writes tests to a branch

A marketplace load holds refunds with no matching order.

214 refunds fail the order-match ruleHeld back before they reach any reportTest drafted for every marketplace load
Add the order-match test to the marketplace feed
ApproveWaiting for a data engineerApproved by a data engineer, logged

Why Rudder Analytics

GCPBigQueryAWSPostgreSQL on RDS, ClickHouseAzureMicrosoft FabricAny cloudSnowflake, Databricks
One design, in versioned code you own

Layers and models follow one design on every cloud, in versioned code the business owns.

A platform choice the business can explain, and revisit as it grows.

ordersorder_idcustomer_idchannelorder_date
returnsreturn_idorder_idreasonrefund
settlementspayout_idchannelfeespayout_date
Joined on their keys: order and channel

Orders, returns and settlements are modeled the way finance and operations already work.

Reports that read like the business from the first release.

Return rateUnits returned as a share of units shipped, by ship month.Approved by finance
Returns dashboard and Ask AI11.6%Both read definition v1

Business rules, table guides and required filters are written down, so AI applies your definitions.

AI answers finance can audit.

AssessData Architects
Design and buildData ArchitectsData EngineersAnalytics EngineersDomain Specialists
RunData EngineersAnalytics Engineersor a handover with runbooks

The people who learn your business in the assessment build the warehouse and support it.

Nothing lost between planning and running.

Your cloud account
WarehouseData volumeCapacity
ModelsReports
Kept: tools that earn their costLeft out: tools the model does not need

Rudder Analytics advises what not to buy. The warehouse grows only as your data does.

Full ownership of the data, the models and the code.

From Assessment to an AI-Ready Warehouse

  1. Priced roadmapFix firstMetric definitionsNextOrder-line modelThenRetire extracts
    Assessment

    A target architecture and a priced roadmap

    Led by Data Architects
  2. Monitored feedsERPCommerce platformMarketplaces
    Design & Build

    Priority sources landed, layered and modeled

    Led by Data Engineers and Analytics Engineers
  3. Semantic layerNet revenue, version 2Finance martsrevenue_extract_v3.xlsx
    Rollout & Adoption

    Reports and AI tools on shared definitions

    Led by Analytics Engineers with Domain Specialists
  4. Feature-ready datacustomer_ltvsku_velocity3PL system added
    Run & Evolve

    A warehouse that grows with the business

    Led by Data Engineers, or your team with runbooks
Posh PeanuteCommerce · Data Engineering 45% faster reporting, 60% lower costRead the story What Rudder Analytics built17+ data sources unified in one BigQuery warehouse, one governed source of truth for all 7 functions.Talend ELT · BigQuery · dimensional models Grunt StyleeCommerce · Data Transformation 100% reporting accuracy for 12 straight monthsRead the story What Rudder Analytics builtAn open-source data platform with 35+ reports and dashboards, and $0 in data-tool licences.20+ sources · five tested layers · open-source stack Flos USAeCommerce · Data Engineering & BI 60% lower reporting effort, 7% higher bundled salesRead the story What Rudder Analytics builtCustom Python ETL pulls 10+ sales and marketing platforms into one AWS database.Python ETL · SOAP and REST APIs · AWS GrundénseCommerce · Data, ERP & AI Two regions, two ERPs, one portalRead the story What Rudder Analytics is buildingOne warehouse across both ERPs and every channel.Two ERPs · regions, entities and currencies Made By MaryeCommerce · AI Demand Planning Zero unplanned stockouts, live in six weeksRead the story What Rudder Analytics builtAI demand planning on its Fulfil ERP data, with draft purchase orders written back.Fulfil ERP · forecasts · purchase orders RokformeCommerce · Executive BI One weekly view for every leadership decisionRead the story What Rudder Analytics builtKey metrics modelled in one semantic layer, so growth, margin and cash share one set of numbers.Semantic layer · CEO dashboard · five decision pillars

Questions Leaders Ask

Where does the data live, and who owns it?

In your own cloud account. The warehouse, models and reports belong to the business, whoever runs them.

Which platform fits the business: Google Cloud, AWS or Azure?

The assessment recommends one from your workloads, your team and the running cost of each option. BigQuery, Microsoft Fabric, Snowflake and Databricks are all in scope.

Migrate, or keep the current warehouse?

The assessment reviews what runs today and recommends what stays, what changes and why. Each change comes with its cost, and a migration reconciles outputs before the switch.

Warehouse or lakehouse?

The assessment decides, based on the data you hold and the questions leadership asks. Rudder Analytics designs both, with the same layers and models on top.

Can it handle several ERPs, entities and currencies?

Yes. Each ERP lands in Bronze as it was sent. Entities and currencies are reconciled in the core models. Group and entity views then read the same records.

How does AI reach the data safely?

Through governed metrics and read-only access, with the filters each table requires. Each AI tool sees only what its user may see, and every query is logged.

How is a definition agreed when finance and marketing disagree?

Each metric has a single owner. The competing versions are laid side by side with their effect on the number. The owner approves one for every report to use.

What will the warehouse cost to run?

That depends on data volumes and how often reports refresh. The assessment prices each option first. Partitioning, retention tiers and query tuning then keep cost in line with use.

An Architecture Review for Your AI Plans

Bring the AI uses you plan and the data you hold today. Rudder Analytics returns a target architecture, a priced plan and the order to build it.

Book an Architecture Review