Pattern 66 / EXECUTE

Fan-Out / Fan-In

Use this when Parallelizing many independent subtasks and aggregating results.

Pressure
Parallelizing many independent subtasks and aggregating results
Mechanism
Split work into shards, run concurrently, then combine outputs once enough results arrive
Toll
Tail latency, partial failure, and result ordering become explicit concerns
Architecture plate66
Diagram for Fan-Out / Fan-In
Executive brief

Fan-Out / Fan-In fits when Parallelizing many independent subtasks and aggregating results. Mechanism: Split work into shards, run concurrently, then combine outputs once enough results arrive. Use it for Search, recommendation, batch enrichment, reporting. The toll: Tail latency, partial failure, and result ordering become explicit concerns.

Use when

Search, recommendation, batch enrichment, reporting.

Example

Use fan-out / fan-in when search, recommendation, batch enrichment, reporting..

Review framing

Describe the pressure first, then the mechanism, then the cost. That keeps the design grounded.

Same pressure family

Execution

64Work Queue65Priority Queue
โ† 6567 โ†’