Data mesh architecture is a way of organising analytical data in which the business domains that create it (orders, payments, logistics) also own it and publish it for other teams as data products. Every domain builds on one shared self-serve platform, and a short list of global rules, checked automatically, keeps the products compatible with each other. Zhamak Dehghani introduced the idea in 2019 for companies whose central data team had become the bottleneck.
Most of it is organisational design. The storage underneath is usually the warehouse or lakehouse you already run. What changes is who answers for a dataset, what a team has to publish alongside it, and which rules a pipeline enforces in place of a review meeting.
The problem data mesh was designed for
In the usual setup, product teams run their systems and a central data team copies everything into a warehouse or lake, cleans it and builds the tables analysts use. That works while one team can understand every source. It strains when dozens of sources change independently. The central engineers know the tools but not what each field means to the business, every new request joins the same queue, and when an upstream team renames a column, a broken dashboard is often how anyone finds out.
Data mesh moves the work to where the knowledge is. The team that runs the order system knows what a "completed" order is and when that definition changes, so it publishes the completed-orders dataset and answers for its quality.
The four principles in practice
Dehghani's 2020 follow-up article names four principles. She intended them as a set, so adopting one or two on their own gives you something other than a mesh.
Domain ownership
Each business domain owns the analytical data that comes out of its own systems. Some datasets are shaped for a particular group of consumers out of other domains' data; Dehghani's 2019 article calls these consumer-oriented and shared domain data, and they need an owner too. Owning means building the pipelines, fixing them when they break and deciding how the data changes over time. That needs people in the domain who can do data engineering. In our view, this is where a rollout is most likely to stall.
Draw domain boundaries where the business already draws its own: departments, budgets, the people who answer for a process. If two departments both believe they own "customer", settle that before buying any tool.
Data as a product
A table that someone happens to be able to query is not yet a product. A data product has an owner, known consumers, documentation, quality checks and a promise about freshness. Dehghani's 2022 book, Data Mesh, lists eight baseline attributes: discoverable, addressable, understandable, trustworthy, natively accessible, interoperable, valuable on its own, and secure.
The 2020 article also gives each domain a data product owner, measured on things like data quality, how quickly consumers can start using the data, and how satisfied they are. In practice that is one person in the domain whose job includes refusing a breaking change.
Physically, a data product is small: a schema or dataset holding a few tables or views, the code that builds them, tests, a contract and a catalog entry. Products don't map one to one onto tables: a domain with 200 internal tables might publish five.
A self-serve data platform
If each domain had to set up its own storage, orchestration, catalog and access control, nobody would ship anything. A platform team builds those once and runs them as an internal product. The 2020 article splits the platform into three planes: infrastructure provisioning, a developer experience for building data products, and a mesh supervision plane for what spans all products, such as discovery and global policies.
A useful test: how long does it take a domain engineer to publish a new data product, with a contract, tests and a catalog entry, without filing a ticket? If the honest answer is weeks, the queue has only moved from the data team to the platform team.
Federated computational governance
Some decisions have to be the same everywhere or the products can't be combined. Domain product owners and platform engineers agree on those few rules together, and the platform enforces them in code. The article's examples are shared definitions of quality and SLOs, data sensitivity levels, regulatory requirements, and one way to identify entities that appear in several domains.
The last one decides whether a mesh is usable at all. In the odds data platform we built and ran for EdgeHunters, 44 sportsbooks each named teams, leagues and markets their own way. Normalisation tables map the team and league names, and a game ID built from Flashscore data pairs the same event across books, so a price at one book can be compared with the same game at another. Inside a company the sportsbooks are your domains and the game ID is usually a customer or product ID, which is why that ID is worth agreeing on before anything else.
"Computational" means the rule runs as a check in a pipeline. A rule that only lives on a wiki page depends on everyone remembering it. Our data governance post covers the policy side in more detail.
What the architecture looks like
Without the vocabulary, a working mesh has five parts:
- Domain pipelines that read the domain's own systems and write to the domain's area of shared storage: a schema, dataset, catalog or workspace per domain.
- Data products in that area, each with a contract, tests and a named owner.
- A catalog where consumers find products, read their contracts and request access.
- Platform services that every domain uses: orchestration, compute, access control, monitoring and the automated policy checks.
- Consumers (analysts, other domains, ML teams) reading products through ordinary interfaces: SQL tables and views, files in object storage, occasionally event streams.
Most companies run all of this on one platform rather than one stack per domain, and the platform vendors have added features for it. Microsoft Fabric has domains that group workspaces by business area and let domain admins override some tenant settings, and Amazon SageMaker Unified Studio has domain units for organising assets by business unit and team. Logical separation on shared storage is usually enough; separate infrastructure for every domain mostly adds cost.
Where the data physically lives is a separate decision, covered in our data lake vs data warehouse post. The terms get mixed up, so here is how they relate:
Term | What it describes | How it relates to data mesh |
|---|---|---|
Data warehouse | Structured storage and a SQL engine for analytics | Can hold a mesh's data products |
Data lake | Raw files in object storage, schema applied when read | Can hold data products too |
Lakehouse | Lake storage with open table formats (Delta Lake, Apache Iceberg) and warehouse-style SQL | Can hold data products too |
Data fabric | Metadata-driven integration across sources, a term Gartner popularised | A technical approach that says nothing about ownership |
Data mesh | Who owns analytical data, and how it is published and governed | Runs on any of the above |
Data contracts: the part to adopt first
A data contract is the written promise behind a data product: its schema, what each field means, quality rules, freshness, retention, and who owns it. It is the piece of data mesh that pays off even if you never reorganise, because a renamed column shows up as a failed check before it can show up as a wrong number in a board report.
There is an open standard for writing them, the Open Data Contract Standard (ODCS), maintained by the Bitol project under the Linux Foundation's LF AI & Data. Version 3.2.0 was released in September 2026. A minimal contract for a completed-orders product looks like this:
apiVersion: v3.2.0
kind: DataContract
id: orders-completed-orders
name: Completed orders
version: 1.2.0
status: active
domain: orders
description:
purpose: One row per completed order, for revenue and fulfilment reporting.
limitations: Refunds are not here; they are in the payments domain's refunds product.
servers:
- server: production
type: bigquery
project: acme-analytics
dataset: orders_public
schema:
- name: completed_orders
physicalType: table
properties:
- name: order_id
logicalType: string
primaryKey: true
required: true
- name: customer_id
logicalType: string
required: true
description: The company-wide customer ID that every domain uses.
classification: restricted
- name: total_amount
logicalType: number
required: true
- name: currency
logicalType: string
required: true
quality:
- metric: invalidValues
arguments:
validValues: [EUR, USD, GBP]
mustBe: 0
- name: completed_at
logicalType: timestamp
required: true
slaProperties:
- property: latency
value: 2
unit: h
- property: retention
value: 7
unit: y
team:
name: Orders
members:
- username: orders-data@example.com
role: ownerWe checked this file with the open-source Data Contract CLI (version 1.2.7). datacontract lint validates it against the ODCS 3.2.0 schema, and datacontract test connects to the server in the servers block and runs the checks. For the test we swapped the BigQuery server for a local CSV file containing a repeated order_id and a TRY currency, and the run failed on both, which is the behaviour you want from a CI job. A few choices in it are worth copying: limitations tells consumers what the product does not contain, classification marks the field that platform-wide masking or deletion jobs should key on, and the retention value should be copied from your company's retention policy.
Contracts also work when the producer sits outside your company and will never sign one; the contract becomes a check you run when the data arrives. On Savings United's BI team, where we had a senior data engineer embedded for four years, the outside producers were affiliate networks: we automated QA that compares their payout data with the warehouse, because reporting couldn't be trusted until the two matched.
Contracts on one warehouse with dbt
If your transformations already live in dbt, you can get much of a mesh's discipline without moving anyone between teams. dbt files groups, access levels, model contracts and versions under governance, and together with cross-project references they make up what it calls dbt Mesh. A sketch for the orders domain in models/orders/_orders.yml, with BigQuery type names:
groups:
- name: orders
owner:
name: Orders team
email: orders-data@example.com
models:
- name: stg_orders
config:
group: orders
access: private # only models in the orders group can ref() it
- name: completed_orders
config:
group: orders
access: public # the data product other teams build on
materialized: table
contract:
enforced: true # the build fails if columns or types drift
columns:
- name: order_id
data_type: string
constraints:
- type: not_null
- name: customer_id
data_type: string
constraints:
- type: not_null
- name: total_amount
data_type: numeric
- name: currency
data_type: string
- name: completed_at
data_type: timestampWith contract: enforced: true, dbt checks before building that the model returns exactly these columns and types, and the build fails if they have drifted (dbt's model contracts docs). A private model can only be referenced from inside its group. We ran this example on dbt Core 1.12 with DuckDB and saw both protections work: a missing column stopped the build, and a reference to stg_orders from another group was refused at parse time. We have not run it on dbt v2, the Rust rewrite that new installs now get by default. One limit: cross-project references, where each domain has its own dbt project, need an Enterprise or Enterprise+ plan on the dbt platform. Without one, the alternative is to install the other project as a package, which copies its full source code into yours. Our modern data stack post covers where dbt sits among the other tools.
When data mesh is worth it, and when it isn't
This is our own rule of thumb, so read it as opinion. Data mesh pays off when all three of these hold:
- Several domains have their own engineering teams, and their systems change independently of each other.
- The central data team is the queue, and what slows requests down is missing domain knowledge more than missing headcount.
- Leadership is willing to make domain heads accountable for their data and to give them time and budget for it.
It isn't worth it, or not yet, when:
- your whole data function is a handful of people who can still know every source;
- the domains have no engineers, so "ownership" would really mean hiring data engineers into each one;
- most of the hard questions cross domains, and the pain is integration;
- the basics are missing: no warehouse anyone trusts, no tests, no catalog. A mesh would spread that mess across more owners.
For companies in the second group there is a useful middle ground. Keep the central team, name an owner in the business for each important dataset, write contracts for the datasets other teams depend on, and enforce them in CI. If the queue still grows after that, you have already built the first half of a mesh.
Where rollouts go wrong
- Tables get relabelled as data products but have no owner, contract or consumer. Nothing improves, and the term gets a bad name inside the company.
- Every table becomes a product. The catalog fills with hundreds of entries nobody can tell apart. Publish what consumers need, such as an order history or a customer profile, and keep the rest internal.
- A governance committee approves every schema change. That rebuilds the bottleneck data mesh was meant to remove. Put the rule in a check and let the check say no.
- The platform team spends a year on a platform no domain asked for. Build it alongside the first one or two domains, for their actual products.
- Personal data is copied into every product. If five domains each copy customer emails into their products, a deletion has to reach five places, and the GDPR's storage-limitation principle applies to every copy. Classification tags on personal fields and one automated deletion path belong in the platform; left to each domain's backlog, deletion will happen unevenly.
For the checks themselves, see our post on data quality management.
How to start without a reorganisation
- List your important datasets with the system that produces each one, the person who understands it and the teams that use it. The empty cells in the "who understands it" column are the real finding.
- Pick one domain with a lead who cares and a consumer who is waiting on something.
- Publish one or two products for that consumer, each with a contract, tests and a catalog entry.
- Run the contract checks in CI and in the scheduled pipeline, so a breaking change fails before it reaches anyone.
- Agree on the first global rules, usually a shared customer ID and a classification for personal data, and automate them.
- Once those products have run for a while, check one thing: has that consumer stopped waiting on the central team? If so, move to the next domain.
Frequently asked questions
Is data mesh dead?
The label is used less than it was a few years ago, but its parts keep being standardised and built into products. ODCS reached 3.2.0 in September 2026, Microsoft's own Fabric documentation presents its domains feature as data mesh support, and dbt ships groups, access levels and contracts. In our reading, the ideas have outlived the hype.
Is data mesh the same as microservices for data?
The analogy holds for ownership: a domain runs its data products the way it runs its services. The data differs. Dehghani separates operational data, which services read and write as the business runs, from analytical data, which she describes as a temporal and aggregated view of the business over time. A data product serves the second kind, so it needs history, versioning and quality checks that a service API rarely has.
Do you need Kafka or streaming for a data mesh?
No. Most data products are batch tables or views refreshed on a schedule. A stream makes sense when consumers need events within seconds, and it brings its own contract questions, such as schema compatibility rules.
If you'd like a second opinion on whether your data setup needs a mesh or something simpler, that is part of our data and AI work.
Related Articles
MLOps Guide: What to Set Up First, and What Can Wait
MLOps gets a model into production and keeps it useful there. Here is the order we'd set it up in, with current MLflow and DVC examples, and what changes for LLM features.
Read More: MLOps Guide: What to Set Up First, and What Can WaitComputer Vision Applications: Where It Works and Where It Struggles
Where computer vision works today, from inspection lines to invoices and medical scans, what makes some applications hard, and when a general vision model saves you training your own.
Read More: Computer Vision Applications: Where It Works and Where It StrugglesAI Agent Development: When You Need One and How to Build It
An AI agent is a language model working in a loop with tools. When you need one, the loop in Python, choosing a framework, keeping it safe, and what each run costs.
Read More: AI Agent Development: When You Need One and How to Build It
