All the architectures seen in this module answer technical questions: where the data is stored, with what guarantees, with what latency. But in large organizations a limit appears that no technology solves: people. A central data team that has to understand the sales, logistics, marketing and finance of the whole company ends up becoming a bottleneck, however good its lakehouse is.
This lesson presents the two most influential proposals of recent years for that problem. Data Mesh is an organizational answer: distributing responsibility for the data among the business domains. Data Fabric is a technological answer: an intelligent metadata layer that connects and automates. We will see what each one consists of, when they make sense and when they are overengineering, and we will verify that DataCorp, with two people, needs neither of them, although it already applies several of their ideas. The lesson closes the module with a summary table of all the architectures studied.
The organizational problem of the centralized platform
In a centralized platform, a single data team builds and operates everything: it ingests the sources of all the departments, models them and serves them. It is DataCorp's model, and at small scale it is the most efficient. As the organization grows, four symptoms appear:
| Symptom | What happens |
|---|---|
| Bottleneck | All requests go through one team; the waiting queue grows from days to months |
| Knowledge far from the data | The central team cannot master the business of twenty areas; it models data it does not fully understand |
| Disengaged producers | The teams that generate the data change their systems without warning: "data is the data team's business" |
| Diffuse accountability | When a figure is wrong, the central team fixes it downstream instead of it being corrected at the source |
The underlying pattern is the same one that led from monolithic software to microservices: a central team does not scale with the complexity of the business. Hiring more engineers for that team relieves the symptom for a while, but it does not change the structure that causes it.
Data Mesh: the four principles
Data Mesh, proposed by Zhamak Dehghani in 2019, is a sociotechnical approach: above all, it changes who is responsible for what. It rests on four principles that only work together.
| Principle | What it establishes | What problem it attacks |
|---|---|---|
| Domain ownership | Each business domain (sales, logistics, marketing) owns its analytical data and builds and operates it with its own team | The bottleneck and the distance from knowledge |
| Data as a product | Each domain publishes its data as a product, designed for its consumers, with quality and guarantees | Data delivered "as it comes out", with no owner |
| Self-service platform | A platform team offers the common infrastructure (storage, compute, orchestration, catalog) so that the domains do not have to build it | Each domain reinventing the infrastructure |
| Federated computational governance | The common rules (naming, security, quality, interoperability) are agreed by representatives of the domains and of the platform, and are enforced automatically, as code | Decentralization drifting into incompatible silos |
flowchart TB
subgraph DOM["Domains (owners of their data products)"]
V["Sales domain<br/>product: sales"]
L["Logistics domain<br/>product: stock"]
K["Marketing domain<br/>product: campaigns"]
end
V -->|"consumes"| K
L -->|"consumes"| V
P["Self-service platform<br/>storage · compute · orchestration · catalog"] --> V
P --> L
P --> K
G["Federated computational governance<br/>common rules enforced as code"] -.-> V
G -.-> L
G -.-> K
Three misunderstandings are worth clearing up:
- It is not a technology. It cannot be bought or installed. It can be built on a lakehouse, a warehouse or several.
- It is not anarchy. Without the fourth principle, decentralizing produces exactly the silos this course set out to fight.
- It does not eliminate the central team. It transforms it: it stops building everyone's data and moves on to building the platform and enabling others.
What a data product is
A data product is a dataset, together with everything needed to use it with confidence (documentation, schema, guarantees, access control and the code that produces it), that a domain offers to other consumers and is accountable for. The difference from "a table" is the same as that between a file someone hands you and a service with a manual, support and an availability commitment.
Six attributes are required of it:
| Attribute | What it means | How it is achieved |
|---|---|---|
| Discoverable | It can be found without asking anyone | Registered in the catalog |
| Addressable | It has a unique, stable name or address | Naming convention; permanent identifier |
| Trustworthy | It declares and meets service levels: freshness, quality, availability | Automated quality rules and published indicators |
| Self-describing | Its schema, its meaning and usage examples come with it | Dictionary, glossary, lineage |
| Interoperable | It combines with other products thanks to common standards | Shared keys, formats and dimensions |
| Secure | Access is controlled and sensitive data is protected | Roles, classification, masking |
A data product also has a data product owner, who decides how it evolves with the consumers in mind, and a lifecycle with versions.
Specification of a data product: "sales" at DataCorp
A product is described in a file that a machine can validate. The following example specifies DataCorp's "sales" product. Almost everything it contains was already defined in earlier modules: the specification merely brings it together.
# governance/products/sales.yaml
product: sales
version: 1.0.0
domain: sales
description: >
DataCorp's sales at order-line grain and their daily aggregates.
Official source of gross sales and net sales (POL-04).
# People: who is accountable for the product (lesson 03-01)
owner: [email protected] # chief financial officer
steward: [email protected]
custodian: [email protected]
# Output ports: what the product offers its consumers
outputs:
- table: consumption.fact_sales
grain: one row per order line
datasheet: governance/datasheets/consumption.fact_sales.yaml
- table: consumption.daily_net_sales
grain: sales_date, category, city
- table: consumption.daily_orders
grain: order_date, city
metrics: # defined in metrics/sales.yaml
[gross_sales, net_sales, total_orders, valid_orders,
avg_order_value, cancellation_rate]
# Input ports: what it depends on
inputs:
- contract: contracts/postgres.orders.yaml # orders in the replica before 01:00
- product: customers # conformed dimension dim_customer
- product: products # conformed dimension dim_product
# Service levels the product commits to meeting
service_levels:
freshness: D+1 before 07:00 # RQ-04
availability: 99.5% during business hours # RQ-06
min_quality_index: 98 # lesson 03-03
quality_rules: [DQ-01, DQ-02, DQ-03, DQ-04, DQ-05, DQ-06, DQ-07, DQ-08]
# Security and compliance (lessons 03-01 and 03-04)
classification: confidential
personal_data: true
access:
roles: [role_analyst, role_bi_service]
note: customer data is queried through consumption.v_dim_customer
retention_months: 72
# Status
certified: true
associated_dashboard: dashboard.sales
code: datacorp-data/transformations/How each block covers the six attributes:
- Discoverable and addressable: the file lives in the
datacorp-datarepository, next to the datasheets, and theconsumption.*names are stable by convention (POL-02). - Self-describing:
description,grain, the datasheet of each table and the metrics with their definition. - Trustworthy:
service_levels, backed by the DQ rules that run on every load and by the "Data updated as of" caption on the dashboards. - Interoperable: the
inputsdeclare the conformed dimensions it shares with other products. - Secure:
classification,accessandretention_months. version: a breaking change (dropping a column, changing a definition) requires publishing a new version and notifying the consumers, just as with a data contract.
The specification adds no technical work: it is Module 3 and Module 5 seen from the consumer's side. That change of viewpoint is the most usable contribution of Data Mesh, even for those who do not adopt it.
Team topologies
A mesh redistributes people into four types of team:
| Team | Composition | Responsibility |
|---|---|---|
| Domain teams | Business people with data engineers and analysts of their own | Building, operating and evolving the data products of their domain |
| Platform team | Data and infrastructure engineers | Offering the self-service infrastructure as an internal product |
| Enabling team | Specialists (architecture, modeling, quality) | Temporarily helping the domains acquire capabilities; it does not do their work |
| Federated governance group | Representatives of the domains, the platform, security and compliance | Agreeing the global standards and automating their enforcement |
The practical consequence is one of staffing: each domain needs data people. An organization with six domains needs, at a minimum, six small teams capable of building products, plus the platform team. That is why the mesh is a model for large organizations.
When a mesh makes sense and when it is overengineering
| Signs in favor | Signs against |
|---|---|
| Many business domains, complex and different from one another | Few domains, well understood by a small team |
| Saturated central team, with queues of weeks or months | The central team handles requests on time |
| The domains have, or can hire, data people | There are no engineers or analysts in the domains |
| Product culture and autonomous teams (e.g., microservices) | Very hierarchical organization or one with little data maturity |
| Platform and automated governance already mature | There is still no catalog, quality or common definitions |
| Dozens of people dedicated to data | Fewer than ten |
Adopting a mesh without the problem it solves is organizational overengineering: it multiplies roles, meetings and infrastructure without relieving any bottleneck, and it fragments knowledge that fit in two heads. And adopting it without automated governance or a platform takes you back to square one: silos, now with a modern name.
Data Fabric
Data Fabric, a concept promoted mainly by market analysts and software vendors, starts from the same problem (scattered data, slow integration) and attacks it from the technology side: a unified layer, on top of all the organization's data systems, that uses metadata to automate discovery, integration, governance and access, wherever the data is.
Its four pillars:
| Pillar | What it is | What it provides |
|---|---|---|
| Active metadata | Metadata that is collected continuously (schemas, lineage, usage, quality) and that triggers actions, instead of merely documenting | Detecting a schema change and notifying those affected; recommending datasets; classifying personal data automatically |
| Knowledge graph | The metadata is organized as a graph that relates datasets, business terms, people, processes and policies | Answering "what data do we have about customers, who uses it and which rules apply to it?" |
| Virtualization | Querying the data where it resides, without copying it, through a common access layer (the federation of lesson 03-05) | Unified access without waiting for an integration to be built |
| Automated integration | Assisted generation, often with machine learning, of mappings, load processes and quality rules | Less manual engineering work |
Active metadata is the central idea. In lesson 03-02 we distinguished between documenting metadata and collecting it automatically; a fabric goes one step further and makes the metadata govern the platform. DataCorp's governance/collect_metadata.py script and the datasheet validator are minimal, handmade versions of the same idea.
Its risks: it depends to a large extent on broad, costly commercial products, with the resulting risk of vendor lock-in; it promises an automation that only works if the starting metadata is good; and virtualization shifts the query load to the source systems, which clashes with requirements such as DataCorp's RQ-07.
Mesh, Fabric and centralized platform
| Centralized platform | Data Mesh | Data Fabric | |
|---|---|---|---|
| Nature | Organizational and technical: one team, one platform | Sociotechnical: a model of organization and responsibility | Technological: a layer of metadata, integration and access |
| Focus | Efficiency and consistency | Scaling with the complexity of the business by decentralizing ownership | Automating and unifying access to scattered data |
| Who builds the data | The central team | The domains | The central team, assisted by automation |
| Requirements | A competent team; a manageable scope | Organizational maturity, data people in the domains, self-service platform, governance as code | Quality metadata; investment in tools; connectable systems |
| Risks | Bottleneck as it grows | Silos and inconsistency if governance fails; coordination cost; duplicated effort | Vendor lock-in; inflated expectations; virtualization performance |
| Typical scale | Small and medium | Large | Medium and large, with many heterogeneous systems |
They can be combined. Since one acts on the organization and the other on the technology, they are not mutually exclusive alternatives: a mesh needs a self-service platform and automated governance, and the capabilities of a fabric (active catalog, lineage, automatic classification) are good candidates for providing them. And a centralized platform can adopt ideas from both without changing its model, which is exactly what DataCorp will do.
Application to DataCorp and ADR-016
Diagnosis
DataCorp has five domains, five sources, about 40 users and two data people (RQ-13). There are no engineers in the domains: Laura, Elena, Dani and Pilar are business stewards, not pipeline builders. There is no queue of requests because the platform does not exist yet. A mesh would spread across five domains work that two people do; a fabric would mean an investment in tools incompatible with RQ-12 and would solve a dispersion that DataCorp, with a single lakehouse, does not have.
What DataCorp does have is several ideas from the mesh, adopted without calling them that:
| Data Mesh idea | What DataCorp already applies | Difference from a mesh |
|---|---|---|
| Domain ownership | Five domains with an owner and a steward (ADR-005) | The domain is accountable for meaning and quality, but does not build the data: the central team does |
| Data as a product | Certified tables, datasheets, official metrics, dashboards with an owner (ADR-014) | They had not been brought together in a product specification |
| Contracts | contracts/postgres.orders.yaml at the boundaries between teams |
The same |
| Computational governance | Datasheets and policies as code, validated automatically | It is not federated: Marta coordinates it with the monthly committee |
| Self-service platform | Analysts help themselves in consumption with SQL and Metabase |
Self-service for consumption, not for production |
ADR-016
ADR-016: Centralized platform with data product practices;
Data Mesh and Data Fabric are not adopted
Status: accepted Date: 2026-12-16
CONTEXT
Two data people (RQ-13), five domains with no technical staff of their
own, a single lakehouse (ADR-015) and a budget of 4,000 EUR/month (RQ-12).
Governance is hybrid and expressed as code (ADR-005).
DECISION
1. The platform is built and operated centrally by the data team. The
domains keep ownership of meaning, definitions and quality (ADR-005).
2. The certified datasets of each domain are described as data products
in governance/products/<product>.yaml, bringing together existing
datasheets, contracts, metrics and service levels. Initial products:
sales, customers, products, stock, campaigns, browsing and issues.
3. Data Mesh is not adopted and no Data Fabric platform is acquired.
ALTERNATIVES CONSIDERED
A. Data Mesh. Rejected: there is no bottleneck and no data staff in the
domains.
B. Commercial Data Fabric. Rejected: cost and complexity with no
dispersion problem to solve; virtualization contradicts RQ-07.
CONDITIONS FOR RECONSIDERING DECENTRALIZATION
- The queue of requests to the data team exceeds 4 weeks on a sustained
basis despite prioritization.
- The data team grows beyond 8 people.
- Two or more domains bring in data engineers or analysts capable of
building and operating their own models.
- Separate data platforms that have to be connected are added through
acquisition or expansion (a sign to consider a fabric).
CONSEQUENCES
Positive: a single team, a single way of doing things, minimal
coordination cost. The products already specified would make it easier
to hand their construction over to a domain.
Negative: the central team is a single point of dependence; its capacity
limits the pace of new use cases.If the conditions were met, the first step would not be "implementing a mesh", but the smallest one possible: having the best-prepared domain take over the dbt models of its product within the same repository and the same platform, with the same automatic rules.
Module summary: which architecture for which problem
| Architecture | Problem it solves | When to choose it | At DataCorp |
|---|---|---|---|
| Data lake (06-02) | Cheaply storing any data in its original form and deciding later | Large volumes, varied data, data science, raw archive | Yes: raw and cleansed zones |
| Data warehouse (06-03) | Serving integrated, historical, reliable data to BI, with performance and governance | Business analysis on structured data; many users; very low latencies | Its principles and its modeling, yes; as a separate system, no |
| Data lakehouse (06-04) | Avoiding the double copy: warehouse guarantees on the lake's storage | You want BI and open data with a single copy and a small team | Yes: overall architecture (ADR-015) |
| Lambda (06-05) | Combining an exact history and data that is seconds old with two paths | Heavy history plus a real need for real time | No; planned evolution if a case requiring seconds appears |
| Kappa (06-05) | The same, with a single streaming path | Data that is natively events, real-time consumption and an expert team | No |
| Batch + micro-batches (04-03) | Freshness from minutes to a day with minimal complexity | No requirement below a few minutes | Yes (ADR-010) |
| Data Mesh (06-06) | The central team as an organizational bottleneck | Large organization, many domains with data staff of their own | No; it adopts the data product idea (ADR-016) |
| Data Fabric (06-06) | Data scattered across many systems; slow, manual integration | Many heterogeneous systems and a budget for automating with metadata | No; it applies metadata as code at small scale |
The rows do not compete with one another: they answer different questions. The first three deal with where and how the data is stored; the next three, with how it is processed over time; the last two, with how the work is organized. A real architecture chooses one answer in each group, and DataCorp's is: lakehouse, batch and micro-batches, centralized platform.
Common Mistakes and Tips
- Treating Data Mesh as a product you install. It is an organizational change; no tool delivers it ready-made.
- Decentralizing without automated governance. The result is silos with a better reputation.
- Adopting a mesh to look modern. With a small team and no bottleneck, it adds coordination and removes no problem.
- Calling any table a data product. Without an owner, service levels and documentation it is just a table.
- Expecting a fabric to fix nonexistent metadata. Automation amplifies what is there: if there are no definitions or owners, there is nothing to automate.
- Virtualizing everything. Querying the sources live shifts the analytical workload to the operational systems.
- Framing it as "mesh versus fabric". They act on different planes and can coexist.
- Tip: adopt the product mindset from the start (owner, consumer, guarantees, version). It is useful at any scale and leaves you ready for a future decentralization.
- Tip: write down the conditions that would make you change your organizational model, just as technical thresholds are written down.
Exercises
Exercise 1: Mesh, fabric or centralized?
Recommend an approach for each organization and justify it:
- A banking group with 12 business areas, 150 people dedicated to data, autonomous product teams and a central team with a six-month queue.
- A chain of clinics with 60 employees and a single analyst.
- A manufacturing company that has grown through acquisitions and has nine different ERPs, three data warehouses and no reliable inventory of what data exists.
Exercise 2: Specifying a data product
Write the summary specification of DataCorp's stock data product (fields product, domain, owner, steward, outputs, inputs, service_levels, classification and personal_data), drawing on what was decided in earlier lessons.
Exercise 3: Unmet attributes
A team publishes a table tmp_sales_ok_v3 in a personal schema, with no documentation, which is updated "when someone remembers", and announces by email that it can now be used. Which attributes of a data product does it fail to meet, and what would have to be done about each one?
Solutions
Exercise 1
- Data Mesh. It shows all the signs: many domains, plentiful data staff, a culture of autonomous teams and a real bottleneck. It will need a self-service platform and automated federated governance; the capabilities of a fabric can help build them.
- Centralized platform, and a small one. There is nothing to decentralize and no dispersion that would justify a fabric.
- Data Fabric, or at least its first step: a catalog with automatically collected metadata, to find out what is there, followed by a common access layer. The problem is one of technological dispersion, not of organization; consolidating nine ERPs would take years.
Exercise 2
# governance/products/stock.yaml
product: stock
domain: products_inventory
owner: [email protected] # Operations director
steward: [email protected]
outputs:
- table: consumption.current_stock # product_id, warehouse, stock, read_time
- table: consumption.fact_daily_inventory # daily snapshot product x warehouse
inputs:
- source: ERP API (stock levels, every 10 min)
- source: ERP nightly CSV (inventory snapshot, 03:00)
- product: products # xref_product: ERP SKU <-> product_id
service_levels:
stock_freshness: 15 minutes maximum # RQ-04
daily_snapshot_freshness: D+1 before 07:00
classification: internal
personal_data: falseKey points: the product has two outputs with different freshness levels, and both have to be declared; it depends on the products product to translate the ERP's SKUs; and it contains no personal data, so its classification is lower than that of sales. Common mistake: forgetting the inputs. Without them, no impact analysis can be done when the ERP changes its API.
Exercise 3
- Discoverable: it is not in the catalog; only those who received the email know about it. It has to be registered with its datasheet.
- Addressable: the name (
tmp_,_v3) and the personal schema are not stable. It has to be published inconsumptionwith a name that follows the convention. - Trustworthy: "when someone remembers" is not a service level. It has to be integrated into the orchestrator, with a declared freshness and quality rules.
- Self-describing: no documentation. A description, the grain and the definition of the columns have to be added.
- Interoperable: it is not known whether it uses the common dimensions and keys. That has to be checked.
- Secure: a personal schema falls outside the role model. It has to be classified and granted permissions by role.
It fails all six. And there is a prior problem: it probably duplicates the sales product, with a definition of its own. The first thing to do is find out what need the official product was not covering.
Conclusion
Data Mesh and Data Fabric respond to the same limit, that of centralized platforms when the organization grows, from different planes. Data Mesh is a sociotechnical model based on four principles (domain ownership, data as a product, self-service platform and federated computational governance) and requires the domains to have data people; its most transferable contribution is the data product, with its six attributes and its specification. Data Fabric is a technological approach that uses active metadata, a knowledge graph, virtualization and automated integration to connect scattered data. They are not mutually exclusive, and neither is mandatory: DataCorp, with two people and a single lakehouse, keeps a centralized platform (ADR-016), describes its certified data as products and leaves in writing the signs that would justify decentralizing.
This lesson brings Module 6 to an end. DataCorp now knows which architecture it is building and why: it does not have Big Data, but it applies its principles; its storage is a data lake to which open table formats give the guarantees of a data warehouse, that is, a lakehouse with Iceberg tables and a managed, serverless SQL engine; it processes in batch and micro-batches, with no need for Lambda or Kappa, and it is organized as a centralized platform that treats its data as products. The target architecture is complete and drawn, but only on paper: sixteen documented decisions and not a single piece of data loaded. Taking it to production with two people, a limited budget and a company that cannot stop running in the meantime requires deciding where to start, in what order and with what risks. That is the subject of Module 7, devoted to implementation and maintenance, which begins with implementation planning.
