Core Concepts

Core Concepts

The mental model behind Ductor — the execution and routing engines that implement the clearing lifecycle, driven by a single-writer coordinator over Postgres and Redis.

Ductor clears work through one lifecycle — priced → routed → executed → settled → proven. This section is the engine vocabulary underneath that lifecycle: the concepts here are how a work item (Routable) actually gets executed and routed. The public primitives — Work, Route, Settlement, and the Receipt — are defined in the glossary; the pages below are the mechanisms that carry them.

Under the hood Ductor is two engines sharing one substrate. A Go DAG workflow engine runs durable, multi-step processes (the executed stage); a routing engine turns an incoming event into a concrete assignment (the routed stage). Both sit on Postgres (the source of truth) plus Redis/Dragonfly (wakeups and hot counters), and both are driven by the same shape: a single-writer coordinator — the "tick" engine — owns all state transitions, while stateless workers execute the side effects in parallel and only ever append results.

Read this section before the deeper Architecture, Strategies, Workflows, AI, and SDK sections — each of those assumes the model laid out here.

The concepts