Skip to main content

What are serverless workflows?

Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.

What are serverless workflows?

A serverless workflow coordinates a sequence of tasks with a managed service that stores execution state, applies transitions, and handles control flow without requiring the application team to operate a workflow server fleet.

How this topic fits

Workflows

Coordinate multi-step work with visible state, retries, timeouts, compensation, approvals, and long-running business processes.

Why distributed work needs coordination

A business operation often spans validation, data changes, external APIs, notifications, and recovery. Embedding the entire sequence in one function can hide state and make partial failure difficult to inspect or resume.

A workflow makes steps, branches, waits, retries, and terminal outcomes explicit. The execution history becomes an operational artifact that shows what ran, what failed, and what input reached each decision.

Run tasks in a defined order and pass only the data each step needs.

Branch, wait, repeat, or run tasks in parallel based on explicit state and rules.

Retry transient failures, catch expected errors, compensate changes, or resume from a reviewed point.

Orchestration and choreography

Orchestration uses a central workflow definition to decide which task runs next. It provides a visible control path and is useful when the end-to-end operation needs one owner or audit trail.

Choreography lets services react to events without a central coordinator. It can reduce central coupling, but the complete business path becomes harder to see. A system can use orchestration within one process and events between independently owned processes.

Design task and state contracts

Give each task a bounded responsibility, typed input, explicit output, timeout, and error taxonomy. Avoid passing the full workflow document through every step when a stable identifier and narrow state are enough.

Decide which state belongs in the workflow history and which belongs in a durable domain store. Protect sensitive data, constrain execution history access, and plan how schema changes affect executions already in progress.

Long-running work and human approval

Managed workflows can pause for a timer, external callback, or human decision without holding a compute process open. That makes them useful for approvals, fulfillment, data pipelines, and integrations with uncertain completion times.

Define expiration, escalation, cancellation, duplicate callback, and operator-recovery behavior. A workflow that waits safely still needs a clear owner and an alarm when the expected external action never arrives.

Go deeper with AWS

Read the primary AWS documentation behind the service definitions and architecture guidance in this guide.

Explore serverless products

Questions about this topic

Browse all serverless concepts

Explore compute, APIs, events, workflows, data, security, reliability, operations, delivery, and AI from one connected AWS serverless learning path.

What is serverless?

Learn what serverless computing means, how it works on AWS, what the cloud provider manages, and which trade-offs still belong to your team.

Read the guide

What is AWS Lambda?

Understand how AWS Lambda runs code, how functions are invoked, where permissions and state live, and when Lambda is a good compute choice.

Read the guide

What is serverless architecture?

Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.

Read the guide

AWS serverless security

A practical guide to identity, least privilege, event validation, secrets, data protection, dependencies, and incident visibility in AWS serverless systems.

Read the guide

What is agentic AI?

Learn what makes an AI system agentic, how models, tools, memory, orchestration, identity, and evaluation fit together, and where serverless patterns help on AWS.

Read the guide

What is cloud computing?

Understand how on-demand infrastructure and managed services change the way teams provision, scale, pay for, and operate software systems.

Read the guide

What is event-driven architecture?

Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.

Read the guide

What is a serverless API?

Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.

Read the guide

What are serverless workflows?

Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.

Read the guide

What is Amazon API Gateway?

Learn how API Gateway creates, publishes, secures, monitors, and operates HTTP, REST, and WebSocket APIs for AWS and external backends.

Read the guide

What is Amazon EventBridge?

Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.

Read the guide

Make the next serverless decision explicit.

Explore focused products for repeatable work, or bring the architecture decision that needs context and experienced review.