Data Mesh Architecture
A data mesh is an approach to analytical data that distributes ownership to business domains, instead of concentrating it in one central data team and one central data lake. Each domain publishes its data as data products, built on a shared self-serve platform and following common rules for interoperability, quality and security.
The concept was introduced by Zhamak Dehghani in How to Move Beyond a Monolithic Data Lake to a Distributed Data Mesh and refined in Data Mesh Principles and Logical Architecture. Data mesh is primarily a socio-technical change: it is as much about who owns data and how teams are organized as about technology.
The problem it addresses
In a centralized model, a data team collects data from all source systems, cleans it, models it and serves it to consumers. As the organization grows, this model runs into limits:
- Bottleneck: every new source, change and report waits for the central team.
- Lost context: the central team knows data engineering, but not the meaning of every field in every domain. Domain knowledge stays with the source teams, who are not responsible for the data.
- Fragile pipelines: changes in source systems break central pipelines, and nobody upstream feels responsible.
- Monolith: the lake becomes a large, tightly coupled system that is hard to change, much like the legacy applications it was meant to free data from.
Data mesh applies to analytical data the same ideas that microservices and Domain-Driven Design brought to operational systems: decentralization along domain boundaries, clear ownership, and well-defined interfaces.
The four principles
| Principle | Meaning |
|---|---|
| Domain ownership | Analytical data is owned by the domain that understands it best, usually the domain that produces it (for example, Sales owns order data, Logistics owns shipment data) |
| Data as a product | Domains treat their data as a product with consumers as customers: discoverable, documented, reliable, with an owner and quality guarantees |
| Self-serve data platform | A platform team provides the infrastructure and tools that make building, publishing and consuming data products easy, so that domains do not each build their own stack |
| Federated computational governance | Global rules (security, privacy, interoperability, quality) are agreed jointly by domains and a central governance group, and enforced automatically by the platform wherever possible |
1. Domain ownership
Domains are aligned with business areas, often the same boundaries as business capabilities and bounded contexts. Three kinds of data products typically emerge:
- Source-aligned products reflect the facts of a domain's operational systems: orders, payments, shipments.
- Aggregate products combine data from several domains for common use, for example Customer 360.
- Consumer-aligned products are shaped for a specific use: a revenue dashboard dataset, a churn model's feature set.
2. Data as a product
A data product is more than a table. It is the smallest independently deployable unit of the mesh and includes:
- data and metadata: the datasets, with schema, documentation, classification and lineage
- code: the pipelines that create and update the data, and the tests that check it
- interfaces (output ports): how consumers access it, for example as tables, files, APIs or event streams
- a data contract: the formal promise to consumers about schema, semantics, quality and service levels (see the Open Data Contract Standard and datacontract.com)
- an owner: a data product owner in the domain, accountable for its quality and for its consumers' satisfaction
The original data mesh article lists the qualities a data product should have:
| Quality | Meaning in practice |
|---|---|
| Discoverable | Registered in a catalog with a clear description, so people can find it |
| Addressable | A stable, unique address, so consumers can rely on it programmatically |
| Trustworthy and truthful | Quality checks, freshness and service levels are defined, measured and published |
| Self-describing | Schema, semantics and examples are documented, so it can be used without asking the producer |
| Interoperable | Follows global standards: common identifiers, formats and naming, often based on the conceptual data model |
| Secure | Access is controlled by global policies, with personal data protected by default |
Example of a data contract for a data product:
dataContractSpecification: 1.1.0
id: urn:datacontract:sales:orders
info:
title: Orders
version: 2.1.0
owner: sales-domain
description: One row per customer order, current state, all sales channels.
servers:
production:
type: s3
location: s3://data-products/sales/orders/
format: parquet
models:
orders:
type: table
fields:
order_id: { type: string, required: true, unique: true }
customer_id: { type: string, required: true, description: "Enterprise customer ID" }
order_status: { type: string, enum: [PLACED, CONFIRMED, SHIPPED, DELIVERED, CANCELLED] }
total_amount: { type: decimal, description: "Order total in EUR" }
created_at: { type: timestamp, required: true }
servicelevels:
freshness:
description: Data is at most 1 hour old
threshold: 1h
timestampField: orders.created_at
Contracts can be tested automatically in the pipeline, for example with the Data Contract CLI, so a change that would break consumers fails before it is published.
3. Self-serve data platform
Without a strong platform, data mesh turns into every domain building its own data stack. The platform makes the right way the easy way, following the platform mindset. Dehghani describes it in three planes:
| Plane | Capabilities |
|---|---|
| Data infrastructure provisioning | Storage, compute, query engines, access control, encryption, provisioned automatically |
| Data product developer experience | Templates and golden paths for new data products, pipeline tooling, contract testing, deployment |
| Data mesh supervision | Catalog and discovery, lineage across products, global policy enforcement, quality and usage monitoring |
In practice, the platform is often built on the same technology as a central data lake or lakehouse: shared storage with open table formats, processing engines and a catalog, but organized so that each domain owns its own data products within it.
4. Federated computational governance
Decentralization needs common rules, or the mesh becomes a collection of incompatible silos. Governance in a data mesh is:
- Federated: a governance group with representatives from domains, platform, security and legal agrees on global policies. Domains decide everything else locally.
- Computational: policies are implemented as code in the platform and checked automatically, not only written in documents.
| Global policy | Example of automatic enforcement |
|---|---|
| Every data product has an owner, description and classification | Publishing fails without these metadata |
| Personal data is protected | Columns classified as personal are masked by default; access requires approval |
| Common identifiers | Customer and product IDs must use the enterprise identifier format |
| Contracts are respected | Breaking schema changes are rejected unless a new major version is published |
| Quality is visible | Freshness and quality checks run on every update; results are shown in the catalog |
This connects directly to data governance: data owners and stewards move into the domains, while the central function sets the standards and provides the tools.
Data mesh, data lake and data fabric
| Central data lake / lakehouse | Data mesh | Data fabric | |
|---|---|---|---|
| Main idea | Central storage and processing of all analytical data | Domain-owned data products on a shared platform | Integrated, metadata-driven access to data across many sources |
| Ownership | Central data team | Domains | Usually central |
| Primary focus | Technology and scale | Organization, ownership and product thinking | Technology: integration, virtualization, metadata automation |
| Scales with | Central team capacity | Number of domain teams | Metadata and automation maturity |
| Risk | Bottleneck, lost domain context | Inconsistency without strong platform and governance | Complex tooling, unclear ownership |
The approaches are not mutually exclusive. A common pattern is a lakehouse as the technical platform with data mesh as the ownership model: shared storage, engines and catalog, with data products owned and published by domains.
Implementation examples
| Building block | Examples |
|---|---|
| Domain-oriented catalogs and governance | Databricks Unity Catalog, Microsoft Fabric domains, Amazon DataZone, Google Cloud Knowledge Catalog (formerly Dataplex) |
| Open source catalogs | DataHub, OpenMetadata |
| Data contracts | Open Data Contract Standard (Bitol), Data Contract CLI |
| Cross-project transformations | dbt Mesh for splitting transformation projects by domain with defined interfaces |
The Data Mesh Architecture site collects practical examples and reference designs.
Organizational implications
Data mesh changes roles and responsibilities:
| Role | Responsibility |
|---|---|
| Domain data product owner | Defines and prioritizes data products, understands consumers, accountable for quality and satisfaction |
| Domain data engineers | Build and run data products inside the domain team |
| Data platform team | Builds and operates the self-serve platform as a product for domain teams |
| Governance group | Agrees on global policies and standards, with domain representation |
| Data consumers | Analysts, data scientists, applications and AI agents using data products |
These roles fit well with Team Topologies: domain teams as stream-aligned teams, the data platform as a platform team, and specialists as enabling teams helping domains get started.
When data mesh fits
Data mesh is a good fit when:
- the organization is large and complex, with many domains and data sources
- the central data team is a bottleneck, and domain knowledge is lost on the way to the lake
- domain teams have, or can build, data engineering skills
- there is commitment to invest in a self-serve platform and governance
It is usually not worth it for small organizations with a few data sources, where a well-run central team is simpler and cheaper, or where domains have no capacity to take ownership.
Adopting incrementally
- Start with one or two domains that have strong data needs and willing teams.
- Define the first data products with owners, contracts and catalog entries.
- Build the platform from real needs, beginning with templates, contract testing and the catalog.
- Agree on a small set of global policies and automate them.
- Measure adoption and satisfaction of data products, then expand to more domains.
Common pitfalls
- Renaming without change: calling existing tables "data products" without owners, contracts or quality guarantees.
- Decentralizing without a platform: every domain builds its own stack, multiplying cost and inconsistency.
- Governance only on paper: policies that are not enforced by the platform are not followed consistently.
- Ignoring interoperability: data products that cannot be joined because identifiers and definitions differ.
- Too fast, too wide: reorganizing all data work at once instead of proving the model in a few domains.