7
Most read
9
Most read
16
Most read
Durable Functions
Amresh Krishnamurthy
◈ Technical Architect, JCPenney
◈ BDotNet Member
◈ @amreshkris
Agenda
◈ Serverless in Azure
◈ Azure Functions
◈ Sample Problem
◈ Why we need Durable Functions !
◈ What is Durable Functions !
� Activity Functions
� Orchestrator
� How does it work?
� Workflows
� Error Handling and Resiliency
� Demo
Azure Serverless Compute
◈ Serverless computing enables developers to build applications faster by eliminating the
need for them to manage infrastructure. With serverless applications, the cloud service
provider automatically provisions, scales and manages the infrastructure required to run the
code.
Event
Grid
Logic
Apps
Azure Functions
Azure Functions - FaaS
Short Lived
Each function is short
lived for its executions
and resources freed-up
after one execution
Stateless
Functions don’t
maintain state
Event-driven |
Dynamic Scaling
Functions are triggered
through events such as
Http trigger, Timer,
Event grid etc.
Pay as per you use
Pay only for the time
the function actively
runs.
Sample Business Usecase & Solution
Function Chaining
Fan out- Fan
In
Async HTTP API Monitor
Aggregato
r
Approval
Hello, Durable Functions
Orchestration of Azure Functions
Durable Functions
are extensions of
Azure Functions.
Azure Function –
Stateless Vs Durable
Function – Can retain
state
Long running
orchestrations as a
single unit.
Coordinate and
Aggregate across
multiple
functions/workflows
Code driven. No
JSON schema files or
no designer involved
Built on Durable Task
Framework and Azure
Function.
Uses Azure storage
for maintaining state.
Components
Activity Function
◈ Activity Function – Performs Activity/Unit of work. Tasks being orchestrated
Book Hotel Book Flight
Compute
Total
Components
Orchestrator Function
◈ Orchestrator Function – Described how actions are executed and the order in
which they are run.
Orchestrate :
Book Vacation
Components
Client Function
◈ Client Function – Entry point for creating an instance of Durable function.
Trigger/Event Based
Trigger : Book
Vacation
Durable Function Flow
Starter Function
Orchestrator
Function
Activity Function
Demo
◈ Durable Functions – Function Chaining
◈ Fan Out- Fan In
◈ VS Code – Azure Storage Emulator
◈ Source Code - https://github.com/amreshkris/DurableFunctions-FanOutFanIn
How Durable functions works !
◈ Pattern Used – Event Sourcing – Maintains each step of the execution in Event/History
Table
◈ ``
Orchestration
Function Called
Orchestration Started
Activity Function F1
Called
Activity Function F1
Scheduled
Execution Instance
Started
Orchestration
Completed
Activity Function F1
Completed
Activity Function F2
Called
Orchestration Started
Activity Function F2
Scheduled
Orchestration
Completed
Orchestration Started
Activity Function F2
Completed
Orchestrator Execution
Completed
Error Handling | Resiliency
◈ Demo
Orchestrator Function Constraints
◈ Must be deterministic
◈ Avoid Date and Time related API – Use ‘CurrentUtcDateTime’ provided in Durable
functions context
◈ Random Numbers , Async API , Static Variables , Infinite loops etc
theCurrentUtcDateTime
References/Links
◈ https://docs.microsoft.com/en-in/azure/azure-functions/durable/
◈ https://github.com/Azure/azure-functions-durable-extension

More Related Content

PPTX
Azure Durable Functions
PDF
Drools 6.0 (Red Hat Summit)
PDF
Clean Architecture
PDF
PDF
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
PDF
What is AWS | AWS Certified Solutions Architect | AWS Tutorial | AWS Training...
PDF
Real Time Test Data with Grafana
PPTX
Docker, Containers and the Future of Application Delivery
Azure Durable Functions
Drools 6.0 (Red Hat Summit)
Clean Architecture
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
What is AWS | AWS Certified Solutions Architect | AWS Tutorial | AWS Training...
Real Time Test Data with Grafana
Docker, Containers and the Future of Application Delivery

What's hot (20)

PPTX
Trunk based development and Canary deployment
PDF
Autoscaling Kubernetes
PDF
Design patterns for microservice architecture
PDF
Kubernetes internals (Kubernetes 해부하기)
PDF
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
PPTX
Kubernetes Introduction
PPTX
MVVM ( Model View ViewModel )
PPTX
Kubernetes PPT.pptx
PPTX
Docker: From Zero to Hero
PDF
Introduction to Browser Fuzzing
PDF
Kubernetes API - deep dive into the kube-apiserver
PDF
Deploy Application on Kubernetes
PPTX
Automating AWS security and compliance
PDF
[213]monitoringwithscouter 이건희
PPTX
Cross platform app development with flutter
PDF
.NET에서 비동기 프로그래밍 배우기
PDF
The Service Mesh: It's about Traffic
PPTX
Jenkins tutorial
PDF
Kubernetes Concepts And Architecture Powerpoint Presentation Slides
PPTX
Cypress first impressions
Trunk based development and Canary deployment
Autoscaling Kubernetes
Design patterns for microservice architecture
Kubernetes internals (Kubernetes 해부하기)
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Introduction
MVVM ( Model View ViewModel )
Kubernetes PPT.pptx
Docker: From Zero to Hero
Introduction to Browser Fuzzing
Kubernetes API - deep dive into the kube-apiserver
Deploy Application on Kubernetes
Automating AWS security and compliance
[213]monitoringwithscouter 이건희
Cross platform app development with flutter
.NET에서 비동기 프로그래밍 배우기
The Service Mesh: It's about Traffic
Jenkins tutorial
Kubernetes Concepts And Architecture Powerpoint Presentation Slides
Cypress first impressions
Ad

Similar to Durable functions (20)

PPTX
Azure Function Workflow
PPTX
Save Azure Cost
PDF
Massimo Bonanni - Workflow as code with Azure Durable Functions - Codemotion ...
PPTX
Mastering Azure Durable Functions - Building Resilient and Scalable Workflows
PPTX
Building workflow solution with Microsoft Azure and Cloud | Integration Monday
PDF
Stateful pattern con Azure Functions
PPTX
Azure Functions in Action #CodePaLOUsa
PPTX
Building stateful serverless orchestrations with Azure Durable Azure Function...
PPTX
Play with azure functions
PDF
Workflow as code with Azure Durable Functions
PDF
Azure functions
PPTX
Azure Functions.pptx
PPTX
Azure Functions - Introduction
PPTX
Azure Functions in Action #OrlandoCC
PPTX
Guidelines to understand durable functions with .net core, c# and stateful se...
PPTX
Era of server less computing final
PDF
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...
PPTX
Building API in the cloud using Azure Functions
PPTX
Era of server less computing
PPTX
Durable Azure Functions
Azure Function Workflow
Save Azure Cost
Massimo Bonanni - Workflow as code with Azure Durable Functions - Codemotion ...
Mastering Azure Durable Functions - Building Resilient and Scalable Workflows
Building workflow solution with Microsoft Azure and Cloud | Integration Monday
Stateful pattern con Azure Functions
Azure Functions in Action #CodePaLOUsa
Building stateful serverless orchestrations with Azure Durable Azure Function...
Play with azure functions
Workflow as code with Azure Durable Functions
Azure functions
Azure Functions.pptx
Azure Functions - Introduction
Azure Functions in Action #OrlandoCC
Guidelines to understand durable functions with .net core, c# and stateful se...
Era of server less computing final
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...
Building API in the cloud using Azure Functions
Era of server less computing
Durable Azure Functions
Ad

Recently uploaded (20)

PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
August Patch Tuesday
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Hybrid model detection and classification of lung cancer
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPT
Geologic Time for studying geology for geologist
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Modernising the Digital Integration Hub
PDF
Architecture types and enterprise applications.pdf
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PDF
A review of recent deep learning applications in wood surface defect identifi...
PPT
What is a Computer? Input Devices /output devices
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Unlock new opportunities with location data.pdf
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
August Patch Tuesday
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Hybrid model detection and classification of lung cancer
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Geologic Time for studying geology for geologist
Assigned Numbers - 2025 - Bluetooth® Document
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Hindi spoken digit analysis for native and non-native speakers
Modernising the Digital Integration Hub
Architecture types and enterprise applications.pdf
Web Crawler for Trend Tracking Gen Z Insights.pptx
A review of recent deep learning applications in wood surface defect identifi...
What is a Computer? Input Devices /output devices
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Unlock new opportunities with location data.pdf
Module 1.ppt Iot fundamentals and Architecture
Enhancing emotion recognition model for a student engagement use case through...
1 - Historical Antecedents, Social Consideration.pdf
A comparative study of natural language inference in Swahili using monolingua...

Durable functions

  • 2. Amresh Krishnamurthy ◈ Technical Architect, JCPenney ◈ BDotNet Member ◈ @amreshkris
  • 3. Agenda ◈ Serverless in Azure ◈ Azure Functions ◈ Sample Problem ◈ Why we need Durable Functions ! ◈ What is Durable Functions ! � Activity Functions � Orchestrator � How does it work? � Workflows � Error Handling and Resiliency � Demo
  • 4. Azure Serverless Compute ◈ Serverless computing enables developers to build applications faster by eliminating the need for them to manage infrastructure. With serverless applications, the cloud service provider automatically provisions, scales and manages the infrastructure required to run the code. Event Grid Logic Apps Azure Functions
  • 5. Azure Functions - FaaS Short Lived Each function is short lived for its executions and resources freed-up after one execution Stateless Functions don’t maintain state Event-driven | Dynamic Scaling Functions are triggered through events such as Http trigger, Timer, Event grid etc. Pay as per you use Pay only for the time the function actively runs.
  • 7. Function Chaining Fan out- Fan In Async HTTP API Monitor Aggregato r Approval
  • 8. Hello, Durable Functions Orchestration of Azure Functions Durable Functions are extensions of Azure Functions. Azure Function – Stateless Vs Durable Function – Can retain state Long running orchestrations as a single unit. Coordinate and Aggregate across multiple functions/workflows Code driven. No JSON schema files or no designer involved Built on Durable Task Framework and Azure Function. Uses Azure storage for maintaining state.
  • 9. Components Activity Function ◈ Activity Function – Performs Activity/Unit of work. Tasks being orchestrated Book Hotel Book Flight Compute Total
  • 10. Components Orchestrator Function ◈ Orchestrator Function – Described how actions are executed and the order in which they are run. Orchestrate : Book Vacation
  • 11. Components Client Function ◈ Client Function – Entry point for creating an instance of Durable function. Trigger/Event Based Trigger : Book Vacation
  • 12. Durable Function Flow Starter Function Orchestrator Function Activity Function
  • 13. Demo ◈ Durable Functions – Function Chaining ◈ Fan Out- Fan In ◈ VS Code – Azure Storage Emulator ◈ Source Code - https://github.com/amreshkris/DurableFunctions-FanOutFanIn
  • 14. How Durable functions works ! ◈ Pattern Used – Event Sourcing – Maintains each step of the execution in Event/History Table ◈ `` Orchestration Function Called Orchestration Started Activity Function F1 Called Activity Function F1 Scheduled Execution Instance Started Orchestration Completed Activity Function F1 Completed Activity Function F2 Called Orchestration Started Activity Function F2 Scheduled Orchestration Completed Orchestration Started Activity Function F2 Completed Orchestrator Execution Completed
  • 15. Error Handling | Resiliency ◈ Demo
  • 16. Orchestrator Function Constraints ◈ Must be deterministic ◈ Avoid Date and Time related API – Use ‘CurrentUtcDateTime’ provided in Durable functions context ◈ Random Numbers , Async API , Static Variables , Infinite loops etc theCurrentUtcDateTime