AWS Step Functions

- Model your workflows as state machines
- Useful for Order fulfillment, Data processing
- Web applications
- Written in JSON
- Visualise and execute the workflow
- To trigger a workflow, we can use
- SDK
- API Gateway
- Event Bridge
- Involves one or many States
Standard vs Express workflows
- Express workflows allow you to do short duration but a lot of execution per second
| | Standard Workflows | Express workflows |
| --------------------- | ---------------------------------- | -------------------------------- |
| Maximum duration | 1 year | 5 minutes |
| Number of execution | 2000 executions per second | > 100,000 executions per second |
| State transition rate | 4000 state transition per second | nearly unlimited |
| Pricing | Per state transition | Per number of executions |
| Execution history | Step function API, CloudWatch Logs | CloudWatch Logs |
| Execution semantics | Exactly-once workflow execution | At-least-once workflow execution |