Durable Coordinator ​
The durable coordinator is the self-hostable control-plane boundary for QUEUE_ASYNC execution.
It owns execution state, leases, retry/DLQ, await units, release activation, worker dispatch, and status/result APIs. Step code still runs in workers: local in-process workers, REST workers, gRPC workers, or SQS request/reply workers.
If you are trying to understand what happened to the old "orchestrator", start with Coordinator And Worker Topology. For durable execution, self-host HA separates coordinator and transition-worker roles. The generated orchestrator still provides application entrypoints: synchronous execution can run directly, while asynchronous admission uses the control plane. Module/configuration names alone do not identify which role a process hosts.
This section is implementation-facing. Application usage remains in Orchestrator Runtime. The first runnable reference is pipelineframework-examples/restaurant-approval/self-host.
The compute-first self-host references and the AWS Durable host share bounded PipelineControlPlane actions. Native sweep/poller loops host those actions in long-running processes; AWS Durable hosts mechanical checkpointing, suspension and wake-up while TPF retains semantic authority. ADR-0069 adopts AWS Lambda Durable Functions as the preferred AWS coordination host. The adapter spike and deployed fault proof record the earlier proof stages. Current packaging and operations are in AWS Durable Coordination; remaining qualification gates are in the production completion plan.
Current Shape ​
| Area | Current state |
|---|---|
| Execution state | ExecutionRecord with leases, attempts, status, result, pinned pipeline/contract/release identity, and optional page state |
| Await state | AwaitUnitRecord plus pending/completion interaction records |
| Worker boundary | portable command/result envelopes over local, REST, gRPC, or SQS |
| Contract/release identity | generated META-INF/pipeline/pipeline-contract.json, release descriptor registration, activation, execution pinning, and worker identity validation |
| Self-host path | compute-first HA references using restaurant approval and CSV Payments |
| AWS coordination host | AWS Durable over bounded TPF actions; SQS worker boundary; qualification limits tracked separately |
An eligible live itemized await remains in the active transition worker and follows a COMPLETED branch when its terminal stream finishes. For a paged source, COMPLETED means that one page can advance or finalise; it does not by itself mean that the logical execution succeeded. WAITING_EXTERNAL is the outcome for an await that requires durable fallback, not a mandatory outcome for every await boundary.
Guides ​
- Coordinator And Worker Topology explains the role split behind
orchestrator-svc, coordinator processes, and transition workers. - Worker Protocols explains local, REST, gRPC, and SQS transition workers.
- Step-Aware Invocation Runtime explains the shared invocation seam used by pipeline steps and transition workers.
- Circuit-Breaker Invocation Admission records the scope guarantee and transport-boundary admission seam.
- Brokered Runtime Boundaries is the entry point for Kafka/SQS-style substrates under TPF-owned semantics.
- Boundary Taxonomy maps broker concepts into TPF runtime boundaries.
- Dispatch Substrates separates substrate policy from transport, platform, and payload policy.
- Envelope And Data Policy separates loose payloads from strict TPF control metadata.
- Contract And Release Identity explains generated contracts, release activation, and execution pinning.
- Pipeline Contract And Release Model describes contract/release descriptors, artifacts, deployment plans, and drift detection.
- Runtime Boundaries And Performance explains runtime mapping, patterns, package boundaries, and hot-path guardrails.
- All-Serverless Durable Coordinator records the historical single-shot action design, replaceable loops and AWS-shaped local proof; its proof-stage limitations are not the current AWS host support matrix.
- Durable Workflow Backend Adapter Spike maps provider identities, callbacks, retries, history, DLQ, and re-drive onto the TPF-native action model and records the production-adoption gaps.
- AWS Durable Coordination Host records the deployed fault evidence, ownership boundary, and promotion gates.
- AWS Engagement Brief captures the remaining callback, history, limits, and recovery questions for AWS engineering.
- Local APIs documents the current default-disabled control-plane and admin APIs.
- Self-Hosted Deployment gives the production-ish self-host topology, configuration, and operator runbooks.
- Self-Hosted HA Roadmap records the milestone closeout and deferred hardening.
- Self-Hosted Milestone gives the adoption entry points and current proof matrix.
- AWS Durable Production Completion Plan records the merged host audit, remaining support gates, proof disposition and bounded implementation sequence.
Limits ​
The current coordinator path does not dynamically load registered JAR code. Workers must already host matching pipeline code and validate active pipelineId + contractVersion + releaseVersion identity.
The Dynamo release registry provides multi-coordinator release metadata, while the file-backed registry remains local/dev oriented. Minimal worker lifecycle gates new hosted submissions. Single-execution re-drive is present. Bulk DLQ-message replay and append-only execution/await state are deferred hardening work, not blockers for the current compute-first self-host HA milestone.