ExitAWS Step Functions vs AWS Lambda: orchestration and computation1 / 10
Explanation

Separate execution from coordination

How durable workflow coordination differs from function execution, and where to place sequencing and transformation logic when choosing between the two services. · advanced

AWS Lambda executes application code. An ordinary event-function invocation owns its local call stack while it runs; successful completion does not create a durable record of an application's remaining steps. Calling several services inside one handler makes that handler responsible for their sequencing.

AWS Step Functions executes a state-machine definition. A Standard Workflow persists workflow progress across task boundaries, so coordination does not depend on keeping a function invocation alive. It records which state is running and carries workflow data between states; it does not execute an arbitrary Python package itself.

This is a distinction between durable coordination and ordinary function execution, not a claim that Lambda can never orchestrate. Lambda durable functions offer a code-first durable workflow model. Here, the comparison is between a Step Functions Standard Workflow and ordinary Lambda task invocations; Express Workflows have different execution and history semantics.

ConcernStep Functions StandardOrdinary Lambda invocation
Executable unitState-machine definitionApplication handler
Progress ownershipPersisted workflow stateLocal call stack
Custom librariesDelegate to computeRun in function
Next service callWorkflow transitionApplication code

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.