We have already discussed quite a bit about Azure Durable
Functions. I did write up on a bit of history and why we need
Azure Durable functions. You can read my blogs here to get more
information.Links:
Why do we need Azure Durable Functions and its history
I also wrote about
What are Azure durable functions
What is difference between Azure Durable Function and Logic
Apps
Patterns and Best Practises - Azure Durable Functions
All above is good but nothing better than actual implementation.And I wanted to keep things simple and straightforward. In this blog, I will implement Azure Durable functions in the simplest possible way. I will show you step by step approach so that you don't get stuck. What will you need?
In order to debug the code,you must have
Azure Function Core Tools installed. You will get a prompt
if you don't have one.Prompt will redirect you to github link
Github link to download core tools
Download the MSI that suits your machine. I downloaded Windows
64-bit MSI. Image for reference below
Just follow default setup and install the MSI. Incase even after
installing tools you are unable to run in debug mode, restart the
visual studio code
Once you run above, you will get below response on the client. In
this case since we are using Postman you can see the response in
the Postman Client
Image for ref below
What you should know is that what did orchestrator actually
produce. For that you have to click on
statusQueryGetApi and do another postman request.This time
you will see below response. Image for ref below
What we get as response is array consisting of the responses from
all activity functions
To conclude,I hope you would have got the basics of various application patterns available and that can benefit from Azure Durable function.