Azure Functions Serverless Architecture in the Cloud Shahed

  • Slides: 23
Download presentation
Azure Functions Serverless Architecture in the Cloud Shahed Chowdhuri Microsoft Corporation @shahed. C Wake.

Azure Functions Serverless Architecture in the Cloud Shahed Chowdhuri Microsoft Corporation @shahed. C Wake. Up. And. Code. com

Intro

Intro

What’s with the Cloud? Hosting models Software (as a Service) Data Runtime Middleware O/S

What’s with the Cloud? Hosting models Software (as a Service) Data Runtime Middleware O/S O/S Virtualization Servers Storage Networking Runtime Middleware You scale, make resilient & manage Data Runtime Virtualization Servers Storage Networking Scale, resilience and management by vendor Applications Managed by vendor Applications O/S Virtualization Servers Storage Networking Scale, resilience and management by vendor You manage (as a Service) Applications You scale, make resilient and manage Platform Infrastructure On Premises

Where does Serverless fit in? Serverless Platform (as a Service) Applications Data Runtime Middleware

Where does Serverless fit in? Serverless Platform (as a Service) Applications Data Runtime Middleware Data Runtime Functions Applications Data Runtime Middleware O/S Virtualization Servers Storage Networking Middleware O/S O/S Virtualization Servers Storage Networking Managed by vendor Software Functions Virtualization Servers Storage Networking Scale, resilience and mgmt by vendor Functions You manage Functions You scale, make resilient & manage You scale, make resilient and manage You manage (as a Service) Scale, resilience and management by vendor Infrastructure On Premises

Source: https: //myignite. techcommunity. microsoft. com/sessions/65889

Source: https: //myignite. techcommunity. microsoft. com/sessions/65889

integration

integration

Azure Functions Host – Functions 2. 0 Host Assembly Load Context (default) Function Assembly

Azure Functions Host – Functions 2. 0 Host Assembly Load Context (default) Function Assembly Load Context public static Run(…, Cloud. Block. Blob blob, …)) { //Function code. . . ; }

Dev + Hosting

Dev + Hosting

Local debugging

Local debugging

https: //sendgrid. com/docs/for-developers/sending-email/v 3 -csharp-code-example

https: //sendgrid. com/docs/for-developers/sending-email/v 3 -csharp-code-example

Serverless Functions Serverless Linux Functions Containers Kubernetes Functions Open Source Hosting Io. T Functions

Serverless Functions Serverless Linux Functions Containers Kubernetes Functions Open Source Hosting Io. T Functions On Prem Functions Application Delivery Execution Isolation Infrastructure Operating System Azure Managed Customer Managed

Demo

Demo

Durable Functions

Durable Functions

long-running orchestrations maintaining local state single function

long-running orchestrations maintaining local state single function

Starter Function Orchestration. Client Orchestrator Function Orchestration. Context. Trigger Activity Function Activity. Trigger

Starter Function Orchestration. Client Orchestrator Function Orchestration. Context. Trigger Activity Function Activity. Trigger

Orchestrator Function // calls functions in sequence public static async Task<object> Run(Durable. Orchestration. Context

Orchestrator Function // calls functions in sequence public static async Task<object> Run(Durable. Orchestration. Context ctx) { try Activity Functions { var x = await ctx. Call. Activity. Async("F 1"); var y = await ctx. Call. Activity. Async("F 2", x); return await ctx. Call. Activity. Async("F 3", y); } catch (Exception) { // global error handling/compensation goes here } }

Q&A

Q&A