Standard vs Express & Common Patterns

Choose the right workflow type, then learn the patterns you'll reuse.

1 min read
StandardExpress
Max durationUp to 1 yearUp to 5 minutes
Execution semanticsExactly-onceAt-least-once (async)
PricingPer state transitionPer request + duration
HistoryFull visual history for 90 daysSent to CloudWatch Logs
Best forLong-running, auditable business processesHigh-volume, short event processing

Patterns you'll reuse

  • Human approval: a Task with .waitForTaskToken pauses until your app calls SendTaskSuccess with the token, for example when a manager clicks "Approve" in an email.
  • Run a job and wait: .sync integrations 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. 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