Introduction

This is a series of articles to get our hands dirty with Durable Functions and their patterns in detail.

It will cover the following things,

What are Durable Functions?

Supported languages

Application patterns

The following application patterns can benefit from Durable Functions:

Pre-requisites

These are pre-requisites to start working on durable functions

Hands-on Lab – Create a durable function in C#

Steps to be followed,

Open VS 2019 and create a project.

Choose the Azure function template and create a directory.

Getting Started With Durable Functions

Choose durable functions orchestration template.

Getting Started With Durable Functions

Once the application has been created, we can see three functions,

Getting Started With Durable Functions

Run (F5) the application and see all the functions that have been listed here.

Getting Started With Durable Functions

Copy the URL of Function1_HttpStart and run it in the browser.

Getting Started With Durable Functions

Copy the URL of statusQueryGetUri (GET URLK) and run it in the browser.

Getting Started With Durable Functions

Here, you can see the response from Function1 which got instantiated from Function1_HttpStart with the desired output.

Hands-on Lab – Deploy durable function on Azure

Steps to be followed,

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

Getting Started With Durable Functions

Choose an option as Azure function app (Windows).

Getting Started With Durable Functions

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

Getting Started With Durable Functions

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 above while creating durable functions.

This is a basic example of orchestration calling the same function multiple times.

There are multiple patterns that represent the use-cases of durable functions, stay tuned for the next series of articles to get the hang of it.

Happy learning!