Parallelization

Split the work. Run in parallel. Merge the results.

Independent subtasks are processed in parallel and either merged (sectioning) or the best result is selected via an aggregator (voting).

Level
02 · Workflow
Also known as
Sectioned Parallelism, Ensemble Voting, Fan-out, Divide and Process
Trade-off
Lower latency and higher robustness are gained against increased integration complexity and multiple execution costs.
Native in
Google ADK, Microsoft Agent Framework, AWS Strands, LangGraph
The effect

What it actually does.

Independent sub-tasks run at once, then combine.

taskbranch 1branch 2branch 3combined
Walk it through

A real run, step by step.

TaskReview a 40-page supplier contract. Three independent checks run at the same time, then one step merges them:
Illustrative timings. In sequence 46 seconds, in parallel 21.
BranchChecksSecondsFinding
LiabilityClauses 8 to 1214No cap on liability
PricingAnnex A11Price index clause is in order
Data protectionClause 15 and the processing agreement16List of sub-processors is missing
AggregatorThe three findings5One report with two open points
What this shows: the run takes as long as the slowest branch plus the merge, not the sum of all branches. The token cost does not fall; the merge adds to it. The branches here are different and fixed when the workflow is designed. That separates sectioning from Map-Reduce, where one and the same step runs over as many chunks as the input happens to have.
In code

The pattern in code.

Plain Pythonpython
import asyncio

async def review(contract):
    # sectioning: fixed, different branches
    liability, pricing, privacy = await asyncio.gather(
        check_liability(contract),
        check_pricing(contract),
        check_privacy(contract),
    )
    # the aggregator writes one report
    return await merge(liability, pricing, privacy)
Fit

Use it, or not.

When to reach for it

  • The input is naturally segmentable and tasks are independent to reduce latency (sectioning).
  • Robustness is more important than single execution costs (voting).

When it backfires

  • Strong dependencies exist between segments.
  • Semantic merging is difficult.
  • Latency and token budgets are strictly limited.
Pitfalls

Two ways this pattern will hurt you.

Chunks that aren't actually independent

The split creates chunks that share implicit context. Workers produce incompatible partial results that can't be merged.

Countermeasure

Validate independence before splitting. If chunks share state, use a pipeline instead of parallelization.

Join logic assumes uniform chunk shape

One worker returns a list, another returns a dict. The join step crashes or silently drops data.

Countermeasure

Define a schema contract for every worker output. Reject non-conforming responses before merging.

Framework support

Where Parallelization is native.

Google ADKparallel branchesNative
Microsoft Agent Frameworkconcurrent agentsNative
AWS Strandsparallel toolsNative
LangGraphparallel node fan-outNative
Claude CookbooksRecipesdocumented as a recipeAdaptable
Pydantic AIfan-out with asyncioAdaptable

Search

Search patterns, frameworks, and pages.