Task Orchestration Patterns
These patterns compose and coordinate multiple units of work within a Workflow — decomposing large processes into reusable pieces, running work concurrently, and racing alternatives against each other.
Patterns in this section
Child Workflows
Decomposes a complex Workflow into smaller, reusable units. Each child has its own Workflow ID, history, and lifecycle.
Parallel Execution
Runs multiple Activities concurrently for higher throughput, with error handling and a bound on how many run at once.
Pick First (Race)
Starts multiple Activities in parallel, takes the first result to arrive, and cancels the rest.
Choosing a pattern
A process is large or reused across Workflows: break it into Child Workflows with independent histories.
Independent work can run at the same time: use Parallel Execution with a concurrency bound.
Several approaches compete and you want the first to finish: use Pick First (Race) and cancel the losers.
Related sections
- Batch Processing Patterns — fan-out orchestration scaled to large record sets
- Performance & Latency Patterns — reduce the latency of the work each task performs