Concepts

AWS Step Functions

AWS serverless orchestration service that coordinates multiple services into visual workflows, with built-in error handling, retries, and parallel execution.

seed#aws#step-functions#orchestration#serverless#workflow#state-machine

What it is

AWS Step Functions is an orchestration service that coordinates multiple AWS services into serverless workflows. It defines flows as state machines with steps, conditions, parallelism, and error handling — all visual and declarative.

Workflow types

TypeDurationCostUse
StandardUp to 1 yearPer transitionLong, durable workflows
ExpressUp to 5 minPer execution/durationHigh volume, low latency

Available states

StateFunctionExample
TaskExecute workLambda, ECS, API call
ChoiceConditional branchingValidate input, route by type
ParallelParallel branch executionProcess data + send notification
MapIteration over arraysProcess each item in an order
WaitTime-based pauseWait 24h before retry
PassData transformationReformat payload between steps
Succeed/FailExplicit terminationMark workflow as completed or failed

Common patterns

  • Saga pattern: distributed transactions with compensation
  • Human approval: pause workflow awaiting approval
  • ETL pipelines: data processing in steps
  • AI/ML pipelines: orchestrate training and inference

Why it matters

Step Functions turns complex workflows into visual, auditable state machines. Instead of orchestrating Lambda with custom code, you define the flow declaratively with built-in error handling, retries, and parallelism.

References

Concepts