Second Brain: Crafted, Curated, Connected, Compounded on 10月02日 21:29
DAGs:数据管道的数学模型
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文介绍了DAGs(有向无环图)作为数据管道的数学模型,阐述了其在数据工程中的应用及其优势。

DAGs, or Directed Acyclic Graphs, represent a conceptual or mathematical model of a data pipeline, embodying a series of activities in a specific arrangement.

In a DAG, data flows through a finite set of nodes connected by edges. Notably, these graphs lack a designated start or end node and, crucially, prevent data from looping back to its point of origin.

Their popularity in data engineering stems from their clear depiction of Data Lineage and their suitability for functional approaches, ensuring idempotency in restarting pipelines without side effects.

Example: ^f136d7

graph LR    A[Start] -->|process 1| B[Middle]    B -->|process 2| C[End]    A -->|process 3| C

This example illustrates a DAG starting at A, diverging at B, and converging at C. The absence of cycles means no path leads back to its starting point.

# Why Directed Acyclic Graphs Matter

The unique combination of features in DAGs may seem arbitrary, yet they are instrumental in crafting efficient ETL pipelines.

From a mathematical perspective, a directed acyclic graph (DAG) is a directed graph without any directed cycles. Comprising vertices “Vertex (graph theory)”) and edges “Edge (graph theory)”), each edge leads from one vertex to another, ensuring no closed loops form.

A DAG can be topologically ordered, aligning the vertices linearly while respecting edge directions. This graph type finds diverse applications across various fields, from biology and sociology to computation.

To understand the role of DAGs in data orchestration, refer to the Why you need an Orchestrator section.


Origin:
References:
Created 2022-05-19

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

DAGs 数据管道 数学模型 数据工程 有向无环图
相关文章