Async patterns in Step Functions
From time to time we need our State Machines to wait for some async action, for example a webhook call, and we created a mechanism which we use all over our systems for that. We used it also to create a "recovery" pattern which we utilize to prevent fatal errors in executions.
![](https://blog.purple-technology.com/content/images/2021/11/image.png)
Get your free conference access and learn more about Serverless:
Serverless Summit 21
Serverless Summit 2021 is a global fully online event organised by globaldatanet. It will comprise 2 days with each 4 hours of content, fully focused on serverless and AWS.
![](https://static.wixstatic.com/media/f8d794_14da579dc4464a239cd52e19f70d182c~mv2.jpg/v1/fit/w_2500,h_1330,al_c/f8d794_14da579dc4464a239cd52e19f70d182c~mv2.jpg)
You can read more about this topic also in Radovan's blog post:
Asynchronous actions with AWS Step Functions
Callback Patterns are a very powerful feature of AWS Step functions, providing an easy way how to control the state machine execution flow. Let’s build a scalable solution which helps us track the current state of an execution and handles external asynchronous actions triggered by other services.
![](https://blog.purple-technology.com/content/images/2021/11/WebTech-Blog-Rectangle--1--1.jpg)