SlideShare uma empresa Scribd logo
1 de 16
Durable Azure Functions &
Economics of Serverless computing
Pushkar Saraf, Azure Evangelist
#GlobalAzure 1
Agenda
#GlobalAzure
• Azure Functions
• About Azure Functions
• How do Durable Functions Differ
• Durable function patterns
• Leverage the power at scale
• Kick Start your Development
• Economics of Serverless Computing
• Price Models
• Breakeven, TCO Fixed to Variable Costs
• Use Cases : Serverless B2B EDI Integrations
• Demo
• Chain Functions
• Order Fulfillment
Azure Functions
• Runs Small pieces of code
• No need for a dedicated infrastructure for it
• You get 100000 executions for free
• Features
• Choice of language - Write functions using your choice of C#, F#, or Node.
• Pay-per-use pricing model - Pay only for the time spent running your code.
• Bring your own dependencies - Functions supports NuGet and NPM, so you can use your favorite
libraries.
• Integrated security - Protect HTTP-triggered functions with OAuth providers such as Azure Active
Directory, Facebook, Google, Twitter, and Microsoft Account.
• Simplified integration - Easily leverage Azure services and software-as-a-service (SaaS) offerings.
• Flexible development - Code your functions right in the portal or set up continuous integration
and deploy your code through GitHub, Visual Studio Team Services, and other supported
development tools.
• Open-source - The Functions runtime is open-source and available on GitHub.
#GlobalAzure
Timer-based
processing
Azure service
event processing
Serverless web
application architectures
Real-time stream
processing
Functions supports an event based on a timer using Cron job syntax. For
example, execute code that runs every 15 minutes and clean up a
database table based on custom business logic
Functions supports triggering an event based on an activity in an Azure
service. For example, execute serverless code that reads newly discovered
test log files in a Blob storage container, and transform this into a row in a
SQL Database table.
Internet of Things devices send messages to Stream Analytics, which then
calls a function to transform the message. This function processes the
data and creates a new record in a SQL database.
Functions can power a single-page app. The app calls functions using the
WebHook URL, saves user data and decides what data to display. Or, do
simple customisations, such as changing ad targeting by calling a function
and passing it user profile information.
What Functions can Do
#GlobalAzure
Scaling at Runtime
Azure Functions : Bindings
#GlobalAzure
Type 1.x 2.x Trigger Input Output
Blob Storage ✔ ✔
1
✔ ✔ ✔
Cosmos DB ✔ ✔ ✔ ✔ ✔
Event Grid ✔ ✔ ✔
Event Hubs ✔ ✔ ✔ ✔
External File
2
✔ ✔ ✔
External Table
2
✔ ✔ ✔
HTTP ✔ ✔
1
✔ ✔
Microsoft Graph
Excel tables
✔ ✔ ✔
Microsoft Graph
OneDrive files
✔ ✔ ✔
Microsoft Graph
Outlook email
✔ ✔
Microsoft Graph
Events
✔ ✔ ✔ ✔
Microsoft Graph
Auth tokens
✔ ✔
Mobile Apps ✔ ✔ ✔ ✔
Notification Hubs ✔ ✔
Queue storage ✔ ✔
1
✔ ✔
SendGrid ✔ ✔ ✔
Service Bus ✔ ✔ ✔ ✔
Table storage ✔ ✔
1
✔ ✔
Timer ✔ ✔ ✔
Twilio ✔ ✔ ✔
Webhooks ✔ ✔ ✔
Serverless IOT solutions
#GlobalAzure
• An Extension to Durable Task
Framework
• Allows you : Event sourcing,
checkpointing, and replay
• Features
• They define workflows in code. No JSON
schemas or designers are needed.
• They can call other functions
synchronously and asynchronously.
Output from called functions can be
saved to local variables.
• They automatically checkpoint their
progress whenever the function awaits.
Local state is never lost if the process
recycles or the VM reboots.
8
Event Sourcing Pattern
Durable Functions
Chain Fan Out-Fan In
Monitors Actionable WF
Function chaining refers to the pattern of executing a sequence of
functions in a particular order. Often the output of one function needs to
be applied to the input of another function
Fan-out/fan-in refers to the pattern of executing multiple functions in
parallel, and then waiting for all to finish. Often some aggregation work is
done on results returned from the functions.
Automated processes allowing timeouts and compensation logic.The monitor pattern refers to a flexible recurring process in a workflow
Patterns
10
• Understand Azure Functions
• Overview of Durable Task Framework
• Async-Await pattern
• Multi-Threading concepts
• Event Driven programming
• Azure Functions template if you want to use Visual Studios.
• NuGet this to your solution
• Microsoft.​Azure.​Web​Jobs.​Extensions.​Durable​Task
• Microsoft.​Azure.​Web​Jobs
• You are good to go.
Kickstart Durable Functions
#PuneDevCon 11
• Indeterministic Code Execution
• Non-Blocking Tasks
• Never initiate Async tasks to external sources
• Ex: HttpClient.SendAsync()=> //Fetch Something from Website X for me.
• No To infinity loops, unless you want to pay for it
Things that you should not do !
• Duration of Code Execution {Aggregate Time}
• Consumed Resources {Memory}
• No of times the function is Executed {Count}
• Miscellaneous costs {Supported services}
12
Price Components
Component Units
Free Requests 1,000,000
Free Ram 400,000
Per GB-Second $0.0000160
Per Request $0.0000002
Free CPU NA
Per GHZ-Second NA
Azure Functions Pricing
• N is number of executions in month
• NF is number of free requests per month
• PG is price per GB-second
• PC is price per GHz-second
• PR is price per request
• PT is TOTAL monthly price
• TE is time per execution in seconds
• MM is memory allocation in MB
• CC is CPU allocation in MHz
• QF is free GB-seconds
• PF is free Ghz-seconds
P = [(N*TE)*(M/1024)-QF]*PG +
[(N*T)(C/100)-PF]*PC +
(N-NF)* PR
Universal Serverless Pricing Equation
#GlobalAzure
0
100
200
300
400
500
600
700
1 2 3 4 5 6 7 8 9 10 11 12
USD
Execution in Millions (3 Sec.)
• Start your costs at $0
• Pay Only for what you use.
• Rises per unit execution
• Scale for Performance
• No Need to keep extra resources
for performance issues
• Reduced Cost of ownership
Move from Stepped FC to Exponential VC
#GlobalAzure
0 10000 20000 30000 40000 50000 60000
Serverless
IaaS
IaaS vs Serverless
Total AppS Functions B2B DB
• Serverless : USD ~23400
• IaaS : USD ~56000
• 41.80 % Cost Reduction
• No Performance Issues, Scales at
runtime
• Reduced Fixed Costs
• Predictable Cost per unit
• Reduced Labor rate by 70% (
Maintenance costs towards Infra
Assets)
Cost Savings on a entire serverless solution
#GlobalAzure
Demo
• Serverless Order Fulfillments
• Chain
• Fan Out- Fan In
• Monitors
#GlobalAzure
Contact
• Twitter : pushsos
• Email : pushkarsaraf@live.com

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Azure App Services
Azure App ServicesAzure App Services
Azure App Services
 
Experiences using CouchDB inside Microsoft's Azure team
Experiences using CouchDB inside Microsoft's Azure teamExperiences using CouchDB inside Microsoft's Azure team
Experiences using CouchDB inside Microsoft's Azure team
 
What is Azure development?-MS Azure development
What is Azure development?-MS Azure development What is Azure development?-MS Azure development
What is Azure development?-MS Azure development
 
Azure fundamental -Introduction
Azure fundamental -IntroductionAzure fundamental -Introduction
Azure fundamental -Introduction
 
Azure App Service Deep Dive
Azure App Service Deep DiveAzure App Service Deep Dive
Azure App Service Deep Dive
 
Static web apps by GitHub action
Static web apps by GitHub actionStatic web apps by GitHub action
Static web apps by GitHub action
 
Azure functions serverless
Azure functions serverlessAzure functions serverless
Azure functions serverless
 
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
04_Azure Kubernetes Service: Basic Practices for Developers_GAB201904_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
 
Azure Web Apps Advanced Security
Azure Web Apps Advanced SecurityAzure Web Apps Advanced Security
Azure Web Apps Advanced Security
 
Deploy Microservices To Kubernetes Without Secrets by Reenu Saluja
Deploy Microservices To Kubernetes Without Secrets by Reenu SalujaDeploy Microservices To Kubernetes Without Secrets by Reenu Saluja
Deploy Microservices To Kubernetes Without Secrets by Reenu Saluja
 
Leading Edge of Modern Web Apps on Azure - Menaka - CCDays
Leading Edge of Modern Web Apps on Azure - Menaka - CCDaysLeading Edge of Modern Web Apps on Azure - Menaka - CCDays
Leading Edge of Modern Web Apps on Azure - Menaka - CCDays
 
UK Azure User Group - Blazor and Azure (Tim Ebenezer)
UK Azure User Group - Blazor and Azure (Tim Ebenezer)UK Azure User Group - Blazor and Azure (Tim Ebenezer)
UK Azure User Group - Blazor and Azure (Tim Ebenezer)
 
Azure staticwebapps
Azure staticwebappsAzure staticwebapps
Azure staticwebapps
 
Get rid of credentials from your code: Using Managed identities for Azure res...
Get rid of credentials from your code: Using Managed identities for Azure res...Get rid of credentials from your code: Using Managed identities for Azure res...
Get rid of credentials from your code: Using Managed identities for Azure res...
 
Understanding Azure Batch Service - Niloshima - CCDays
Understanding Azure Batch Service - Niloshima - CCDays Understanding Azure Batch Service - Niloshima - CCDays
Understanding Azure Batch Service - Niloshima - CCDays
 
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
 
AWS - Database Migration Service - Abdul Rasheed Feroz Khan
AWS - Database Migration Service - Abdul Rasheed Feroz KhanAWS - Database Migration Service - Abdul Rasheed Feroz Khan
AWS - Database Migration Service - Abdul Rasheed Feroz Khan
 
Azure web apps
Azure web appsAzure web apps
Azure web apps
 
Intro to Azure Static Web Apps
Intro to Azure Static Web AppsIntro to Azure Static Web Apps
Intro to Azure Static Web Apps
 
Monitor Azure Kubernetes Cluster With Prometheus by Mamta Jha
Monitor Azure Kubernetes Cluster With Prometheus by Mamta JhaMonitor Azure Kubernetes Cluster With Prometheus by Mamta Jha
Monitor Azure Kubernetes Cluster With Prometheus by Mamta Jha
 

Semelhante a Durable Azure Functions

Semelhante a Durable Azure Functions (20)

Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Going Serverless with Azure Functions #1 - Introduction to Azure FunctionsGoing Serverless with Azure Functions #1 - Introduction to Azure Functions
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
 
Serverless in the Azure World
Serverless in the Azure WorldServerless in the Azure World
Serverless in the Azure World
 
Azure functions
Azure functionsAzure functions
Azure functions
 
Building stateful serverless orchestrations with Azure Durable Azure Function...
Building stateful serverless orchestrations with Azure Durable Azure Function...Building stateful serverless orchestrations with Azure Durable Azure Function...
Building stateful serverless orchestrations with Azure Durable Azure Function...
 
Azure Functions in Action #CodePaLOUsa
Azure Functions in Action #CodePaLOUsaAzure Functions in Action #CodePaLOUsa
Azure Functions in Action #CodePaLOUsa
 
SAFwAD @ Intelligent Cloud Conference
SAFwAD @ Intelligent Cloud ConferenceSAFwAD @ Intelligent Cloud Conference
SAFwAD @ Intelligent Cloud Conference
 
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
 
Play with azure functions
Play with azure functionsPlay with azure functions
Play with azure functions
 
Azure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCCAzure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCC
 
Era of server less computing
Era of server less computingEra of server less computing
Era of server less computing
 
Azure serverless computing
Azure serverless computingAzure serverless computing
Azure serverless computing
 
Serverless Computing with Azure Functions Best Practices
Serverless Computing with Azure Functions Best PracticesServerless Computing with Azure Functions Best Practices
Serverless Computing with Azure Functions Best Practices
 
ServerLess by usama Azure fuctions.pptx
ServerLess by usama Azure fuctions.pptxServerLess by usama Azure fuctions.pptx
ServerLess by usama Azure fuctions.pptx
 
Era of server less computing final
Era of server less computing finalEra of server less computing final
Era of server less computing final
 
#SPFestDC #Azure #Functions V2: What's new and getting started
#SPFestDC #Azure #Functions V2: What's new and getting started#SPFestDC #Azure #Functions V2: What's new and getting started
#SPFestDC #Azure #Functions V2: What's new and getting started
 
#SPFestSea Introduction to #Azure #Functions v2
#SPFestSea Introduction to #Azure #Functions v2#SPFestSea Introduction to #Azure #Functions v2
#SPFestSea Introduction to #Azure #Functions v2
 
#SpFestSea azr203 Azure functions lessons learned
#SpFestSea azr203 Azure functions lessons learned#SpFestSea azr203 Azure functions lessons learned
#SpFestSea azr203 Azure functions lessons learned
 
JoTechies - Azure Functions Using c#
JoTechies - Azure Functions Using c#JoTechies - Azure Functions Using c#
JoTechies - Azure Functions Using c#
 
Azure Function Best Practice
Azure Function Best Practice Azure Function Best Practice
Azure Function Best Practice
 
Azure Serverless Toolbox
Azure Serverless ToolboxAzure Serverless Toolbox
Azure Serverless Toolbox
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Durable Azure Functions

  • 1. Durable Azure Functions & Economics of Serverless computing Pushkar Saraf, Azure Evangelist #GlobalAzure 1
  • 2. Agenda #GlobalAzure • Azure Functions • About Azure Functions • How do Durable Functions Differ • Durable function patterns • Leverage the power at scale • Kick Start your Development • Economics of Serverless Computing • Price Models • Breakeven, TCO Fixed to Variable Costs • Use Cases : Serverless B2B EDI Integrations • Demo • Chain Functions • Order Fulfillment
  • 3. Azure Functions • Runs Small pieces of code • No need for a dedicated infrastructure for it • You get 100000 executions for free • Features • Choice of language - Write functions using your choice of C#, F#, or Node. • Pay-per-use pricing model - Pay only for the time spent running your code. • Bring your own dependencies - Functions supports NuGet and NPM, so you can use your favorite libraries. • Integrated security - Protect HTTP-triggered functions with OAuth providers such as Azure Active Directory, Facebook, Google, Twitter, and Microsoft Account. • Simplified integration - Easily leverage Azure services and software-as-a-service (SaaS) offerings. • Flexible development - Code your functions right in the portal or set up continuous integration and deploy your code through GitHub, Visual Studio Team Services, and other supported development tools. • Open-source - The Functions runtime is open-source and available on GitHub. #GlobalAzure
  • 4. Timer-based processing Azure service event processing Serverless web application architectures Real-time stream processing Functions supports an event based on a timer using Cron job syntax. For example, execute code that runs every 15 minutes and clean up a database table based on custom business logic Functions supports triggering an event based on an activity in an Azure service. For example, execute serverless code that reads newly discovered test log files in a Blob storage container, and transform this into a row in a SQL Database table. Internet of Things devices send messages to Stream Analytics, which then calls a function to transform the message. This function processes the data and creates a new record in a SQL database. Functions can power a single-page app. The app calls functions using the WebHook URL, saves user data and decides what data to display. Or, do simple customisations, such as changing ad targeting by calling a function and passing it user profile information. What Functions can Do
  • 6. Azure Functions : Bindings #GlobalAzure Type 1.x 2.x Trigger Input Output Blob Storage ✔ ✔ 1 ✔ ✔ ✔ Cosmos DB ✔ ✔ ✔ ✔ ✔ Event Grid ✔ ✔ ✔ Event Hubs ✔ ✔ ✔ ✔ External File 2 ✔ ✔ ✔ External Table 2 ✔ ✔ ✔ HTTP ✔ ✔ 1 ✔ ✔ Microsoft Graph Excel tables ✔ ✔ ✔ Microsoft Graph OneDrive files ✔ ✔ ✔ Microsoft Graph Outlook email ✔ ✔ Microsoft Graph Events ✔ ✔ ✔ ✔ Microsoft Graph Auth tokens ✔ ✔ Mobile Apps ✔ ✔ ✔ ✔ Notification Hubs ✔ ✔ Queue storage ✔ ✔ 1 ✔ ✔ SendGrid ✔ ✔ ✔ Service Bus ✔ ✔ ✔ ✔ Table storage ✔ ✔ 1 ✔ ✔ Timer ✔ ✔ ✔ Twilio ✔ ✔ ✔ Webhooks ✔ ✔ ✔
  • 8. • An Extension to Durable Task Framework • Allows you : Event sourcing, checkpointing, and replay • Features • They define workflows in code. No JSON schemas or designers are needed. • They can call other functions synchronously and asynchronously. Output from called functions can be saved to local variables. • They automatically checkpoint their progress whenever the function awaits. Local state is never lost if the process recycles or the VM reboots. 8 Event Sourcing Pattern Durable Functions
  • 9. Chain Fan Out-Fan In Monitors Actionable WF Function chaining refers to the pattern of executing a sequence of functions in a particular order. Often the output of one function needs to be applied to the input of another function Fan-out/fan-in refers to the pattern of executing multiple functions in parallel, and then waiting for all to finish. Often some aggregation work is done on results returned from the functions. Automated processes allowing timeouts and compensation logic.The monitor pattern refers to a flexible recurring process in a workflow Patterns
  • 10. 10 • Understand Azure Functions • Overview of Durable Task Framework • Async-Await pattern • Multi-Threading concepts • Event Driven programming • Azure Functions template if you want to use Visual Studios. • NuGet this to your solution • Microsoft.​Azure.​Web​Jobs.​Extensions.​Durable​Task • Microsoft.​Azure.​Web​Jobs • You are good to go. Kickstart Durable Functions
  • 11. #PuneDevCon 11 • Indeterministic Code Execution • Non-Blocking Tasks • Never initiate Async tasks to external sources • Ex: HttpClient.SendAsync()=> //Fetch Something from Website X for me. • No To infinity loops, unless you want to pay for it Things that you should not do !
  • 12. • Duration of Code Execution {Aggregate Time} • Consumed Resources {Memory} • No of times the function is Executed {Count} • Miscellaneous costs {Supported services} 12 Price Components Component Units Free Requests 1,000,000 Free Ram 400,000 Per GB-Second $0.0000160 Per Request $0.0000002 Free CPU NA Per GHZ-Second NA Azure Functions Pricing • N is number of executions in month • NF is number of free requests per month • PG is price per GB-second • PC is price per GHz-second • PR is price per request • PT is TOTAL monthly price • TE is time per execution in seconds • MM is memory allocation in MB • CC is CPU allocation in MHz • QF is free GB-seconds • PF is free Ghz-seconds P = [(N*TE)*(M/1024)-QF]*PG + [(N*T)(C/100)-PF]*PC + (N-NF)* PR Universal Serverless Pricing Equation
  • 13. #GlobalAzure 0 100 200 300 400 500 600 700 1 2 3 4 5 6 7 8 9 10 11 12 USD Execution in Millions (3 Sec.) • Start your costs at $0 • Pay Only for what you use. • Rises per unit execution • Scale for Performance • No Need to keep extra resources for performance issues • Reduced Cost of ownership Move from Stepped FC to Exponential VC
  • 14. #GlobalAzure 0 10000 20000 30000 40000 50000 60000 Serverless IaaS IaaS vs Serverless Total AppS Functions B2B DB • Serverless : USD ~23400 • IaaS : USD ~56000 • 41.80 % Cost Reduction • No Performance Issues, Scales at runtime • Reduced Fixed Costs • Predictable Cost per unit • Reduced Labor rate by 70% ( Maintenance costs towards Infra Assets) Cost Savings on a entire serverless solution
  • 15. #GlobalAzure Demo • Serverless Order Fulfillments • Chain • Fan Out- Fan In • Monitors
  • 16. #GlobalAzure Contact • Twitter : pushsos • Email : pushkarsaraf@live.com