babylon

[简体中文]

Overview

Basic Concepts

anyflow logic

Conceptually, an execution graph consists of two types of entities: data nodes and compute nodes, which are connected by two types of relationships: dependencies and outputs.

Graph Construction

Graph Builder

Graph construction occurs in two stages: build time and run time.

Execution Process

Running Flow

The execution process consists of two main actions: activation and execution.

Data Structure

Structure

Lock-Free DAG Derivation Algorithm

Concurrent DAG

In typical DAG execution, a global lock is used to establish a critical section, where state changes are performed. The GraphEngine employs a specialized design to avoid creating this critical section, theoretically improving concurrent DAG execution efficiency and supporting finer-grained, highly parallel DAG designs.

This design ensures that activation and execution are derived without duplication or omission. The only operations are atomic state changes on individual dependencies, enabling high concurrency scalability.