Skip to content

Data Mesh Architecture Diagram: Domains, Data Products and the Platform

Data mesh drawn as an architecture: domain-owned data products with input and output ports, a self-serve platform, governance as code, and when to avoid it.

· Founder & developer

Published

Three stacked domain frames, Orders, Payments and Customers, each with a source system feeding a data product. Arrows carry tables, files and a stream to finance analytics and a churn model. Below, a platform row holds storage, global policies and a data catalog.

Finance wants refunds in the revenue dashboard, so the request joins the central data team's backlog. Weeks later, an engineer who has never seen the payments service guesses what status = 7 means and ships a pipeline. Then the payments team renames a column, and the dashboard breaks.

The people who understand the data do not own it downstream, and the people who own the pipelines do not understand the data. Data mesh, which Zhamak Dehghani described in a 2019 article on martinfowler.com, moves ownership of analytical data to the domain teams that produce it.

This post draws data mesh as an architecture: the four principles, what a data product contains, the platform, governance as code, how it compares with a data lake or lakehouse, and when it is the wrong choice.

Why central data teams become the bottleneck

Dehghani's 2019 article names three failure modes of a central data platform:

  • Centralized and monolithic. One platform ingests, cleans and serves every domain's data and breaks down as sources and use cases multiply.
  • Split by technical stage. Teams own ingestion, cleansing or serving, so every new dataset touches every stage. In her words, this design is "decomposed orthogonally to the axis of change."
  • Siloed specialists. Data engineers sit between source teams with no incentive to provide good data and consumers fighting for a spot in the backlog.

The data pipeline architecture diagram shows a typical central design. It works until one team must run it for every domain.

The four principles of data mesh

Dehghani's 2020 follow-up defines data mesh by four principles that are meant to be "collectively necessary and sufficient." Adopt one or two and you usually get data silos.

Principle What it means What you draw
Domain ownership The team that runs a business capability also serves its analytical data A frame per domain with its system and data products
Data as a product Data is built for consumers, with an owner and quality targets A data product with ports and a contract
Self-serve data platform A platform team provides domain-agnostic tooling One platform layer under all domains
Federated computational governance Domain and platform owners agree on global rules; the platform enforces them Policies wired into publishing

The article's full names are longer, such as "self-serve data infrastructure as a platform"; the short forms are its section headings.

Anatomy of a data product

The 2020 article calls the data product the architectural quantum of a mesh: the smallest independently deployable unit that includes everything it needs. It bundles code (pipelines, APIs, access policies), data with its metadata, and the infrastructure to run it.

Part What it is Orders example
Input ports Where data enters: a source system or another product CDC from the orders database
Transformation Code owned by the domain SQL that builds one row per order
Output ports How consumers read it; there can be several orders_daily table, order_events stream
Contract Schema, meaning and version YAML contract, version 2.1.0
SLOs Targets for freshness and quality At most one day old, no duplicate IDs
Owner A named team and product owner Orders team
Discoverability A catalog entry with docs and lineage Owner, contract, lineage

Whether the code runs as ETL or ELT is the domain's choice. The Open Data Product Standard (ODPS, version 1.1.0 at the time of writing) describes this shape in YAML: input ports are optional, but at least one output port is required, "as a data product without output is useless."

Dehghani's 2019 qualities make a good review checklist: discoverable, addressable, trustworthy, self-describing, interoperable and secure.

What the self-serve platform provides

Without a platform, every domain team runs its own storage, orchestration and catalog. The platform hides that work behind self-service tools and stays free of business logic. Dehghani's 2019 capability list includes polyglot storage, encryption, schemas and versioning, de-identification, access control, pipeline orchestration, catalog registration, lineage, monitoring and quality metrics. The 2020 article groups them into three planes: infrastructure provisioning, the data product developer experience, and mesh supervision for things such as search across products.

Storage can stay shared: Dehghani notes it can be central infrastructure, such as Amazon S3 buckets, while the content and ownership stay with the domain. Her success measure is the lead time to create a new data product. In practice: a template that scaffolds a contract, a pipeline, an output port and CI checks, and registers the product in the catalog.

Governance as code

Federated governance splits decisions. Each domain owns its data model. A federation of domain and platform product owners decides the few global things: how to identify a customer across domains, which classification levels exist and how SLOs are measured. "Computational" means the platform enforces those rules automatically instead of a board certifying datasets by hand.

Contracts are where the rules attach. The Open Data Contract Standard (ODCS) is an Apache 2.0 specification from Bitol, part of the LF AI & Data Foundation, at version 3.2.0 at the time of writing (November 2026). This contract validates against its JSON Schema:

apiVersion: v3.2.0
kind: DataContract
id: orders-daily
name: orders_daily
version: 2.1.0
status: active
domain: orders
team:
  name: orders-team
schema:
  - name: orders_daily
    physicalType: table
    properties:
      - name: order_id
        logicalType: string
        primaryKey: true
        required: true
        quality:
          - metric: duplicateValues
            mustBe: 0
      - name: customer_email
        logicalType: string
        classification: restricted
slaProperties:
  - property: latency
    value: 1
    unit: d

With contracts in Git, governance becomes checks in CI and at publish time:

  1. Validate every contract against the ODCS JSON Schema.
  2. Require an owner, and a classification on every field.
  3. Block breaking schema changes without a new major version.
  4. Refuse to publish a restricted field without masking.
  5. Publish freshness and quality results to the catalog.

Open Policy Agent can express such rules in Rego, but a CI script is a fine start. To classify personal data, you first have to find it; the data mapping diagram shows how.

Data mesh vs data lake vs lakehouse

A data lake and a lakehouse describe how data is stored. Data mesh describes who owns it and how it is shared.

Data lake Lakehouse Data mesh
What it is Low-cost storage, open file formats, schema-on-read Lake storage plus warehouse features: ACID transactions, versioning, indexing An ownership model for analytical data
Owner Usually a central team Usually a central team Domain teams
Unit of change Pipeline stages Layers: bronze, silver, gold Data products
Governance Central Central, often via a catalog Federated, automated

The lake and lakehouse columns follow the CIDR 2021 lakehouse paper. Dehghani calls lakes and warehouses "simply nodes on the mesh": many meshes run on a lakehouse, and many data products use medallion layers inside. The difference: each product's layers belong to one domain.

Prerequisites, and when not to use data mesh

Data mesh is mostly an organizational change. You need:

  • Real domains: teams aligned with business capabilities. If nobody can say who owns payments, start with an engineering org chart that maps teams to systems.
  • Capacity in domain teams to build and run data products as roadmap work.
  • A platform team, or every domain rebuilds the same infrastructure.
  • Leadership support: ownership moves only when goals, headcount and on-call move with it.

It is probably the wrong choice when:

  • You are small. With few sources, consumers and data engineers, a central team is faster. The 2019 article itself says the centralized model can work for simpler domains.
  • The bottleneck is elsewhere. Fix slow pipelines or bad source data first.
  • It is only a rename. Tables renamed to data products, without contracts, a catalog or global rules, are the fragmented silos the 2019 article warns against.

Adopt it gradually: start with two or three domains that have strong teams and demanding consumers.

The data mesh architecture diagram

Three stacked domain frames, Orders, Payments and Customers, each with a source system feeding a data product. Arrows carry tables, files and a stream to finance analytics and a churn model. Below, a platform row holds storage, global policies and a data catalog.

20 components · 9 connections

Open in Archboard
Diagram contents
  • Orders domain
  • Payments domain
  • Customers domain
  • orders DB
  • payment events
  • customer profiles
  • Orders data product
  • Payments data product
  • Customers data product
  • Finance analytics (BI)
  • Churn model (ML)
  • Storage + query engine
  • Global policies as code
  • Data catalog
  • CDC
  • event stream
  • nightly snapshot
  • orders_daily (SQL table)
  • settlements (SQL table)
  • payment_failures (event stream)
  • customer_profile (Parquet files)
  • discover, request access
  • checked before publish
A data mesh for an online store. Each domain team owns its source system and a data product with input and output ports. Consumers read only output ports, and a shared self-serve platform provides storage, a catalog and policy checks.

How to read it:

  • Three domain frames. Orders, Payments and Customers each hold an operational system and the data product the same team owns.
  • Edges into a data product are input ports: CDC from Postgres, an event stream from Kafka, a nightly snapshot from MongoDB.
  • Teal edges out are output ports, labeled with dataset and port type. Finance analytics reads two SQL tables; the churn model reads a stream and Parquet files. No consumer touches a source database.
  • The platform row holds shared storage, global policies and the catalog. Policies are checked before a product is published; consumers find data in the catalog.
  • Dashed edges are streams, discovery and policy checks. The Markdown block shows the orders_daily contract and example global policies.

Drawing data mesh diagrams clearly

  • Draw ownership, not technology. One frame per domain, with the source and the data product inside. The frame is the team.
  • Label every output port with the dataset and how it is read: table, files, stream or API.
  • Never draw consumers reading source databases. If it happens today, draw it as debt in a warning color.
  • Draw the platform once, underneath, not repeated in every domain.
  • Put governance where it acts: on the publish or CI step.
  • Keep one level per diagram. The pipeline inside a product belongs in its own diagram.

A common mistake is a hub with a big lake in the middle and every domain pointing at it: a central platform with new labels.

Build it in Archboard

  1. Sign in with Google or GitHub and create a diagram.
  2. Add three Frame nodes from the Core pack, stacked vertically: Orders domain, Payments domain and Customers domain.
  3. In the frames, add the sources from the Data pack: Postgres (orders DB), Kafka (payment events) and MongoDB (customer profiles).
  4. Next to each source, add a Container from the C4 Model pack for the data product. Fill in technology and owner, and connect the source with an edge labeled CDC, event stream or nightly snapshot.
  5. To the right, add a Data Warehouse from the Data pack (finance analytics) and a Model from the ML pack (churn model). Draw the output port edges with dataset and port type, and dash the event stream.
  6. Below the frames, add an Object Store from the Data pack, a Policy from the Security pack and a second Container for the data catalog. Draw dashed edges from the policy and from the churn model to the catalog.
  7. Add a Markdown block from the Core pack with the contract, and Core Text labels for the notes.

No converter reads a data mesh from code, but if you keep a Mermaid flowchart of your domains, the Mermaid converter turns it into an editable first draft.

The example uses 15 diagram nodes, within the Free plan.

FAQ

What is a data mesh? An approach in which the domain teams that produce analytical data own it and serve it as products, on a shared self-serve platform, under global rules the platform enforces.

What are the four principles of data mesh? Domain ownership, data as a product, a self-serve data platform and federated computational governance, meant to work together.

What is the difference between a data mesh and a data lake? A data lake is a storage architecture, usually run by a central team. A data mesh is an ownership model in which domains publish data products. A mesh can use a lake or lakehouse as its platform storage.

What is a data product in a data mesh? A deployable unit that bundles transformation code, data with metadata and infrastructure, with input ports, output ports, a contract, SLOs and a named owner.

When should you not use data mesh? When you have few sources and consumers, a small data team, no budget for a platform team, or domains without clear owners.

Start free — one seat, no credit card.

Related posts

← Back to blog

Open a canvas in a minute

Sign in with Google or GitHub. Free for a single seat. Upgrade when the team joins.