Certablo
← Knowledge Base

AWS Step Functions: Workflow Orchestration

State-machine orchestration with Amazon States Language, Task and control-flow states, Standard versus Express execution, service integrations, retries, catches, timeouts, and Map concurrency.

AIP-C01SAA-C03DVA-C02DEA-C01

Visual overview

DATA & EVENT FLOWIngest, buffer or route, transform, query, and present according to the workload
01IngestStreams · events · messages
02DecoupleQueues · topics · buses
03ProcessETL · big data · workflows
04AnalyzeSQL · warehouse · dashboards
Analytics and integration are connected but distinct: one moves and coordinates data or events; the other turns stored or streaming data into answers.
AWS SERVICE MAPExplicit service orchestration

Step Functions coordinates application tasks and can wait for or control longer-running AWS service work.

AWS Step FunctionsOwn workflow state and transitions
AWS LambdaExecute application tasks
Amazon EMRRun analytical jobs
EXAM-RELEVANT MECHANICS

Technical reference

The exam-relevant mechanics are state transitions, execution semantics, retry/catch order, and integration behavior.

DefinitionAmazon States Language

ASL defines named states, their configuration, transitions, input/output transformations, and terminal states.

Task workService integration / Lambda / activity / HTTP

A Task state performs one unit of external work and can use integration-specific request/response patterns.

Retry backoffIntervalSeconds × BackoffRate

Each retrier matches error names and controls initial delay, exponential-style interval growth, and MaxAttempts.

Fallback orderRetry → Catch → fail

Matching retriers run first; when retries are absent or exhausted, a matching catcher can transition to recovery logic.

Map processingInline / Distributed

Map iterates over data; Distributed mode can create child workflow executions for large-scale parallel item processing.

Execution modelStandard exactly once · Async Express at least once · Sync Express at most once

Execution guarantees are part of workflow selection, in addition to duration, auditability, and supported integration patterns.

Step Functions makes workflow control flow explicit

AWS Step Functions models workflows as state machines defined with Amazon States Language (ASL). Rather than embedding every transition, retry, and branch inside application code, a state machine represents steps and their transitions declaratively. Task states perform work through Lambda, AWS service integrations, activities, or supported HTTP integrations, while states such as Choice, Wait, Parallel, Map, Succeed, and Fail express control flow.

This makes Step Functions an orchestration service: it knows the workflow's intended sequence and decides which step comes next. That differs from event choreography, where components react to events without one central workflow owning the complete path. Orchestration is particularly useful for multi-step business processes whose branching, retries, and execution history must be understandable as one unit.

Standard and Express workflows expose different execution semantics

Standard Workflows are designed for durable, auditable executions and follow an exactly-once workflow execution model unless Retry behavior causes a task to run again. Their execution history and long-running nature fit business processes where each transition should be traceable. Express Workflows target high-event-rate, short-duration workloads: asynchronous Express executions use an at-least-once model, while synchronous Express executions use an at-most-once model.

The choice should therefore follow semantics and workload shape rather than assuming Express is merely a faster Standard workflow. Non-idempotent actions are typically safer under Standard's execution model, while high-volume idempotent event processing can fit Express. Supported integration patterns also differ, so workflows that depend on callback task tokens or job-run synchronization must use a workflow type that supports those patterns.

  • Task: invoke work through a supported integration.
  • Choice: branch according to input/state data.
  • Parallel: run independent branches concurrently and wait for their completion.
  • Map: apply a workflow to items, with Inline and Distributed processing modes.
  • Wait: pause until a relative or absolute time condition.

Retry, Catch, and timeouts define failure semantics

When a supported state fails, a Retry rule can match error names and schedule another attempt. IntervalSeconds sets the initial delay, BackoffRate grows subsequent delays, and MaxAttempts limits retry attempts. After matching retriers are exhausted or no retrier matches, Catch rules can route the error to a recovery state. Retriers are evaluated before catchers, which matters when predicting the actual failure path.

Timeouts should be explicit for work that could otherwise wait indefinitely. Task and activity states support timeout-related fields according to their integration model, and heartbeat settings can detect workers that stop reporting progress. Retry does not make a side effect safe: every retried task that may partially succeed should be designed for idempotency or use a service-specific idempotency mechanism.

Key takeaways

  1. 01

    Step Functions is workflow orchestration expressed as Amazon States Language state machines.

  2. 02

    Task, Choice, Parallel, Map, Wait, Succeed, and Fail states model distinct control-flow responsibilities.

  3. 03

    Standard and Express workflows differ in durability, auditability, throughput, supported patterns, and execution semantics.

  4. 04

    Retry is evaluated before Catch; backoff and attempt settings determine retry timing and exhaustion.

  5. 05

    Idempotency still matters because retries can repeat external side effects.

Official AWS sources

Use these primary AWS resources for the source material behind this article and for deeper reference.