ExitAWS Step Functions: Map state execution1 / 10
Explanation

Choose the execution boundary, not just the parallelism

How Inline and Distributed Map states control concurrent work, isolate item failures, and collect results for query fan-out and prompt regression suites. · advanced

A Map state applies an ItemProcessor workflow to a collection. For query fan-out, an item can be one decomposed query or expansion. For prompt regression, it can be one case with a stable case ID, prompt version, input, and expected checks. Map schedules independent work; it does not itself rank retrieved documents or decide whether a prompt passed.

Inline Map runs iterations inside the containing workflow execution, sharing its execution history. It consumes a JSON array and suits bounded fan-out whose history and results remain manageable. Distributed Map creates child workflow executions tracked by a Map Run, giving those children separate histories and supporting S3-backed datasets as well as arrays.

Distributed Map requires a Standard parent workflow; its children can use Standard or Express execution. Separate child histories reduce pressure on the parent history, but do not remove downstream capacity limits or make failed items harmless automatically.

PropertyInline MapDistributed Map
Execution unitIn-parent iterationChild workflow execution
HistoryParent historySeparate child histories
Input sourcesJSON arrayArray or S3 dataset
Containing workflowStandard or ExpressStandard only

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.