Azure Durable Functions
If you decide to go further on the usage of serverless, you may consider Azure Durable Functions as a good option for designing orchestration scenarios. Azure Durable Functions will let us write stateful workflows, managing the state behind the scenes. To do so, you will have to write an orchestrator function, which is basically a procedure that defines the workflow that you want to run. You may also need some entity functions to enable the reading of small pieces of state.
These are some application patterns where this solution can be used; however, it is important to remind you that it is not appropriate for all applications:
- Function chaining: When you need to execute a sequence of functions in a particular order.
- Async HTTP APIs: A good way to solve long-running operations with external clients, where you will have the opportunity to get a status API as a result of the orchestrator function. There is a sample code of this pattern as...