AzureFunBytes Episode 65 – @Azure Durable Functions For Automation With @LBugnion
AzureFunBytes is a weekly opportunity to learn more about the fundamentals and foundations that make up Azure. It’s a chance for me to understand more about what people across the Azure organization do and how they do it. Every week we get together at 11 AM Pacific on Microsoft LearnTV and learn more about Azure.
When working on Azure, and especially when it comes to automating processes, Azure Functions (aka serverless functions) are very useful. But they also have some limitations. Functions are an extension of Azure Functions that overcome some of the serverless limitations. With Durable Functions, you can run long processes, execute multiple instances of functions in parallel, and more.
Durable Functions scale based on need which keeps costs under control when implementing complex workflows on Azure. Some of the key features of Durable Functions include:
- Using event driven code.
- Chaining functions together
- Orchestration and coordination of functions, including the order of execution.
- State is managed for you so you don’t have to write code to save state information for long-running functions.
Work on writing your code and not managing the infrastructure required. Let the Durable Functions framework take care of activity monitoring, synchronization, and runtime concerns. You can also use many of the popular programming languages you are already familiar with.
Durable Functions currently supports the following languages:
- C#: both precompiled class libraries and C# script.
- Python: requires version 2.3.1 of the Durable Functions extension, or a later version.
- F#: precompiled class libraries and F# script. F# script is only supported for version 1.x of the Azure Functions runtime.
- PowerShell: Supported only for version 3.x of the Azure Functions runtime and PowerShell 7. Requires version 2.x of the bundle extensions.
To help me learn more about Azure Durable Functions I’ll welcome back to the show Microsoft Senior Cloud Advocate, Laurent Bugnion. Laurent will discuss how he used Durable functions to automate important processes at Microsoft, update web pages and help create the Learn Live series of shows.
Our agenda includes:
- Functions are awesome when combined with automation triggers
- Some of the limitations can be overcome by using durable functions
- If you do something twice, it’s worth automating. In our case, we avoid a lot of copy-paste.
00:00:00 – Opening
00:01:19 – Azure Functions Trailer
00:04:03 – Welcome to the show Laurent
00:08:39 – The always important, “So how’d you get here?” question
00:14:10 – Introduction to Azure Functions
00:16:17 – Web API with Azure Functions
00:19:11 – More use cases
00:21:25 – How did Laurent use Durable Functions?
00:26:41 – Supported languages
00:29:30 – Visual Studio 2022 and Azure Durable Functions
00:48:00 – Creating a new Azure Functions Project with VSCode
00:52:53 – Laurent and I chat a bit about heavy metal! 🤘
More about Laurent Bungion:
I work as Senior Cloud Developer Advocate for Microsoft Azure after almost 10 years spent working for IdentityMine and Valorem, two leading firms in Microsoft technologies. I code in Azure, .NET, Windows, WPF, Xamarin (iOS and Android), ASP.NET (Core and Classic).
On my free time, I write for technical publications such as MSDN Magazine, publish technical videos on YouTube and Microsoft Channel 9, and my blog is on blog.galasoft.ch. I am a frequent speaker at conferences such as Microsoft Ignite, Microsoft Build, TechEd, VS Live, Techorama and many other international events.
Prior to joining Microsoft, I was a Microsoft Most Valuable Professional for Windows development from 2007 to 2017, a Microsoft Regional Director from 2013 and a Xamarin Most Valuable Professional from 2015. I am also the author of the well-known open source framework MVVM Light for Windows, WPF and Xamarin.
Learn about Azure fundamentals with me!
Live stream is normally found on Twitch, YouTube, and LearnTV at 11 AM PT / 2 PM ET Thursday. You can also find the recordings here as well:
Get $200 in free Azure Credit
Microsoft Learn: Introduction to Azure fundamentals
Microsoft Learn: Create serverless applications
Microsoft Learn: Create a long-running serverless workflow with Durable Functions
Introduction to Azure Functions
Azure Functions documentation
Durable functions patterns
A presentation about durable functions
Repo with durable functions patterns (work in progress)