---
title: AWS Step Functions
description: Serverless workflow orchestration service for coordinating distributed applications and multi-step processes using visual state machines.
url: https://www.factualminds.com/glossary/aws-step-functions/
publishDate: 2026-06-13
updateDate: 2026-06-13
---

# AWS Step Functions

> Serverless workflow orchestration service for coordinating distributed applications and multi-step processes using visual state machines.

## Definition

AWS Step Functions coordinates distributed work as **state machines** defined in Amazon States Language (JSON or YAML). Each state represents a step — invoke Lambda, call an AWS service integration, wait, branch, parallelize, or map over a collection. Step Functions owns retries, error routing, timeouts, and execution history so application code focuses on business logic. It is widely used for order processing, ETL, ML pipelines, microservice sagas, and multi-step **GenAI agent** workflows that chain Bedrock, Lambda tools, and human approval.

## When to use it

- Multi-step processes needing **declarative retry, catch, and parallel** logic without custom orchestration code
- **Long-running workflows** (Standard, up to one year) with auditable execution history — approvals, batch jobs, provisioning pipelines
- **High-volume, short workflows** (Express, up to five minutes) for event-driven processing at scale
- **AI agent orchestration** where you want a visible audit trail of model calls, tool invocations, and human checkpoints
- Direct **AWS SDK integrations** (220+ services) to avoid Lambda wrappers for simple service calls

## When not to use it

- Single synchronous Lambda or API call with no branching — Step Functions adds latency and cost
- Sub-second latency requirements on high-QPS paths — Express still adds orchestration overhead
- Teams that prefer **code-centric durable execution** in Lambda alone — Lambda Durable Functions may fit developer-centric workflows
- Workflows dominated by complex data transformation better expressed in application code than ASL

## Tips

- Put **orchestration in the state machine** — retries, waits, parallel branches, and error handlers belong in ASL, not buried in Lambda
- Use **Standard** for auditability and `waitForTaskToken`; use **Express** for throughput — Standard per-transition pricing hurts at high volume
- **`waitForTaskToken`** pauses until an external system returns a token — prefer this over polling loops for human approval or third-party callbacks
- For Bedrock agent flows, combine Step Functions with **Express** or **Standard** based on duration and audit requirements
- Export execution history to CloudWatch Logs for Express workflows — history is not retained in the Step Functions console like Standard

## Gotchas

### Serious

- **Wrong workflow type:** Standard workflows on high-frequency short jobs inflate bills; Express on processes needing long audit trails loses durable history in-console.
- **Lambda-as-glue anti-pattern:** Wrapping every AWS call in Lambda when an optimized integration exists adds failure points and cold starts.
- **Non-idempotent Express tasks:** Express delivers at-least-once — side effects without idempotency keys duplicate charges or records.

### Regular

- ASL JSON errors fail at deploy time with cryptic line references — validate with `aws stepfunctions validate-state-machine-definition`
- Map state concurrency defaults can overwhelm downstream APIs — tune `MaxConcurrency`
- Large payloads between states hit Step Functions input/output size limits — store blobs in S3 and pass references

## Official references

- [What is Step Functions?](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html) — state types, integrations, and ASL
- [Standard vs Express workflows](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-standard-vs-express.html) — choosing workflow type

## Related FactualMinds content

- [AWS Serverless Services](/services/aws-serverless/)
- [Generative AI on AWS Bedrock](/services/generative-ai-on-aws/)
- [AWS Well-Architected Review Checklist](/blog/aws-well-architected-framework-6-pillars-explained/)

## Related AWS Services

- aws-serverless
- generative-ai-on-aws

## Related Posts

- aws-well-architected-framework-6-pillars-explained

---

*Source: https://www.factualminds.com/glossary/aws-step-functions/*
