The Distributed Runtime

REAL

The local runtime (Chapter 8) runs a whole playbook in one process. The distributed runtime splits the same work across services that each do one job. Its parts are a gateway, a server, a command bus and pools of workers. This chapter follows a request through them.

Every claim here was checked against server v3.161.2, worker v6.15.0 and gateway v3.22.1. Deployment numbers come from the public resource model (noetl.ai/dsl/resource-model.json), whose DEPLOYED entries were read off the production cluster on its as_of date, 2026-11-11.

The path of one request

 client
   │  HTTPS, session token
   ▼
 gateway ─────────────── authenticates, authorizes, proxies,
   │                     streams results back (SSE)
   │  POST /api/execute
   ▼
 server ──────────────── writes playbook_started, builds the first
   │                     commands, owns the event log and the catalog
   │  publish command notification
   ▼
 cmdbus-writer ───────── the EHDB command bus: a durable log per pool
   │                     and shard, plus a claim coordinator
   │  claim commands.<pool>.>
   ▼
 worker pools ────────── shared (user steps), system (the drive),
                         subscription; each worker has N slots
   │
   └─ events back to the server: POST /api/events
        └─ command.completed triggers the next drive pass,
           which runs as a command on the system pool

The loop at the bottom is the heart of it. A worker finishes a step and reports command.completed. That event starts a drive pass: the orchestrator reads the playbook and the events so far and decides the next commands. By default that pass is itself a command, run as WASM on a worker in the system pool (10.2).

What each part owns

PartRunsOwnsNever does
Gatewaynoetl-gatewaysessions, request ids, the client's SSE streamrun tools or touch your data
Servernoetl-serverthe event log, the catalog, command records, the first commandsrun tools (it has no tool runtime)
Command busthe worker binary in host mode (cmdbus-writer)the durable command log and who claimed whatdecide what runs
Workersnoetl-worker, one Deployment per poolnothing between commandsread or write noetl.* directly; they call the server's API

Sections

10.5 is not written yet

Section 10.5 steps through the event log of one real execution with the book's trace viewer (T-05). That needs an execution captured from a stack running tagged releases, which the book does not have yet. The event sequence it will show is already listed in 10.2.

Where the runtime's records live

Postgres holds the event log of record, EHDB carries the buses, and ehgraph (embedded, off by default) holds topology as a read model. 15.1 puts the three side by side.

Check your understanding