Standard vs Express & Common Patterns
Choose the right workflow type, then learn the patterns you'll reuse.
1 min read
| Standard | Express | |
|---|---|---|
| Max duration | Up to 1 year | Up to 5 minutes |
| Execution semantics | Exactly-once | At-least-once (async) |
| Pricing | Per state transition | Per request + duration |
| History | Full visual history for 90 days | Sent to CloudWatch Logs |
| Best for | Long-running, auditable business processes | High-volume, short event processing |
Patterns you'll reuse
- Human approval: a Task with
.waitForTaskTokenpauses until your app callsSendTaskSuccesswith the token, for example when a manager clicks "Approve" in an email. - Run a job and wait:
.syncintegrations start a job (ECS task, Glue, SageMaker training) and wait for it to finish. - Distributed Map: process millions of S3 objects in parallel, with built-in batching and failure tolerance.
- Saga / compensation: if step 3 fails, Catch runs "undo" steps for steps 1 and 2, like refunding a payment.
Start an execution
Terminal
aws stepfunctions start-execution --state-machine-arn arn:aws:states:us-east-1:123456789012:stateMachine:notesnap --input '{"noteKey": "notes/todo.txt"}'Then watch it run, step by step, in the console's graph view.
Tip
Trigger executions from EventBridge rules (e.g. on S3 Object Created), from API Gateway, or from
EventBridge Scheduler.
Key takeaways
- Standard for long, auditable workflows, Express for high-volume short ones.
- waitForTaskToken enables human approvals, and .sync waits for jobs to finish.
- Distributed Map scales to millions of items.
Check your understanding
Pick an answer to see the explanation.
1. A workflow must wait up to 3 days for a manager's approval. Which type?
Next in “Make it production-ready”
You finished Step Functions. Continue with the Cognito tutorial