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.
| Concern | Step Functions Standard | Ordinary Lambda invocation |
|---|---|---|
| Executable unit | State-machine definition | Application handler |
| Progress ownership | Persisted workflow state | Local call stack |
| Custom libraries | Delegate to compute | Run in function |
| Next service call | Workflow transition | Application code |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.