SlideShare a Scribd company logo
@AlexPshul
State in Stateless Serverless Functions
Alex Pshul
Embrace the serverless
@AlexPshul
alex@pshul.com
https://pshul.com
https://meetup.com/Code-Digest
@AlexPshul
@AlexPshul
Agenda
 Serverless Functions - Recap
 Pros
 Cons
 Functions Demo
 State in Stateless?
 Durable Functions
 Durable Entities
 Another Demo!
3
Agenda
@AlexPshul
About Me
4
Alex Pshul
 Architect, Microsoft Azure MVP, Consultant, Lecturer & Tech Freak
 More than 10 years of hands-on experience
 More than 30 projects
 Co-organizer of the Code.Digest Meetup
 https://www.meetup.com/Code-Digest/
 Talk to me about:
@AlexPshul
Serverless Functions
Pros. and Cons.
5
@AlexPshul
Cost Effective
6
@AlexPshul
Scalable
7
@AlexPshul
Flexible
 Run native on cloud
 Or in a container
 Rich out-of-the-box solutions suite
 Http
 Message Bus
 Timer
 Easy to start
 Easy to deploy
8
@AlexPshul
But…
 Latency
 Constant high load
 Premium functions (Azure)
 Provisioned Concurrency (AWS)
 Resource intensive computing
 Stateful server requests
 Long running tasks
 State
9
@AlexPshul
But…
Stateful server requests
Long running tasks
State
10
OR IS IT?
@AlexPshul
Demo
Functions App
11
@AlexPshul
State in Stateless Functions
Durable Functions
12
@AlexPshul
What is it?
 Azure Function Extension
 Supports in a variety of languages
 C#
 JavaScript/TypeScript
 Python
 F#
 PowerShell
 Uses a storage account for persistency
 Supports various scenarios
13
@AlexPshul
Function Chaining
14
const df = require("durable-functions");
module.exports = df.orchestrator(function*(context) {
try {
const x = yield context.df.callActivity("F1");
const y = yield context.df.callActivity("F2", x);
const z = yield context.df.callActivity("F3", y);
return yield context.df.callActivity("F4", z);
} catch (error) {
// Error handling or compensation goes here.
}
});
@AlexPshul
Fan Out - Fan In
15
import azure.durable_functions as df
def orchestrator_function(context: df.DurableOrchestrationContext):
# Get a list of N work items to process in parallel.
work_batch = yield context.call_activity("F1", None)
parallel_tasks = [ context.call_activity("F2", b) for b in work_batch
]
outputs = yield context.task_all(parallel_tasks)
# Aggregate all N outputs and send the result to F3.
total = sum(outputs)
yield context.call_activity("F3", total)
main = df.Orchestrator.create(orchestrator_function)
@AlexPshul
Other Scenarios
16
Async HTTP APIs Monitor
Human Interaction
@AlexPshul
Durable Entities
17
 Allows to store data “in memory”
 Backed by Durable functions
 C#
 JavaScript/TypeScript
 Python
 Uses a storage account for persistency
 Can be accessed from different functions
@AlexPshul
Demo
Durable Entities
18
@AlexPshul
Summary
19
 Serverless
 Easy
 Scalable
 Supported by many languages
 C#
 JavaScript/TypeScript
 Python
 F# (No durable support)
 PowerShell (No durable support)
 State in stateless functions with Durable Functions
 Functions on steroid
Alex Pshul
@AlexPshul
https://www.pshul.com
alexp@codevalue.net
20

More Related Content

What's hot (20)

PPTX
Top 10 RxJs Operators in Angular
Jalpesh Vadgama
 
PPTX
Serverless
Iegor Fadieiev
 
PPTX
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS User Group - Thailand
 
PDF
Angular 2 observables
Geoffrey Filippi
 
PDF
Vaugham Hong - Embedding JavaScript V8
Allen Pike
 
PDF
When to use Serverless? When to use Kubernetes?
Niklas Heidloff
 
PDF
Getting started with Serverless applications on Microsoft Azure
Nilesh Gule
 
PPTX
Why I am hooked on the future of React
Maurice De Beijer [MVP]
 
PDF
Nils Rhode - Does it always have to be k8s - TeC Day 2019
Haufe-Lexware GmbH & Co KG
 
PDF
The Works 2018 - Software Track - Development 101: Build Using API and Overvi...
David Dourgarian
 
PDF
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
AWS User Group - Thailand
 
PPTX
Ansible Tower - Drew Bomhof, Brandon Dunne - ManageIQ Design Summit 2016
ManageIQ
 
PDF
Debug production server by counter
Roy Chung-Cheng Lou
 
PPTX
Azure Functions. Hasta la Vista Server...
Carlos Mendible
 
PDF
Infrastructure as Code
Albert Suwandhi
 
PDF
Graphs: Fabric of DevOps
Neo4j
 
PDF
React Context API
NodeXperts
 
PDF
Orgchart for Alfresco lightning talk
ITD Systems
 
PDF
Building a Serverless company with Node.js, React and the Serverless Framewor...
Luciano Mammino
 
PDF
Creating applications with Grails, Angular JS and Spring Security - G3 Summit...
Alvaro Sanchez-Mariscal
 
Top 10 RxJs Operators in Angular
Jalpesh Vadgama
 
Serverless
Iegor Fadieiev
 
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS User Group - Thailand
 
Angular 2 observables
Geoffrey Filippi
 
Vaugham Hong - Embedding JavaScript V8
Allen Pike
 
When to use Serverless? When to use Kubernetes?
Niklas Heidloff
 
Getting started with Serverless applications on Microsoft Azure
Nilesh Gule
 
Why I am hooked on the future of React
Maurice De Beijer [MVP]
 
Nils Rhode - Does it always have to be k8s - TeC Day 2019
Haufe-Lexware GmbH & Co KG
 
The Works 2018 - Software Track - Development 101: Build Using API and Overvi...
David Dourgarian
 
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
AWS User Group - Thailand
 
Ansible Tower - Drew Bomhof, Brandon Dunne - ManageIQ Design Summit 2016
ManageIQ
 
Debug production server by counter
Roy Chung-Cheng Lou
 
Azure Functions. Hasta la Vista Server...
Carlos Mendible
 
Infrastructure as Code
Albert Suwandhi
 
Graphs: Fabric of DevOps
Neo4j
 
React Context API
NodeXperts
 
Orgchart for Alfresco lightning talk
ITD Systems
 
Building a Serverless company with Node.js, React and the Serverless Framewor...
Luciano Mammino
 
Creating applications with Grails, Angular JS and Spring Security - G3 Summit...
Alvaro Sanchez-Mariscal
 

Similar to State in stateless serverless functions (20)

PPTX
Mastering Azure Durable Functions - Building Resilient and Scalable Workflows
Callon Campbell
 
PDF
Integration-Monday-Stateful-Programming-Models-Serverless-Functions
BizTalk360
 
PPTX
Building stateful serverless orchestrations with Azure Durable Azure Function...
Callon Campbell
 
PDF
Azure Durable Functions (2019-03-30)
Paco de la Cruz
 
PDF
Azure Durable Functions (2019-04-27)
Paco de la Cruz
 
PDF
Azure Functions 2.0 Deep Dive - デベロッパーのための最新開発ガイド
Yoichi Kawasaki
 
PPTX
Guidelines to understand durable functions with .net core, c# and stateful se...
Concetto Labs
 
PPTX
Durable functions
Amresh Krishnamurthy
 
PPTX
Deep Dive into Durable Functions
Joonas Westlin
 
PDF
Stateful patterns in Azure Functions
Massimo Bonanni
 
PPTX
Deep Dive into Durable Functions
Joonas Westlin
 
PDF
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...
Christian Lechner
 
PDF
Durable functions 2.0 (2019-10-10)
Paco de la Cruz
 
PPTX
ServerLess by usama Azure fuctions.pptx
Usama Wahab Khan Cloud, Data and AI
 
PPTX
Azure serverless computing
Udaiappa Ramachandran
 
PPTX
Rainbows, Unicorns, and other Fairy Tales in the Land of Serverless Dreams
Josh Carlisle
 
PPTX
Durable Functions
Matti Petrelius
 
PDF
Serverless side by-side extensions with Azure Durable Functions
Christian Lechner
 
PDF
Stateful pattern con Azure Functions
Massimo Bonanni
 
PPTX
Develop in ludicrous mode with azure serverless
Lalit Kale
 
Mastering Azure Durable Functions - Building Resilient and Scalable Workflows
Callon Campbell
 
Integration-Monday-Stateful-Programming-Models-Serverless-Functions
BizTalk360
 
Building stateful serverless orchestrations with Azure Durable Azure Function...
Callon Campbell
 
Azure Durable Functions (2019-03-30)
Paco de la Cruz
 
Azure Durable Functions (2019-04-27)
Paco de la Cruz
 
Azure Functions 2.0 Deep Dive - デベロッパーのための最新開発ガイド
Yoichi Kawasaki
 
Guidelines to understand durable functions with .net core, c# and stateful se...
Concetto Labs
 
Durable functions
Amresh Krishnamurthy
 
Deep Dive into Durable Functions
Joonas Westlin
 
Stateful patterns in Azure Functions
Massimo Bonanni
 
Deep Dive into Durable Functions
Joonas Westlin
 
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...
Christian Lechner
 
Durable functions 2.0 (2019-10-10)
Paco de la Cruz
 
ServerLess by usama Azure fuctions.pptx
Usama Wahab Khan Cloud, Data and AI
 
Azure serverless computing
Udaiappa Ramachandran
 
Rainbows, Unicorns, and other Fairy Tales in the Land of Serverless Dreams
Josh Carlisle
 
Durable Functions
Matti Petrelius
 
Serverless side by-side extensions with Azure Durable Functions
Christian Lechner
 
Stateful pattern con Azure Functions
Massimo Bonanni
 
Develop in ludicrous mode with azure serverless
Lalit Kale
 
Ad

Recently uploaded (20)

PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PPTX
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Ad

State in stateless serverless functions