logo   async
machine.dev

/docs/diagrams.md

Machine Basics

Features are explained using Mermaid flow diagrams, and headers link to relevant sections of the manual.

Multi-state

Many states can be active at the same time.

Clock and state contexts

States have clocks that produce contexts (odd = active; even = inactive).

Queue

Queue of mutations enable lock-free Actor Model.

AOP handlers

States are Aspects with Enter, State, Exit, and End handlers.

Negotiation

Transitions are cancellable (during the negotiation phase).

Relations

States are connected via Require, Remove, and Add relations.

Subscriptions

Channel-broadcast waiting on clock values.

Transition Lifecycle

Transition Lifecycle diagram

aRPC

aRPC Architecture

aRPC Architecture diagram

aRPC Sync (Details)

aRPC Sync (Details) diagram

aRPC Sync (Clocks)

aRPC Sync (Clocks) diagram

aRPC Partial Distribution

aRPC Partial Distribution diagram

aRPC Handler Mutations

aRPC Handler Mutations diagram

Worker Pool Architecture

Flows

Legend

RPC Getter Flow

Consumer requests payload from a remote worker.

Worker Bootstrap

Node Supervisor forks a new worker process for the pool.

Examples

Tree State Source

Benchmark State Source

WASM

WASM

WASM Workflow

WASM Workflow

Debugging

diagram1 diagram2 diagram3 diagram4 diagram5 Transition diagram