Introduction

It will cover the following things,

Application patterns

The following application patterns can benefit from Durable Functions,

Pre-requisites

These are pre-requisites to start working on durable functions,

What is Async HTTP APIspattern?

Durable Functions - Patterns - Async HTTP APIs

Hands-on Lab – Create durable function using Async HTTP APIs pattern in C#

Steps to be followed,

Here, you can see the response from Function1 which got instantiated from Function1_HttpStart with the desired output, and HTTP APIs pattern is used to extract the status of running function_1, so any HTTP trigger that can be used to interrupt or initiate the main function.

Hands-on Lab – Deploy a durable function using Async HTTP APIs pattern on Azure

Steps to be followed,

Right-click on the function and click on publish and choose target as Azure.

Durable Functions - Patterns - Async HTTP APIs

Choose an option as Azure function app (Windows).

Durable Functions - Patterns - Async HTTP APIs

Create/choose the new/existing resource group and resource for azure function deployment.

Durable Functions - Patterns - Async HTTP APIs

Click on Finish and let it get published and once published, go to the Azure portal and test the function app using the steps which we did in the above steps while creating durable functions

This is a basic example of Async HTTP APIs, where an HTTP trigger is used to extract the status of the instance

There are multiple other patterns that represent where to use duration functions, stay tuned for the next series of articles to get a hang of it.

Happy learning!