User Tools

Site Tools


data-mesh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
data-mesh [2022-01-19 13:50] – created mrksdata-mesh [2025-01-13 11:59] (current) – mrks
Line 1: Line 1:
 ====== Data Mesh ====== ====== Data Mesh ======
  
-Personal insights and notes.+Resources, personal insights and notes. 
 + 
 + 
 +===== Resources ===== 
 + 
 +  * [[https://martinfowler.com/articles/data-mesh-principles.html|Data Mesh Principles and Logical Architecture – Zhamak Dehghani (2020-12-03, martinfowler.com)]] 
 +  * [[https://martinfowler.com/articles/data-monolith-to-mesh.html|How to Move Beyond a Monolithic Data Lake to a Distributed Data Mesh – Zhamak Dehghani (2019-05-20, martinfowler.com)]] 
 +  * [[https://www.infoq.com/presentations/data-mesh-concepts/|Data Mesh: an Architectural Deep Dive – Zhamak Dehghani (2021-11-26, infoq.com)]] 
 +  * [[https://www.thoughtworks.com/de-de/what-we-do/data-and-ai/data-mesh|Data Mesh (Thoughtworks)]] 
 +  * [[https://www.datamesh-architecture.com/|Data Mesh Architecture]] 
 +  * [[https://www.datamesh-governance.com/|Data Mesh Governance]] 
 +  * [[https://datameshlearning.com/|Data Mesh Learning]] 
 +  * [[https://datameshlearning.substack.com/|Data Mesh Learning Newsletter]] 
 +  * [[https://www.thoughtworks.com/insights/articles/data-mesh-in-practice-getting-off-to-the-right-start|Data Mesh in practice: Getting off to the right start (Part I)]] 
 +  * [[https://www.thoughtworks.com/insights/articles/data-mesh-in-practice-organizational-operating-model|Data Mesh in practice: Organizational operating model Data Mesh in practice: Organizational operating model (Part II)]] 
 +  * [[https://www.thoughtworks.com/insights/articles/data-mesh-in-practice-product-thinking-and-development|Data Mesh in practice: Product thinking and development (Part III)]] 
 +  * [[https://www.thoughtworks.com/insights/articles/data-mesh-in-practice-technology-and-the-architecture|Data Mesh in practice: Technology and the architecture (Part IV)]] 
 +  * [[https://www.innoq.com/en/blog/thoughts-on-a-canonical-data-model/|Why You Should Avoid a Canonical Data Model]] 
 +  * [[https://www.innoq.com/de/articles/2023/07/what-is-a-data-product/|What is a data product?]] 
 +  * [[https://www.thoughtworks.com/insights/articles/recommendations-for-a-successful-data-mesh-implementation|10 recommendations for a successful enterprise Data Mesh implementation]]
  
  
Line 40: Line 59:
  
 [[https://martinfowler.com/articles/data-mesh-principles.html|Data Mesh Principles and Logical Architecture – Zhamak Dehghani (2020-12-03, martinfowler.com)]] [[https://martinfowler.com/articles/data-mesh-principles.html|Data Mesh Principles and Logical Architecture – Zhamak Dehghani (2020-12-03, martinfowler.com)]]
 +
 +  * **Define data consumer roles**: e.g. data analyst, data scientist
 +  * Design **interfaces** to meet the data **consumer roles' needs**
 +  * It is more important to have a **sovereign data product** than to trade infrastructure synergies for dependencies.
 +  * **Domain-oriented teams own decentralized data products**
 +  * Data product consists of **code, data, metadata, and infrastructure**
 +  * Data products are **discoverable, secure, explorable, understandable and trustworthy**
 +  * The **quality** of data products **is measured in data quality, lead time to data consumption, data user satisfaction**
 +  * **Data infrastructure enables teams to be autonomous**
 +  * Teams can **autonomously build, deploy, execute, monitor and access their data product**
 +  * **Data products can be used in combination**
 +  * **The emergent graph of data products must be managed**
 +  * Data products have **independent lifecycles, builts, deploys and teams**
 +  * Data products must **interoperate to get value in forms of higher order datasets and insights**
 +
 +
 +===== Designing data products =====
 +
 +
 +[[https://martinfowler.com/articles/designing-data-products.html|Designing data products – Kiran Prakash (2024-12-10 martinfowler.com)]]
 +
 +  * "Data products **package structured, semi-structured or unstructured analytical data for effective consumption** and data driven decision making, keeping in mind specific user groups and their consumption pattern for these analytical data."
 +  * "One of the most prevalent misunderstandings is **conflating data products with data-driven applications**. Data products are natively **designed for programmatic access and composability**, whereas data-driven applications are primarily intended for human interaction and are not inherently composable."
 +  * "**No single data product should be owned by multiple domains**, as this can lead to confusion and finger-pointing over quality issues."
 +  * "While it's important to consider domain ownership early, **it’s often more efficient to have a single team develop all the necessary data products** to realise the use case at the start of your data mesh journey. Splitting the work among multiple teams too early can increase coordination overhead, which is best delayed. Our recommendation is to begin with a small, cohesive team that handles all data products for the use case. As you progress, use “team cognitive load” as a guide for when to split into specific domain teams."
 +  * "**Having a consistent blueprints for all data products will make this transition of ownership easier when the time comes**. The new team can focus solely on the business logic encapsulated within the data products, while the organization-wide knowledge of how data products are built and operated is carried forward."
 +  * "**For structured data, this usually means a single denormalized table**, and for semi-structured or unstructured data, a single dataset. Anything larger is likely trying to do too much, making it harder to explain its purpose in a clear, concise sentence and reducing its composability and reusability."
 +  * "In our experience, **it's beneficial for each data product identified earlier to have its own source control repository and associated deployment pipeline**, allowing for independent management of its lifecycle."
  
  
Line 45: Line 92:
  
 [[https://www.infoq.com/presentations/data-mesh-concepts/|Data Mesh: an Architectural Deep Dive – Zhamak Dehghani (2021-11-26, infoq.com)]] [[https://www.infoq.com/presentations/data-mesh-concepts/|Data Mesh: an Architectural Deep Dive – Zhamak Dehghani (2021-11-26, infoq.com)]]
 +
 +  * **Data products should not be monolithic** as data warehouses and data lakes.
 +  * **Follow domain-driven design**: Decouple architecture, data and data ownership by business domain
 +    * **Decomposition by business domain** necessary to manage business and technical complexity.
 +    * As with **microservices** one team should have a **slice of business functionality and data** while maintaining the full stack of their product.
 +  * **Create interfaces to the domain, capabilities and APIs**
 +  * **Data products offer a baseline usability**
 +  * Analytical APIs
 +    * **Provide historical data over time**
 +    * **Polyglot data** means that you might have many different spatial technologies of that time variant data.
 +      * Events for app developers
 +      * SQL for reporting
 +      * Columnar files for data scientists
 +    * **Design your API to be only read-only and be temporal time variant**. Data needs to be immutable, otherwise it would have cascading effects.
 +  * **A data product is an architectural quantum** consisting of
 +    * Code for
 +      * Transformations
 +      * Serving data
 +      * Embedding policies
 +    * Data
 +      * Actual data
 +      * Metadata
 +    * Storage
 +    * SLOs
 +    * Schema
 +    * Syntax and semantics
 +    * Documentation
 +    * Policy configuration
 +  * One operational system can have one or more data products
 +  * **Data products can be based on other data products creating a cascade**
 +  * **Multi-Plane data platform**
 +    * Utility plane
 +      * Orchestation and provisioning of Spark jobs
 +      * Creating a Kafka topic
 +      * Provisioning service accounts and storage accounts
 +    * Provisioning and management of the data product lifecycle
 +      * Declaratively create them
 +      * Read data products and versions
 +    * Consume
 +      * Product API
 +      * Schema
 +      * Semantics links to other data products they are related to
 +      * Browse and search data products
 +  * **Three layers of interconnectivity**
 +    * Flow of data between input and output ports, the lineage
 +    * Links between schemas, semantic links between the schema so that you can join this thing
 +    * Link of the data
 +
 +
 +
 +===== Governing data products using fitness functions =====
 +
 +[[https://martinfowler.com/articles/fitness-functions-data-products.html|Governing data products using fitness functions – Kiran Prakash (2024-09-05, martinfowler.com)]]
 +
 +  * Decentralization requires governance at scale
 +  * Small autonomous teams need more governance than a central team
 +  * "The term “data product“ has unfortunately taken on various self-serving meanings [...]"
 +  * Data product: [[https://www.oreilly.com/library/view/building-evolutionary-architectures/9781491986356/ch04.html|architectural quantum]]
 +  * "Smallest valuable unit of analytical data, sourced from data streams, operational systems, or other external sources and also other data products, packaged specifically in a way to deliver meaningful business value. It includes all the necessary machinery to efficiently achieve its stated goal using automation."
 +  * Fitness function
 +    * Test used to evaluate how close a given implementation is to its stated design objectives
 +    * Shift left on governance: identify potential governance issues early to enable proactive improvement
 +    * Prioritization
 +      * Goverance by rule over Governance by inspection
 +      * Empowering teams to discover problems over Independent audits
 +      * Continuous governance over Dedicated audit phase
 +    * Organization wide data catalog to index data products with rich metadata
 +  * Assertions within the catalog: Tools like Collibra and Datahub provide hooks
 +  * Assertions outside of the catalog
 +  * Assessing metadata with LLMs
 +  * Reporting of results
  
  
data-mesh.1642596649.txt.gz · Last modified: by mrks