<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Frederic Vanderveken on Medium]]></title>
        <description><![CDATA[Stories by Frederic Vanderveken on Medium]]></description>
        <link>https://medium.com/@frederic1vanderveken?source=rss-8a8875e209a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TsPwNR9m_zUgPNQpkd2anw.jpeg</url>
            <title>Stories by Frederic Vanderveken on Medium</title>
            <link>https://medium.com/@frederic1vanderveken?source=rss-8a8875e209a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:37:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@frederic1vanderveken/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A 5-step approach to improve data platform experience]]></title>
            <link>https://medium.com/datamindedbe/a-5-step-process-to-improve-data-platform-experience-4554d0bb7be9?source=rss-8a8875e209a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4554d0bb7be9</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[platform-strategy]]></category>
            <category><![CDATA[data-platforms]]></category>
            <category><![CDATA[developer-experience]]></category>
            <category><![CDATA[user-centered-design]]></category>
            <dc:creator><![CDATA[Frederic Vanderveken]]></dc:creator>
            <pubDate>Tue, 13 May 2025 09:20:37 GMT</pubDate>
            <atom:updated>2025-05-13T15:13:57.877Z</atom:updated>
            <content:encoded><![CDATA[<h4>A guide to turning user feedback into continuous platform improvement.</h4><p>In data-centric organizations, data is integrated into everyday workflows to accelerate decision-making, improve operational efficiency, and unlock new opportunities for innovation and value creation. At the heart of this integration lies the data platform. It’s the foundation that enables teams across the enterprise to access, process, and transform data into insights.</p><p>As data maturity grows, so does platform adoption, leading to an increasing focus on the <em>experience</em> of its users. This experience, often referred to as user experience (UX) or developer experience (DevEx, DX), determines how effectively data practitioners can navigate tools and processes to deliver value.</p><p>Research consistently shows that investing in a high-quality user and developer experience not only boosts productivity but also drives measurable business outcomes [1–5]. As more users engage with the platform and its influence on business outcomes becomes clearer, a critical question arises: <em>how to establish a systematic process to continuously keep improving the data platform experience</em>?</p><h3>Three principles for a great platform experience</h3><p>Designing a great platform experience means looking beyond technical capabilities and focusing on how users get work done. Whether they’re discovering data, building pipelines, training models, or monitoring production systems, the goal is to make those tasks more productive, impactful, and satisfying.</p><p>Research has shown that the developer experience can be distilled into three core dimensions [3]:</p><p><strong>Feedback loops:</strong> fast iteration and immediate validation help users learn, build, and debug quickly. Best practices:</p><ul><li>Optimize CI/CD processes to reduce build and test times.</li><li>Streamline human handoffs, eg, establishing SLAs for code reviews and approvals.</li><li>Reduce support dependency by granting developers sufficient debugging access.</li></ul><p><strong>Cognitive load:</strong> clear interfaces and streamlined processes reduce mental overhead. Best practices:</p><ul><li>Standardize tooling and frameworks.</li><li>Provide intelligent defaults and reduce unnecessary choices left for the user.</li><li>Keep documentation concise, up-to-date, and discoverable.</li></ul><p><strong>Flow state:</strong> reliable tools and autonomy allow users to stay focused and engaged. Best practices:</p><ul><li>Protect focus time and reduce context-switching.</li><li>Offer self-service capabilities to empower users to build without the need for approvals.</li><li>Align work with meaningful challenges to explore new ideas and energise developers.</li></ul><p>These dimensions provide a model for understanding the platform experience. By embedding these best practices into the platform design principles, high user satisfaction can be achieved from the start.</p><p>However, even the most thoughtfully designed platforms won’t anticipate every need or eliminate all friction. Users will always encounter challenges, identify gaps, or come up with new ideas to improve their workflows. That’s why it’s important to build a systematic approach to capture, analyze, and act on user feedback.</p><h3>The responsibility of the user experience team</h3><p>The user experience team (or sometimes just a dedicated person or the product owner) should be the owner of the process to continuously track and address user needs. This team acts as the engine behind a better platform experience and has two essential goals:</p><ul><li>Ensuring the platform team works on the right topics to improve the user experience.</li><li>Building and maintaining trust between the platform team and its users.</li></ul><p>This engine doesn’t implement the solutions. The ownership of the solutions should remain with the platform development team. Instead, the engine identifies the most important user challenges, communicates them to the development team and makes its progress transparent.</p><h3>A five-step process to improve the platform experience</h3><p>Improving the data platform experience is not a one-off project. It should become a continuous part of how the platform team operates. In the following, a step-by-step guidebook is presented on how to build a successful user experience program. It consists of the following steps:</p><ol><li><strong>Bootstrap the initiative:</strong> Set clear goals, secure leadership support, and dedicate resources.</li><li><strong>Understand the platform users</strong>: Gather user feedback, identify root causes and assess their impact.</li><li><strong>Discover and prioritise solutions:</strong> Identify what’s possible and prioritize the solutions based on user value and effort.</li><li><strong>Drive ownership and follow-up</strong>: Assign owners, support delivery, communicate progress, and track adoption.</li><li><strong>Measure Outcomes:</strong> Define success metrics and compare before-and-after data to validate impact.</li></ol><p>Note that steps 2–5 are not a one-off exercise. Instead, they should be continuously repeated because everything is always changing.</p><blockquote>Improving platform experience is not a project, it’s a continuous process.</blockquote><p>Embedding these steps into the platform team’s operating model ensures a consistent enhancement of the platform experience. In the next sections, the different steps are explained in more detail, together with a checklist of deliverables required before proceeding to the next step.</p><h3>1. Bootstrap the initiative</h3><p>The new initiative should start with the simple but powerful question: <em>Why do we want to improve the platform experience?</em> The answer forms the vision that should guide every decision that follows. For some organizations, it might be about retaining top talent. Others might focus on boosting developer productivity or accelerating revenue-generating projects. Whatever the reason, the vision must be clear, relevant, and aligned with the organization’s broader goals.</p><p>It’s essential that the leaders align on the vision and communicate the “<em>why</em>” to the people. They should actively advocate for it to unlock buy-in, momentum, and a sense of shared purpose.</p><p>The next step is to appoint someone to lead the initiative. This person’s job is to connect people, insights, and actions. For this, the ability to build trust, understand the technical landscape and user workflows is required. This person doesn’t need to have all the answers on day one, but does need the credibility, influence, and drive to connect the dots and keep the platform experience program alive.</p><p><strong>Deliverables:</strong></p><ul><li>A clear vision that outlines why the platform experience needs to improve.</li><li>Platform users are aware of and understand the vision.</li><li>Someone is assigned to lead the initiative.</li></ul><h3>2. Understand the platform users</h3><h4>a) Identify the platform personas</h4><p>Before improving the platform experience, first, it needs to be clear <em>who</em> the platform is designed for. A data platform typically supports a wide range of users, each with distinct responsibilities, workflows, and expertise. These different user types are called personas.</p><p>Understanding personas is crucial because user complaints about the platform might stem from groups outside its intended audience. Clear persona mapping ensures we’re addressing the right users, avoiding miscommunication, and accurately prioritizing improvements based on their actual needs.</p><p>Common data platform personas include:</p><ul><li><strong>Data Engineers:</strong> Build and maintain data pipelines.</li><li><strong>Data Scientists:</strong> Develop machine learning models and experiments.</li><li><strong>Data Analysts:</strong> Explore and interpret data to support business decisions.</li><li><strong>Data Stewards:</strong> Manage data quality, lineage, and access.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tFTZVppTvTUxKMuLqpDITA.png" /><figcaption>Example personas acting on a data platform.</figcaption></figure><p>In large organizations, these personas often fragment even further. The needs of a data engineer working on real-time systems can look very different from one focused on batch processing. Likewise, analysts from marketing, finance, or operations may all interact with the platform in unique ways.</p><blockquote>Understanding these personas is the essential first step. Without knowing who the users are and how they work, it is impossible to design an experience that truly meets their needs.</blockquote><p><strong>Deliverables:</strong></p><ul><li>A list of personas with their respective goals.</li><li>The number of users per persona type.</li></ul><h4>b) Create a journey map for every persona and goal</h4><p>With the personas identified, the next step is to understand what they do and how they do it. This is where journey mapping becomes useful.</p><p>For each combination of persona and goal, create a detailed journey map. This map should capture the full workflow, step by step, from the initial intent to the final result. Include every task the user performs, the tools they use, and the touchpoints involved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*ggQqJaHmqANli_zHxSJ4OQ.png" /><figcaption>Example developer journey map [6]</figcaption></figure><p>On a data platform, no user operates in a vacuum. An important part of the platform is to facilitate governance and communication across personas. A data scientist may need approval from a data steward. A machine learning engineer might depend on an infrastructure team to deploy a model. These cross-persona interactions are often where friction and bottlenecks occur. Therefore, we also recommend focusing on these interfaces:</p><ul><li>Capture both the individual steps and the handoffs between personas.</li><li>Identify where governance actions, reviews, or approvals take place.</li></ul><p>Once several journeys are mapped out, look across them for patterns:</p><ul><li>Are certain tasks repeated across different personas?</li><li>Which tasks have a lot of dependencies?</li><li>Which personas have a lot of dependencies?</li></ul><p>These insights might help identify shared bottlenecks, critical dependencies and high-impact areas for improvement.</p><p><strong>Deliverables:</strong></p><ul><li>A set of journey maps for every &lt;persona, goal&gt; combination.</li><li>A list of common tasks and critical dependencies.</li></ul><h4>c) Understand user needs and frustrations</h4><p>With journey maps in hand, the next step is to uncover where and why users experience friction. To discover the user needs and frustrations, we recommend gathering feedback in both pull- and push-based approaches.</p><p>The <strong>push-based approach</strong> allows users to directly share feedback with the platform team. For this to work, there must be a simple and accessible way for users to submit their input. This can be through a feedback form, a Jira ticket, a Teams channel, or any other preferred method. Regardless of the medium, it is helpful to provide users with a feedback template. A template helps users structure their input and reduces the chance of receiving incomplete requests. The template can include questions such as:</p><ul><li>What aspect or feature of the product are you giving feedback on?</li><li>What is the feedback?</li><li>What is the impact on your workflow or productivity?</li><li>How frequently do you encounter this situation?</li><li>Do you have suggestions on how we could improve this?</li></ul><p>The <strong>pull-based approach</strong> is about actively pulling information from the platform users. For this, it is recommended to combine qualitative and quantitative methods. The qualitative methods help to discover new problems, and the quantitative methods validate and measure the extent of these problems. Both perspectives are essential for building a full picture.</p><p><strong>Qualitative methods</strong> try to probe the perception of the users to understand their experiences, pain points, and ideas. These insights are rich, nuanced, and often reveal issues you wouldn’t find through metrics alone. Common methods are conducting interviews and running surveys with users across different personas.</p><p>Best practices for survey and interview questions:</p><ul><li>Use open-ended questions to allow for nuanced responses.</li><li>Avoid compound questions (two questions in one) to reduce confusion.</li><li>Ask users to describe actual scenarios and concrete examples.</li><li>Probe issue severity and filter small annoyances from high-impact blockers by asking follow-up questions such as:</li><li><em>How often does this problem occur?</em></li><li><em>How much time does your current workaround take?</em></li><li><em>Have you already explored or requested a fundamental solution before?</em></li></ul><p><strong>Quantitative methods</strong> focus on metrics and telemetry that show how users interact with the platform. Example metrics include:</p><ul><li>Build and test durations: long cycles can indicate broken feedback loops.</li><li>Time to onboard: long onboarding times typically point to high cognitive load or poor documentation.</li><li>Incident response or debugging time: delays may break flow and cause user frustration.</li></ul><p>Note that these metrics need to be tailored to your platform’s capabilities and the specific tasks your personas perform. For example, a metric that tracks time spent on data discovery might be relevant for analysts but not for ML engineers.</p><p>In a later section, we dive deeper into collecting insights from metrics.</p><h4><strong>d) Identify and prioritise root causes</strong></h4><p>The previous methods to gather information are essential to get an overview of the user’s needs and frustrations. However, this input typically reflects the many symptoms of a small number of big problems. The next step is to trace the input back to the fundamentals and identify potential systemic root causes. Often, a handful of systemic issues, such as lack of documentation, unclear ownership, or inconsistent tooling, create a ripple effect across many different workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*PvUhKREXAqos-GadrWecdg.png" /><figcaption>Search for the root causes that cause the symptoms [7]</figcaption></figure><p><strong>💡 Tip</strong>: to make sense of user feedback, leverage the three dimensions: feedback loops, flow state, and cognitive load. Look for delays in responses or reviews that break momentum, interruptions or context switching that disrupt focus, and complex processes or unclear tools that increase mental effort. Most user issues fall within one or more of these dimensions. Hence, using this model helps in quickly categorizing problems and might help in root cause discovery.</p><p><strong>Deliverables:</strong></p><ul><li>Users have access to a simple tool or process to submit feedback.</li><li>A list of interview and survey questions</li><li>A prioritised list of user needs, each with its root cause(s) and estimated impact</li></ul><h3>3. Discover and prioritise solutions</h3><h4>Solution discovery</h4><p>Once user problems have been identified, analyzed, and prioritized, it’s time to move into the solution discovery phase. This is where user needs are translated into potential platform improvements. This phase typically involves collaboration with engineering teams to share findings from the user research and brainstorm for solutions. As solutions are explored, user needs can be grouped into three different categories:</p><ul><li>a) User needs/frustrations conflicting with platform principles or compliance.</li><li>b) Known user issues already in progress.</li><li>c) New or unresolved user needs.</li></ul><p><strong>a) User needs/frustrations conflicting with platform principles or compliance</strong></p><p>Some user requests will conflict with the foundational design of the platform or compliance regulations. For example, users might suggest implementing role-based access control (RBAC) because it feels familiar. However, the platform may intentionally use purpose-based access control (PBAC) to meet specific regulatory or security requirements. In these cases, it’s crucial to understand the underlying frustration:</p><ul><li>Is the real issue the complexity of managing permissions?</li><li>Is role-switching in PBAC slow or unintuitive?</li><li>…</li></ul><p>Rather than dismissing these needs outright, dig into the root causes to uncover alternative solutions that may still improve the experience. In addition, transparency to the user is also vital. Clearly communicate why certain architectural decisions were made and which aspects of the platform are non-negotiable. This helps users distinguish between fixed constraints and areas open to change.</p><p><strong>💡 Tip</strong>: don’t use “industry constraints” as a blanket excuse to avoid change. In regulated environments, it’s easy to point to compliance as a blocker. However, meaningful improvements are often still possible within those constraints.</p><p><strong>b) Known issues already in progress</strong></p><p>Sometimes, users will raise problems that are already being addressed by the platform team. In this case, the root cause is typically a lack of communication between the platform team and the users. This is an opportunity to improve the communication process:</p><ul><li>Share updates on the solution’s status and expected delivery timelines.</li><li>Validate that the current solution will actually solve the user’s need.</li><li>Manage expectations and ensure users feel heard and informed.</li></ul><p><strong>New or unresolved user needs</strong></p><p>For issues that aren’t yet on the platform team’s roadmap, a deeper investigation is required. This investigation can involve brainstorming sessions, building POCs to eliminate uncertainties and doing cross-team consultations to learn from other domains or departments that have already solved similar challenges.</p><p>In this category, it’s important to assess both the feasibility and impact of the solution. Estimating development effort alongside the potential gain allows the platform team to prioritize effectively and make informed trade-offs.</p><p><strong>Deliverables:</strong></p><ul><li>A list of user needs that conflict with platform principles or compliance.</li><li>A list of user needs currently being addressed, including status updates and estimated delivery timelines.</li><li>A list of “new” user needs, with a short solution description, an estimated implementation effort and an expected impact.</li></ul><h4>Prioritization of solutions</h4><p><strong>Prioritization within the user experience scope</strong></p><p>With a clear list of problem-solution pairs (each with estimated impact and effort) we’re ready to prioritize. We recommend the Impact vs Effort matrix mapping, which helps visualize and categorize initiatives:</p><ul><li><strong>Quick wins:</strong> High impact, low effort. Prioritize these to build momentum.</li><li><strong>Strategic bets:</strong> High impact, high effort. Worth the investment but requires planning and alignment.</li><li><strong>Incremental improvements:</strong> Low impact, low effort. Useful for steady progress.</li><li><strong>Money pits:</strong> Low impact, high effort. Avoid or deprioritize.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*jSKCDxaspa34pfbIGr3p3A.png" /><figcaption>Impact vs Effort matrix</figcaption></figure><p>Keep in mind that the Impact vs. Effort matrix is a simplification. In reality, prioritization is more nuanced and involves additional dimensions such as urgency, user learning curves, implementation timelines, and previous initiatives. Nevertheless, this simplified matrix provides clear guidance, aiding prioritization and preventing frustration or misaligned expectations.</p><p>Once initiatives are mapped, we recommend the following principles to move from ideas to results:</p><ul><li>Start small, deliver fast: Don’t try to solve everything at once. Focus on a few high-leverage improvements and deliver them quickly. Reducing work-in-progress (WIP) keeps teams agile and gives users visible progress to build trust.</li><li>Prioritise deliberately: Be strategic in what you tackle first. Quick wins are great for immediate value, but also consider initiatives that align closely with company priorities or unlock broader platform improvements. Keep an open mind, don’t let the platform experience become an isolated goal.</li></ul><p><strong>Prioritization within the data platform scope</strong></p><p>It’s important to keep in mind that the work identified from the platform experience track is only a part of the full platform story. There are three main work input flows:</p><ul><li>Top-down initiatives: typically determined by managers and executives.</li><li>Bottom-up initiatives: typically determined by the engineers building the data platform.</li><li>User-requested initiatives: typically determined by user complaints or needs.</li></ul><p>It’s important to have a clear view of the platform’s strategic direction as a whole and the contribution of each of these three flows. As a result, the initiatives originating from the users cannot all be implemented at once and therefore, quantification and prioritisation are of utmost importance.</p><p><strong>Deliverables:</strong></p><ul><li>An impact vs effort map of all the user needs.</li><li>A prioritised list (or roadmap) of initiatives to be tackled</li></ul><h3>4. Drive ownership and follow-up</h3><p>Once the priority is determined, initiatives can be launched. For this, it is essential to assign clear ownership of every problem-solution pair. Every initiative should have a named owner responsible for execution, stakeholder updates, and tracking success. Ownership ensures accountability and keeps progress moving.</p><p>In addition, it’s crucial to keep the users in the loop. Be transparent and honest with the users. If something is deprioritised, explain why. If something is added to the agenda of the development team, keep them up to date about the progress and provide an estimation of the new delivery date. This builds trust between the developers and the users of the data platform. Also, keep tight feedback loops with the users and work iteratively on the solution to ensure that the solutions really solve the users’ needs and frustrations.</p><p><strong>💡 Tip</strong>: Communicate wins widely: Don’t just ship, but celebrate. Share successes broadly to show momentum, boost morale, and reinforce the platform team’s role as an enabler. When users see their feedback turning into tangible improvements, engagement increases.</p><p><strong>Outcomes:</strong></p><ul><li>Clear initiative owners.</li><li>Communication plans to keep stakeholders aligned.</li></ul><h3>5. Measure outcomes</h3><p>To ensure that efforts are delivering real impact, it’s recommended to measure progress against the originally defined goals in the vision. Measurements help validate what’s working, reveal where friction still exists, and provide a way to communicate impact to stakeholders.</p><p>A key distinction to make is between perception and workflow metrics. Perception metrics capture how users <em>feel</em> about the platform: their satisfaction, pain points, and confidence levels. These are vital because experience is as much about how things <em>feel</em> as how they <em>function</em>. Workflow metrics track how efficiently and effectively users can complete their tasks: reflecting the actual performance of tools, processes, and systems.</p><p>There’s no universal set of metrics that works for every organization. The measurement approach should be co-created with the team, tailored to the platform, and aligned with the vision. That said, here are some commonly used metrics that can serve as inspiration:</p><p><strong>Perception metrics</strong></p><ul><li>Satisfaction Scores: Surveys to gauge how satisfied developers are with tools, processes, and support.</li><li>Ease of Onboarding: Measures how quickly new users can ramp up and make meaningful contributions.</li><li>Perceived Tooling Effectiveness: How useful users find CI/CD pipelines, debugging tools, documentation, etc.</li><li>Perceived Code Complexity: Captures how intuitive and maintainable users find the codebase or platform APIs.</li><li>Adoption &amp; Engagement: Tracks recurring platform tool users, signalling utility and ease of use.</li></ul><p><strong>Workflow metrics</strong></p><ul><li>Delivery performance: Change Lead Time and Deployment Frequency</li><li>Build Success Rate: Indicates platform stability and reliability during development cycles.</li><li>Time to First E2E Result: Measures how long it takes to spin up a working environment and run a full pipeline or application.</li><li>Change Failure Rate &amp; Recovery Time: Shows how often deployments break and how quickly teams recover.</li><li>Developer Productivity (Time on Non-Coding Tasks): Highlights time spent waiting on builds, managing dependencies, or handling unclear errors.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*tkjV3N_IPtCYHFTX0XuwmA.png" /><figcaption>Example metrics [3]</figcaption></figure><p>⚠️ <strong>Cautions</strong>:</p><ul><li>A common mistake is turning metrics into goals. This often leads to gaming the numbers and missing the point, as captured by Goodhart’s Law: <em>“When a measure becomes a target, it ceases to be a good measure.”</em> For example, pushing every team to deploy daily can result in meaningless changes just to hit the metric.</li><li>Another pitfall is relying on a single metric. Developer experience is multi-dimensional, and no one number can capture it all. A balanced set of metrics gives a more honest view. Frameworks like SPACE can help design a well-rounded measurement approach.</li></ul><p>Ultimately, the aim isn’t to measure everything, it’s to measure what matters. Good metrics should reflect the real experiences of users, be clearly tied to platform goals, and help teams make better decisions. Over time, metrics should be revisited and refined. They’re not the end goal, but a tool to guide continuous improvement and validate that you’re truly making the platform better for its users.</p><p><strong>Deliverables:</strong></p><ul><li>A list of items that need to be measured.</li><li>Implementation of perception metrics.</li><li>Implementation of workflow metrics.</li></ul><h3>Conclusion</h3><p>This guide gives an answer to the question: <em>how to establish a systematic process to continuously keep improving the data platform experience</em>?</p><p>The answer consists of a five-step process:</p><ol><li><strong>Bootstrap the initiative:</strong> Set clear goals, secure leadership support, and dedicate resources.</li><li><strong>Understand the platform users</strong>: Gather user feedback, identify root causes and assess their impact.</li><li><strong>Discover and prioritise solutions:</strong> Turn insights into actionable improvements and prioritize them based on user value and feasibility.</li><li><strong>Drive ownership and follow-up</strong>: Assign owners, support delivery, communicate progress, and track adoption.</li><li><strong>Measure Outcomes:</strong> Define success metrics and compare before-and-after data to validate impact.</li></ol><p>By building this process iteratively and listening to the people, the platform experience can be systematically improved.</p><h3>Sources</h3><ol><li><a href="https://img.corrierecomunicazioni.it/wp-content/uploads/2022/09/30140414/forrester-elevating-the-developer-experience.pdf">https://img.corrierecomunicazioni.it/wp-content/uploads/2022/09/30140414/forrester-elevating-the-developer-experience.pdf</a></li><li><a href="https://addyosmani.com/dx/">https://addyosmani.com/dx/</a></li><li><a href="https://queue.acm.org/detail.cfm?id=3595878">https://queue.acm.org/detail.cfm?id=3595878</a></li><li><a href="https://www.gartner.com/en/software-engineering/topics/developer-experience">https://www.gartner.com/en/software-engineering/topics/developer-experience</a></li><li><a href="https://getdx.com/research/measuring-developer-productivity-with-the-dx-core-4/">https://getdx.com/research/measuring-developer-productivity-with-the-dx-core-4/</a></li><li><a href="https://www.thoughtworks.com/insights/blog/experience-design/approaches-for-a-better-developer-experience">https://www.thoughtworks.com/insights/blog/experience-design/approaches-for-a-better-developer-experience</a></li><li><a href="https://www.linkedin.com/pulse/difference-between-root-cause-analysis-problem-sbdtf">https://www.linkedin.com/pulse/difference-between-root-cause-analysis-problem-sbdtf</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4554d0bb7be9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datamindedbe/a-5-step-process-to-improve-data-platform-experience-4554d0bb7be9">A 5-step approach to improve data platform experience</a> was originally published in <a href="https://medium.com/datamindedbe">Dataminded</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Growing your data program with a use-case-driven approach]]></title>
            <link>https://medium.com/datamindedbe/growing-your-data-program-with-a-use-case-driven-approach-20223fd2dd9c?source=rss-8a8875e209a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/20223fd2dd9c</guid>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[data-culture]]></category>
            <category><![CDATA[data-strategy]]></category>
            <category><![CDATA[technology-integration]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Frederic Vanderveken]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 14:28:42 GMT</pubDate>
            <atom:updated>2024-01-23T14:28:42.540Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to Bridge the Gap Between Strategic Vision and Tactical Execution in Data Initiatives</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kdq7LWgnPzheaT0OW9SRhA.png" /></figure><p>In recent years, the growing value of data in business is undeniable. At the heart of harnessing this value lies the <em>data program</em>, a crucial part of any organization that develops processes and frameworks to capitalize on data. The success of these programs is typically measured by <em>maturity levels</em>, which indicate how efficiently data is transformed into tangible value (<a href="https://www.dataminded.com/dmi">data maturity test</a> example).</p><p>As a first step, it’s essential to craft a long-term vision for the data as a valuable asset. Then, a high-level roadmap to realize this vision should be defined, which is typically the outcome of a data strategy exercise. However, despite the importance of such an exercise, <strong>creating a vision and strategy isn’t enough</strong>. The real challenge, and often the most complex aspect, lies in the execution phase — turning the strategy into real changes within the data program. This phase can be tricky and full of potential obstacles, as theoretical plans will meet the realities of organizational dynamics and technological constraints.</p><p>In this post, we propose an effective approach to navigate these complexities and <strong>transform the long-term vision of the data program into reality</strong>.</p><h3>The planning-building spectrum</h3><p>Once a long-term vision for the data program is established, the next step is transforming this vision into a concrete, operational reality. The activities necessary for this transformation can be grouped into two fundamental categories: planning and building.</p><ul><li><strong>Planning</strong> encompasses the design, preparation, and architecture phases. It’s often the domain of managers and architects, resulting in extensive documents and slide decks that outline architectural frameworks and conventions.</li><li><strong>Building</strong>, in contrast, involves the actual implementation that affects the end-users. This phase is typically managed by technical teams who develop and build the platforms and algorithms necessary to gather, process, and utilize data.</li></ul><p>Here, a key question is how and when to allocate the resources to these two categories. For example, you might start with detailed planning of how you want the whole data program to look before actually building something. Or, begin with building to quickly gather insights and then adjust your plans accordingly. This decision about resource allocation — whether and when to focus on planning, building, or both together — is a crucial factor for the success of your transformation.</p><p>In the following, three different resource allocation approaches are discussed.</p><h4>Planning without building</h4><p>Consider the situation dominated by excessive planning and designing, with minimal emphasis on execution. Although it might seem unlikely, this imbalance is surprisingly common. While planning is essential, excessively prioritizing it over building can lead to several issues:</p><ul><li><strong>Rapid Technological Changes</strong>: In the fast-evolving tech landscape, waiting too long for the ‘perfect’ solution can mean missing out on newer, more effective tools. This endless chase can prevent any real progress. Remember, “<em>Perfect is the enemy of good</em>”.</li><li><strong>Theory vs practice</strong>: Plans that look flawless on paper may not translate well in the real world. Prolonged planning without testing can lead to investing time and resources in strategies that ultimately don’t work. Remember, “<em>You know nothing until you’ve deployed to production</em>”.</li><li><strong>Value vs Cost</strong>: Excessive planning without implementation doesn’t generate value, but rather consumes resources, leading to inefficiency and increased risk.</li></ul><p>Figure 1 illustrates the data program’s costs and value creation over time for an excessive planning scenario. At first, there are high costs associated with extensive planning and architecting, whereas value is low as nothing is built yet. In a later stage, the implementation starts and value can be created. If everything goes according to the original plan, the value creation happens efficiently and cost-effectively leading to stagnating costs and strongly increasing value. However, it is crucial to recognize the ‘if’ in this scenario as deviations from the original plan are common in real-world projects. Hence, in this approach, the potential value is kept behind a barrier of risk because of the large delay between the planning and the actual building.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*Yd4mvHSEAqMYTOCssxtzXw.png" /><figcaption>Figure 1: value and cost as a function of time for the scenario where excessive planning is applied.</figcaption></figure><h4>Building without planning</h4><p>On the other extreme side, an approach of rushing into the building without adequate planning is followed. This method can yield quick results, but is full of challenges that can jeopardize the long-term success of the data program:</p><ul><li><strong>Misaligned Goals</strong>: Without proper planning, there’s a higher chance of disconnect between technical solutions and overarching business objectives. This misalignment often results in efforts that do not contribute effectively to the company’s strategic goals or fail to address key business challenges.</li><li><strong>Integration Challenges</strong>: When solutions are developed rapidly and in isolation, integrating them becomes complex, resulting in inefficiencies and potential system conflicts.</li><li><strong>Scalability Issues</strong>: Building solutions without considering the bigger picture can result in systems that function well initially but struggle to adapt as needs evolve and scale. This short-sighted approach can lead to significant hurdles in future expansion and adaptation.</li></ul><p>Figure 2 illustrates the generation of value and cost associated with a building-first approach. Here, value is generated quickly as pipelines and analytics are implemented from day 1. In addition, there is reduced cost due to less planning work at the start. However, as time passes, implementing more use cases typically brings a lot of overhead to these systems. In the end, there are difficulties with integration and maintenance, leading to elevated costs and a hard time when building new use cases. As a result, value saturates and costs start to increase, indicating an approach that is not sustainable nor scalable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*kHGVsm6O0tHzD4FH2zbNUQ.png" /><figcaption>Figure 2: value and cost as a function of time for a scenario with excessive building and little planning.</figcaption></figure><p>Although this building-first approach might not seem like the solution for developing a complete data program, it can be a valid approach for scenarios where sustainability and scalability are less important and when rapid feedback is crucial. For example, building POCs or exploring/testing new technologies are ideal for this approach.</p><h3>Embracing a use-case-driven approach</h3><p>As discussed above, it is clear that “overthinking” the perfect architecture and diving straight into the problem without planning probably both don’t work. Here, we advocate for a hybrid approach that <strong>blends planning and building into a dynamic and iterative process</strong>, where both activities happen simultaneously and <strong>not</strong> sequentially. It might seem logical; nevertheless, this is often not how it flows in reality.</p><p>To successfully implement a hybrid approach, a <strong>multidisciplinary team</strong> is essential. This team should comprise individuals who understand the business aspects of the company, those with a comprehensive view of the data program, and technical experts capable of building solutions. This multidisciplinary team then takes on both planning and building activities.</p><p>It is not recommended to plan and build the whole data program altogether. Instead, the big transformation should be split up into digestible use cases that represent end-to-end projects with direct value creation. Considering this, a use-case-driven approach can be followed where every use case can be developed independently.</p><p>This use case development should be executed by the multidisciplinary team for which the use cases give guidance and a common goal. The team should do both planning and building activities. The planning activities initiate the process by defining hypotheses and proposing solutions, which are then implemented, tested, and validated by the building activities. This use-case-driven, hybrid methodology is illustrated in Figure 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LLTdRSa2QVZ3FXpzvCqCcQ.png" /><figcaption>Figure 3: schematic illustration of the use-case-driven approach to elevate your data program to the next level.</figcaption></figure><p>Applying this hybrid approach not only addresses the pitfalls of the extreme scenarios discussed earlier, but also offers additional advantages:</p><ol><li><strong>Testing and Validation of Assumptions</strong>: The assumptions or hypotheses set by the planning activities, upon which their architectures or models are built, can be tested and validated by the building phases early on.</li><li><strong>Inspiration Through Prototypes</strong>: The technical team can rapidly develop POCs that inspire and inform the planning team. These POCs can reveal new insights and spark ideas for further enhancements in the data program.</li><li><strong>Adaptive Problem-Solving</strong>: The use-case-driven approach allows for adaptive, responsive problem-solving. As new challenges or opportunities arise during the implementation, it’s possible to quickly adjust strategies and actions, ensuring the data program remains aligned with current business needs and technological advancements.</li></ol><p>Figure 4 illustrates the data program’s cost and value when transforming it via a use-case-driven method. The cost curve starts with a “bump” that reflects the planning and building of a first use case. This first use case then results in a “bump” in the value curve once completely implemented. Hereafter, a next use case is implemented, and so on. As a result, the high risk of the excessive planning approach is mitigated as use cases are directly built. Moreover, sustainability and scalability are assured as there is a planning phase before the actual implementation for each use case. In the long term, this approach leads to an effective transformation of the data program with rapid and cost-effective onboarding of new use cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*wDOLm14eTLL1qTLRirKJwQ.png" /><figcaption>Figure 4: value and cost as a function of time for the use-case-driven approach.</figcaption></figure><h3>Conclusion</h3><p>When transforming a data program’s vision into a reality, we recommend employing a use-case-driven approach that encompasses a balance between planning and building. This use-case-driven approach should be led by a strong multidisciplinary team with business knowledge, data skills, and technical capabilities to plan and build end-to-end use cases. This approach brings value from the start, reduces risks, and ensures flexibility and adaptability.</p><ul><li>👏 If you liked this article, don’t forget to clap!</li><li>🗣️ Share your insights in the comments.</li><li>👀 For more about Data Minded, visit our <a href="https://www.dataminded.com/">website</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20223fd2dd9c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datamindedbe/growing-your-data-program-with-a-use-case-driven-approach-20223fd2dd9c">Growing your data program with a use-case-driven approach</a> was originally published in <a href="https://medium.com/datamindedbe">Dataminded</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross-DAG Dependencies in Apache Airflow: A Comprehensive Guide]]></title>
            <link>https://medium.com/datamindedbe/cross-dag-dependencies-in-apache-airflow-a-comprehensive-guide-88cbc0bc68d0?source=rss-8a8875e209a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/88cbc0bc68d0</guid>
            <category><![CDATA[scheduling-software]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[scheduling]]></category>
            <dc:creator><![CDATA[Frederic Vanderveken]]></dc:creator>
            <pubDate>Tue, 04 Jul 2023 07:45:46 GMT</pubDate>
            <atom:updated>2023-07-04T07:45:46.975Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploring four methods to effectively manage and scale your data workflow dependencies with Apache Airflow.</h4><p>As organizations scale their data operations, the need for structure and streamlined processes becomes paramount. This is typically handled by tools like <a href="https://airflow.apache.org/">Apache Airflow</a>, offering a code-driven approach to orchestrate and monitor data workloads through directed acyclic graphs (DAGs). Within this framework, each DAG embodies a unique data pipeline or workflow. Hence, when scaling out the number of data processes and simultaneously guaranteeing data freshness, properly managing these DAGs and their interdependencies becomes crucial.</p><p>In this blog post, we explore four prominent methods to manage and implement cross-DAG dependencies in Airflow — Triggers, Sensors, Datasets, and the Airflow API. We explain their behavior, provide example code snippets and compare the advantages and disadvantages of every method, empowering you to make informed decisions tailored to your specific use case.</p><h3>Why are cross-DAG dependencies useful?</h3><p>Each DAG comprises several interconnected tasks, enabling an organization to easily consolidate all its data workflows into a set of DAGs. An example DAG with four tasks is illustrated in Fig. 1. To adhere to Airflow’s best practices, each DAG must have a well-defined scope [1,2]. This means that it should entail a single project or process, be managed by a single team, and have a specific execution schedule. However, as organizations grow, these independent workflows often need to interact or synchronize with each other. Here, the issue of cross-DAG dependencies arises. An illustrative example of this complexity is shown in Fig. 2 where all data workflows are captured in DAGs and several dependencies between them exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*bcF6SHvIaOoQ_86Ye1Y4jg.png" /><figcaption>Fig. 1: DAG with four tasks.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*A09i8_ZaE2SyvpGioOsv1g.png" /><figcaption>Fig 2: DAG dependencies become complicated when the number of DAGs increases.</figcaption></figure><p>Cross-DAG dependencies refer to scenarios where a DAG relies on the successful execution of one or more tasks in another DAG. Unmanaged cross-DAG dependencies can create several problems:</p><ul><li>Data inconsistencies: if a DAG begins processing before its data is ready, it can lead to wrong or inaccurate results.</li><li>Inefficient resource usage: if a DAG begins processing before its data is ready, it needs to be re-executed later.</li><li>Bugs: when inaccurate results appear due to a mismatch between different DAGs, it can be very time consuming to identify the root cause. Yet, its resolution often simply involves a coordinated re-execution of the two DAGs.</li></ul><blockquote>Unmanaged cross-DAG dependencies can create several problems, such as data inconsistencies or inefficient resource usage.</blockquote><p>One way to mitigate this problem could be to schedule the dependent DAGs after each other and hope for the best. Note that this is not a scalable nor robust approach, as it only works for a limited amount of coupled DAGs and requires that DAGs won’t fail. Another naive solution to resolve the increased complexity of cross-DAG dependencies would be to merge the DAGs that depend on each other into one single DAG. However, this approach violates the best practices of having a DAG reflect a single process and being maintained by a single team. Moreover, integrating DAGs into each other leads to large monolithic DAGs that are hard to maintain.</p><p>As such, understanding and effectively handling cross-DAG dependencies is a crucial aspect of working with Apache Airflow. A well-managed system allows you to efficiently orchestrate complex workflows, maintain data consistency, and optimally utilize resources, all while preserving the simplicity and readability of individual DAGs. Luckily, Airflow provides several approaches for managing cross-DAG dependencies without violating the best practices.</p><h3>1. Triggers</h3><p>The trigger method is a straightforward way to activate downstream DAGs when a task in an upstream DAG completes successfully. This push-based mechanism is simple, yet effective, making it an ideal solution for activating one or multiple downstream DAGs. Figure 3 shows a schematic illustration of how DAG coupling with the trigger method can work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XWve-pu3FtESie4nZk88yw.png" /><figcaption>Fig. 3: Schematic illustration of cross-DAG coupling via the TriggerDagRunOperator. Trigger task A and trigger task B in the upstream DAG respectively trigger downstream DAG A and downstream DAG B.</figcaption></figure><p>To bring this method to action, the TriggerDagRunOperator has to be incorporated as an auxiliary task within the upstream DAG, as can be seen in the code snippet below. The operator takes the trigger_dag_id argument, which specifies the downstream DAG to be triggered. Optionally, the conf argument can be used which enables passing variables from the upstream DAG to the downstream DAG, providing extra functionality in the cross-DAG coupling.</p><pre># upstream DAG<br>with DAG(<br>  dag_id=&quot;upstream_trigger_dag&quot;,<br>  start_date=datetime(2023, 1, 1),<br>  schedule=&quot;@daily&quot;,<br>) as dag:<br>  start_task = BashOperator(<br>    task_id=&quot;start_task&quot;,<br>    bash_command=&quot;echo &#39;Start task&#39;&quot;,<br>  )<br>  trigger_A = TriggerDagRunOperator(<br>    task_id=&quot;trigger_A&quot;,<br>    trigger_dag_id=&quot;downstream_dag_A&quot;,<br>    conf={&quot;message&quot;:&quot;Message to pass to downstream DAG A.&quot;},<br>  )<br>  trigger_B = TriggerDagRunOperator(<br>    task_id=&quot;trigger_B&quot;,<br>    trigger_dag_id=&quot;downstream_dag_B&quot;,<br>  )<br>  start_task &gt;&gt; trigger_A &gt;&gt; trigger_B<br><br># downstream DAG A<br>with DAG(<br>  dag_id=&quot;downstream_dag_A&quot;,<br>  start_date=datetime(2023, 1, 1),<br>  schedule=&quot;@daily&quot;,<br>) as dag:<br>  downstream_task = BashOperator(<br>    task_id=&quot;downstream_task&quot;,<br>    bash_command=&#39;echo &quot;Upstream message: $message&quot;&#39;,<br>    env={&quot;message&quot;: &#39;{{ dag_run.conf.get(&quot;message&quot;) }}&#39;},<br>)</pre><h3>2. Sensors</h3><p>The sensor method is another way to establish cross-DAG dependencies in Apache Airflow. It is particularly useful when the execution of a downstream DAG relies on the completion of tasks in one or more upstream DAGs. In this scenario, sensors serve as unique task types in Airflow, flexibly responding to the status of upstream tasks, upstream task groups, or entire upstream DAGs. A schematic illustration of the sensor DAG coupling is shown in Fig. 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84BGs0V42cgYOTDCqSyrrg.png" /><figcaption>Fig. 4: Schematic illustration of cross-DAG coupling via the sensor method. Sensor task A and sensor task B in the downstream DAG respectively wait on the completion of the upstream end and start tasks in DAG A and B.</figcaption></figure><p>To establish cross-DAG dependencies using a sensor, the downstream DAG needs to include the ExternalTaskSensor, as can be seen in the code snippet below. Additionally, the dependent upstream DAGs and tasks must be imported and provided to the ExternalTaskSensor using the external_dag_id and external_task_id arguments. Once these are set, the ExternalTaskSensor continuously monitors the upstream tasks and DAGs for their completion.</p><pre>with DAG(<br>    &quot;downstream_sensor_dag&quot;,<br>    start_date=datetime(2023, 1, 1),<br>    schedule=@daily,<br>) as dag:<br>  start_task = BashOperator(<br>    task_id=&quot;start_task&quot;,<br>    bash_command=&quot;echo &#39;Start task&#39;&quot;,<br>  )<br>  sensor_A = ExternalTaskSensor(<br>      task_id=&quot;sensor_A&quot;,<br>      external_dag_id=&quot;upstream_dag_A&quot;,<br>      external_task_id=&quot;end_task&quot;,<br>  )<br>  sensor_B = ExternalTaskSensor(<br>      task_id=&quot;sensor_B&quot;,<br>      external_dag_id=&quot;upstream_dag_B&quot;,<br>      external_task_id=&quot;start_task&quot;,<br>  )<br>  start_task &gt;&gt; sensor_A &gt;&gt; sensor_B</pre><p>In the downstream DAG, the sensor task executes only when all upstream tasks share the same execution date and are marked as successful. Hence, if one of the upstream tasks fails, the downstream sensor task won’t proceed. This behavior is illustrated in Fig. 5 for a slightly more complicated scenario of a single downstream sensor task that depends on two upstream tasks with different schedules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5MaTxf6raUgHlbmvLkt1-g.png" /><figcaption>Fig. 5: Schematic illustration of scheduling with sensors. In the downstream DAG, the sensor task executes only when all upstream tasks share the same execution date and are marked successful.</figcaption></figure><p>Another scenario that can lead to problems is when the upstream tasks are shifted in time, resulting in execution times that will never align between the upstream and downstream tasks, and consequently, the downstream task will never start. However, this issue can be resolved by using the timedelta argument in the ExternalTaskSensor, which virtually shifts the execution time of the downstream ExternalTaskSensor<em> </em>task to match that of the upstream task.</p><p>Comparing this sensor approach with the trigger approach, an operational difference is identified. The sensor operation reflects a <em>pull-based</em> model where the downstream DAG continuously verifies whether the upstream tasks were successful, whereas the trigger method has a <em>push-based</em> approach as the upstream tasks directly activate the downstream tasks after a successful run.</p><p>It is also possible to include an ExternalTaskMarker in the upstream DAGs, which connects to the ExternalTaskSensor in the downstream DAG. Although these marker tasks are optional, they are highly recommended because they provide a clear dependency between the two DAGs. Furthermore, when including the marker in the upstream DAG, the Airflow UI displays an additional button that directs users straight to the downstream DAG from the upstream one, see Fig. 6. This enhances visibility and navigation between the coupled DAGs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*WnGYT4nXJBUuORl-LZh2fA.png" /><figcaption>Fig. 6: ExternalTaskMarker view in the Airflow UI. The “External DAG” button directs to the coupled downstream DAG.</figcaption></figure><h3>3. Datasets</h3><p>The dataset approach in Apache Airflow provides a powerful method for realizing cross-DAG dependencies by creating links between datasets and DAGs. It allows the user to specify a specific dataset that DAGs can follow, consequently executing the subscribed DAGs whenever there’s a change in the dataset.</p><p>Scheduling DAG runs based on dataset updates enables you to create dynamic and event-driven workflows. This approach is particularly useful when downstream DAGs need to run after dataset updates from upstream DAGs, especially in cases where the updates are irregular. Hence, establishing dependencies based on dataset changes ensures that downstream workflows react effectively to data updates. A schematic overview of this approach is illustrated in Fig. 7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lC47qCiKhBJa9BusVyCgbw.png" /><figcaption>Fig. 7: Schematic illustration of cross-DAG coupling via datasets. The downstream DAG only starts when both datasets are updated.</figcaption></figure><p>To implement cross-DAG dependencies using datasets, the datasets need to be defined in both the upstream and downstream DAGs. It’s important to note that the provided dataset is simply a string identifier, and Airflow doesn’t establish a direct connection to the actual dataset or have knowledge of its content, location, or actual modifications applied to it. Hence, this makes the connections very flexible as you don’t need specific connectors or plugins to communicate the actual database. On the other hand, it is important to remember that all dataset updates which do not originate from Airflow tasks are not captured.</p><p>In the code, the method is implemented by explicitly indicating when dataset changes happen. In the upstream DAG, each task that updates a dataset should include the outlets parameter, specifying the dataset that will be updated by that task. In the downstream DAG, the datasets (on which the DAG depends) should be defined as the schedule parameter. Note that you can include multiple datasets by providing them as a list in the schedule attribute. An example implementation of cross-DAG coupling with datasets is presented in the code block below.</p><pre>dataset1 = Dataset(&#39;s3://folder1/dataset_1.txt&#39;)<br>dataset2 = Dataset(&#39;s3://folder1/dataset_2.txt&#39;)<br><br>with DAG(<br>  dag_id=&quot;upstream_dag_A&quot;,<br>  start_date=datetime(2023, 1, 1),<br>  schedule=@daily,<br>) as dag:<br>  start_task = BashOperator(<br>    task_id=&quot;start_task&quot;,<br>    bash_command=&quot;echo &#39;Start task&#39;&quot;,<br>    outlets=[dataset1],<br>  )<br><br>with DAG(<br>  dag_id=&quot;upstream_dag_B&quot;,<br>  start_date=datetime(2023, 1, 1),<br>  schedule=@daily,<br>) as dag:<br>  start_task = BashOperator(<br>    task_id=&quot;start_task&quot;,<br>    bash_command=&quot;echo &#39;Start task&#39;&quot;,<br>    outlets=[dataset2],<br>  )<br><br>with DAG(<br>  &quot;downstream-dataset-dag&quot;,<br>  start_date=datetime(2023, 1, 1),<br>  schedule=[dataset1, dataset2],<br>) as dag:<br>  start_task = BashOperator(<br>    task_id=&quot;start_task&quot;,<br>    bash_command=&quot;echo &#39;Start task&#39;&quot;,<br>  )<br>  end_task = BashOperator(<br>    task_id=&quot;end_task&quot;,<br>    bash_command=&quot;echo &#39;End task&#39;&quot;,<br>  )<br>  start_task &gt;&gt; end_task</pre><p>During runtime, the DAG is scheduled to run when all the datasets it consumes have been updated at least once since the last time it was run. This ensures that the downstream DAG only runs when the required datasets have been modified or refreshed by the corresponding upstream tasks. An example is shown in Fig. 8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DbuoRUPF4wldosZ9NFir6w.png" /><figcaption>Fig. 8: Schematic of scheduling with datasets. The black dots represent dataset updates and the orange lightning icon represents the DAG run. The downstream DAG only runs when all the datasets it consumes have been updated at least once since the last time it was run.</figcaption></figure><p>To help users overview all the cross-DAG dataset connections, Airflow provides a dedicated dataset view in the user interface. This serves as a powerful tool for monitoring and optimizing your data pipelines. It provides visibility into dataset update times as well as the relationships between upstream and downstream DAGs, allowing the user to trace back the data flow and cross-DAG dependencies. Hence, this feature can also be used for data lineage purposes. An example of the dataset view is shown in Fig. 9.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qbvzCa4ka1lY71faD1B06g.png" /><figcaption>Fig. 9: Dataset view in the Airflow interface.</figcaption></figure><p>By leveraging the dataset approach, you can create flexible and reactive workflows that adapt to changes in your data environment. Whether you need to trigger downstream DAGs after dataset updates or build complex data pipelines with intricate dependencies, datasets in Airflow provide a robust mechanism for achieving cross-DAG coupling based on data awareness.</p><h3>4. API</h3><p>The Airflow API offers a powerful approach to trigger a DAG from an external source. When the external source is another Airflow instance, it is possible to create cross-DAG dependencies with the API, complementing the triggers, sensors, and datasets methods discussed earlier. Hence, this method is especially beneficial when your dependent DAGs are deployed in different Airflow environments. By leveraging the Airflow API, you can seamlessly couple tasks and trigger DAG runs across diverse environments, enabling efficient cross-environment workflow coordination.</p><p>Cross-DAG coupling via the API is realized by a POST request to the <em>DAGRuns</em> endpoint, which allows to initiate a remote DAG run. To implement this, the SimpleHttpOperator should be included in the DAG and the endpoint parameter should be set to /api/v1/dags/&lt;dag-id&gt;/dagRuns, where &lt;dag-id&gt; represents the ID of the target DAG. The desired execution date can be specified in the data parameter, which can be the execution date of the upstream DAG or any other date. Make sure to configure the HTTP connection (http_conn_id) with the necessary authentication credentials. New connections can be created in the admin&gt;connections page on the Airflow user interface. Once the API call triggering the downstream DAG completes, the corresponding task in the upstream DAG is marked as complete. See the code block below for an example implementation.</p><pre>date = &quot;{{ execution_date }}&quot;<br>request_body = {&quot;execution_date&quot;: date}<br>json_body = json.dumps(request_body)<br><br>with DAG(<br>    &quot;upstream_api_dag&quot;,<br>    start_date=datetime(2023, 1, 1),<br>    schedule=@daily,<br>) as dag:<br>  start_task = BashOperator(<br>    task_id=&quot;start_task&quot;,<br>    bash_command=&quot;echo &#39;Start task&#39;&quot;,<br>  )<br>  api_trigger_dag = SimpleHttpOperator(<br>    task_id=&quot;api_trigger_dag&quot;,<br>    http_conn_id=&quot;airflow-api&quot;,<br>    endpoint=&quot;/api/v1/dags/dependent-dag/dagRuns&quot;,<br>    method=&quot;POST&quot;,<br>    headers={&quot;Content-Type&quot;: &quot;application/json&quot;},<br>    data=json_body,<br>  )<br>  start_task &gt;&gt; api_trigger_dag</pre><h3>Comparing the cross-DAG dependency methods</h3><p>In the previous sections, we elaborated on four different cross-DAG coupling methods. In this section, we highlight their key differences and similarities. This comparison should enable you to identify the appropriate method when you encounter a situation where you need to implement a cross-DAG dependency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*gGILr5lmaSG8xug-5DdSJg.png" /><figcaption>Table 1: Comparison of the four cross-DAG coupling methods.</figcaption></figure><p>From my experience, the dataset approach is typically the most suitable method to create cross-DAG dependencies. Its greatest advantage, in my opinion, is its utilization of an event-driven coupling principle. This effectively abstracts away the time scheduling aspect, simplifying the implementation and maintainability for the user. In addition, it facilitates clear data lineage and easily allows for both one-to-many and many-to-one links. Hence, if you’re utilizing an Airflow version of 2.4 or above, I recommend applying the dataset approach when implementing cross-DAG dependencies.</p><h3><strong>Conclusion</strong></h3><p>Implementing cross-DAG dependencies in Airflow empowers you to create complex and interdependent workflows without sacrificing maintainability and organizational structure. In this blog post, we explored four methods for implementing cross-DAG dependencies in Apache Airflow:</p><ul><li><strong>Triggers</strong>: activate downstream DAGs as an upstream task completes, offering a push-based approach.</li><li><strong>Sensors</strong>: use a pull-based model and wait for specific upstream events to finish.</li><li><strong>Datasets</strong>: ideal for handling non-regular updates, and creating event-driven and dynamic workflows. Furthermore, it allows for reasoning about data dependencies, instead of code-level or technical connections in the other methods.</li><li><strong>Airflow API</strong>: enables efficient coordination by linking tasks and initiating DAG runs for dependencies across different Airflow environments.</li></ul><p>By choosing the appropriate method based on your workflow needs, you can ensure efficient coordination between tasks and easily scale the number of pipelines while keeping them maintainable. Hence, by leveraging the cross-DAG capabilities provided by Airflow, it is possible to build a robust and interconnected DAG ecosystem that drives your data-driven processes forward.</p><p><em>Thanks to Jonny Daenen for providing valuable input and feedback on this post.</em></p><h4>Sources</h4><ol><li><a href="https://www.astronomer.io/blog/10-airflow-best-practices/">https://www.astronomer.io/blog/10-airflow-best-practices/</a></li><li><a href="https://medium.com/digital-transformation-and-platform-engineering/apache-airflow-best-practices-and-advantages-9ec71f1ef3cc">Apache Airflow Best Practices and Advantages | by Xenonstack | Digital Transformation and Platform Engineering Insights | Medium</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88cbc0bc68d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datamindedbe/cross-dag-dependencies-in-apache-airflow-a-comprehensive-guide-88cbc0bc68d0">Cross-DAG Dependencies in Apache Airflow: A Comprehensive Guide</a> was originally published in <a href="https://medium.com/datamindedbe">Dataminded</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>