SPINE Interactive Demo

Fan-Out Simulator

Visualize how parallel task execution works with configurable workers and task counts.

Status: Reference pattern. Parallelism / fan-out on the compiled execution path remains deferred. The two adopted transports (CLI cmd_execute, HTTP post_execute) run compiled plans sequentially via PlanExecutor. This demo illustrates the pattern's shape, not current production behavior.

Configuration

2 20
1 (sequential) 10

Task Execution

Task Queue

How Fan-Out Works

Fan-out distributes independent tasks across multiple workers for parallel execution. Each worker processes one task at a time from the queue.

tasks = [task1, task2, ..., taskN]
results = fan_out(tasks, max_workers=3)
# Tasks run in parallel, results aggregated

The max_workers parameter limits concurrency. More workers = faster completion (up to the task count), but higher resource usage.