Data Mesh Patterns with dbt
📖 Scenario: You work in a company that uses data mesh principles to organize data ownership by domains. Each domain manages its own data models using dbt. Your task is to create a simple dbt model that follows data mesh patterns by defining a domain-specific source, a configuration variable for freshness, and a core transformation model that applies this freshness threshold.
🎯 Goal: Build a dbt project with a source definition for a domain dataset, a freshness threshold configuration, a transformation model that filters data based on freshness, and finally display the filtered results.
📋 What You'll Learn
Create a source configuration for the 'sales' domain with a table named 'orders'.
Define a freshness threshold variable called
freshness_days set to 30.Write a dbt model SQL that selects orders from the source where the order date is within the freshness threshold.
Print the final filtered orders in the model output.
💡 Why This Matters
🌍 Real World
Data mesh organizes data ownership by domains. Each domain manages its own data models with dbt, enabling scalable and autonomous data pipelines.
💼 Career
Understanding data mesh patterns with dbt is valuable for data engineers and analysts working in modern data platforms that emphasize domain ownership and modular data transformations.
Progress0 / 4 steps