How it works · Process management

Split, run in parallel, aggregate, durably

A trigger starts a long job: a tree of processes stored in your database. Each one walks a state machine; every consequence of every step is written to a durable outbox in the same transaction; workers in their own deployables do the splitting, the work and the aggregation and report back; and when the job ends, the next one in the chain begins.

A process run: trigger, split, parallel execution, aggregation and chaining A trigger is recorded in the durable outbox and creates a billing root process. Its state change and the next task commit together in the database, with no distributed transaction. The dispatcher publishes the work to the client's own topic, consumed by a separate worker deployable; the splitter divides it into three parts, each a child process with its own executor; each child signals the parent once; the aggregator combines the results; ProcessCompleted starts the successor process, invoicing. The operations UI shows the trigger, the processes and the chain. Variants show a failing part and a second client with its own topic. Process manager server · one deployable, owns the database workers · acme · scale on their own triggerscron · files · /trigger durable outbox0 rows billing (root)· billing-part 1· billing-part 2· billing-part 3· ProcessCompletedEMIT_COMPLETED invoicing (successor)· process-uitriggers · processes · trace topicwork-acme splitterSPLITTER executorsEXECUTOR aggregatorAGGREGATOR globex: its own topic and workerswork-globex · not slowed by acme ProcessCreate same transaction sub-processes reads dispatcher publishes report back over HTTP: splitDone, done…, aggregationDone
scenario
client
view
Step 1

Exchange

Payload

Nothing is lost, and no XA

A state change and the commands it causes (start a worker, create a child, signal the parent, announce completion) commit together in one database transaction. A dispatcher runs them later, with retries and a dead-letter state for replay, so no distributed transaction with the broker is needed.

Nothing is counted twice

Delivery is at least once, so every effect has an idempotency key: a child counts toward its parent once, a successor starts once, a worker start is recorded once, whatever is replayed.

Workers scale apart, per client

Workers are plain typed listeners in their own deployables, which never touch the process database; JGen generates the server and the workers separately. Topics can be named per client, so each client's workers scale on their own and no client is a noisy neighbour.