Workflowscore
Parallelisation (sectioning & voting)
Run independent LLM calls at once: different subtasks (sectioning) or the same task several times (voting).
What it is and why it exists
Sectioning splits a task into independent parts (check policy A, B and C at once); voting runs the same prompt several times and aggregates for confidence. Latency is the slowest branch; cost is the sum.
Quick prototype
asyncio.gather over a few calls.
In production, at scale
Concurrency limits under provider rate limits, timeouts per branch, partial-result handling, and aggregation logic that is itself tested.
Vendors and tools
| asyncio / Promise.all | Plain concurrency |
|---|---|
| LangGraph Send / map-reduce | Fan-out in graphs |
On AWS: Step Functions Parallel and Map states.
How it fails
- Fan-out of 50 calls hitting the rate limit
- One slow branch holding the whole response
What the interviewer asks next
When is voting worth it?
For high-stakes classifications where disagreement is a useful signal: run 3–5 times, take the majority, and escalate when votes split.