© Copyright Microsoft Corporation. All rights reserved.
Serverless Middleware
in Azure Functions
Divakar Kumar
Senior Software Engineer @Prokarma
https://www.linkedin.com/in/divakar-kumar/
https://github.com/Divakar-kumar
👋 Hi
https://www.linkedin.com/in/divakar-kumar/
https://github.com/Divakar-kumar
🏆 Certifications:
✔️ Microsoft Certified Trainer
✔️ Microsoft Certified: DevOps Engineer Expert
✔️ Microsoft Certified: Azure Developer Associate
✔️ Microsoft Certified: Azure IoT Developer Specialty
✔️ Microsoft Certified: Azure Fundamentals
✔️ Aviatrix Certified Engineer - Multi-Cloud Network Associate
👨‍
💻
© Copyright Microsoft Corporation. All rights reserved.
Agenda
Middleware
Serverless Architecture
Middleware compatibility in Azure functions
Demo
Recreate middleware pipeline in current runtime
Microsoft Announcement
© Copyright Microsoft Corporation. All rights reserved.
Middleware
• Handle HTTP Request or Response
• Holds HTTP context and Requestdelegate
• In ASP .NET core we have 3 middleware options
• Use()
• Run()
• Map()
• Process an incoming HTTP request, modify it,
and pass it on to another piece of middleware.
• Handle an incoming HTTP request by generating
an HTTP response.
• Reroute an incoming HTTP request to another
middleware or web server
Middleware & Configuration options
ASP.NET Core in Action - What is middleware?
Andrew
https://andrewlock.net/asp-net-core-in-action-what-is-middleware/
© Copyright Microsoft Corporation. All rights reserved.
Agenda
Middleware
Serverless Architecture
Middleware compatibility in Azure functions
Demo
Recreate middleware pipeline in current runtime
Microsoft Announcement
©Microsoft Corporation
Azure
• Low management overhead
• Pay per use
• Elastically scalable
Benefits
Serverless to the Max: Doing Big Things for Small Dollars with Cloudflare Workers
and Azure Functions
- Troy
https://www.troyhunt.com/serverless-to-the-max-doing-big-things-for-small-
dollars-with-cloudflare-workers-and-azure-functions/
Don’t use Azure Functions as a web application
- Maarten
https://blog.maartenballiauw.be/post/2019/10/02/dont-use-azure-functions-as-
a-web-application.html
©Microsoft Corporation
Azure
• Logging
• Exception handling
• Tracing
• CORS
• Authentication
• Authorization
• Caching
• Data validation
• Monitoring
• Health check
Challenges in Serverless Architecture
© Copyright Microsoft Corporation. All rights reserved.
Agenda
Middleware
Serverless Architecture
Middleware compatibility in Azure functions
Demo
Recreate middleware pipeline in current runtime
Microsoft Announcement
©Microsoft Corporation
Azure
• Tightly coupled
• Target framework
• Dependent on host .NET runtime version
• In-process model
• Access to invocation pipeline is not possible
Middleware compatibility in Azure Functions (1.x to 3.x )
© Copyright Microsoft Corporation. All rights reserved.
Agenda
Middleware
Serverless Architecture
Middleware compatibility in Azure functions
Demo
Recreate middleware pipeline in current runtime
Microsoft Announcement
©Microsoft Corporation
Azure
© Copyright Microsoft Corporation. All rights reserved.
Out-of-process Model
©Microsoft Corporation
Azure
Out-of-process model
• Proxies through IIS
• Built in kestrel web server in ASP
.NET core
• Edge server
• Performance issues
ASP.NET Core In Process Hosting on IIS with ASP.NET Core
- Rick
https://weblog.west-wind.com/posts/2019/Mar/16/ASPNET-Core-Hosting-on-IIS-
with-ASPNET-Core-22
© Copyright Microsoft Corporation. All rights reserved.
.NET 5 Worker Process
©Microsoft Corporation
Azure
• Standalone Process
• Decouples .NET function from Azure function host
• Out of process model
.NET 5 worker process
© Copyright Microsoft Corporation. All rights reserved.
Visualizing .NET 5 worker process in Azure Functions
©Microsoft Corporation
Azure
.NET 5 worker process model
• 2 separate process
• gRPC communication
• Preview stage
© Copyright Microsoft Corporation. All rights reserved.
Benefits of .NET5 worker process
©Microsoft Corporation
Azure
• Fewer conflicts
• Full control of the process
• Dependency injection
Benefits
©Microsoft Corporation
Azure
Azure Functions Roadmap
© Copyright Microsoft Corporation. All rights reserved.
Required Artifacts - .NET 5 Azure Function App
local.settings.json
FunctionApp.csproj
Nuget packages:
Glance at Program.cs file :
Configureworker:
Demonstration: .NET 5 worker process
• Run local solution
• Host in azure functions
© Copyright Microsoft Corporation. All rights reserved.
Agenda
Middleware
Serverless Architecture
Middleware compatibility in Azure functions
Demo
Recreate middleware pipeline in current runtime
Microsoft Announcement
• Understanding OWIN
• Guide for Running Azure Functions on .NET 5
• .NET on Azure Functions Roadmap
• Source Code – Serverless Middleware
• Learn (http://aka.ms/learn)
Thank
you!
Danke
Grazie
Obrigado
Gracias
Teşekkürler
ありがとう
धन्यवाद
Merci
感謝你
唔該
‫شكر‬
Kiitos
감사합니다
Takk
Dzięki
‫مرسي‬
Спасибо
Ευχαριστώ

More Related Content

PDF
Introduction to Self Sovereign Identity
PDF
Blockchain PowerPoint Presentation Slides
PDF
FIDO2 & Microsoft
PDF
WebAuthn and Security Keys
PDF
Blockchain : révolution ou évolution ?
PPTX
Understanding blockchain
PPTX
Json Web Token - JWT
PDF
Structured and centralized logging with serilog
Introduction to Self Sovereign Identity
Blockchain PowerPoint Presentation Slides
FIDO2 & Microsoft
WebAuthn and Security Keys
Blockchain : révolution ou évolution ?
Understanding blockchain
Json Web Token - JWT
Structured and centralized logging with serilog

What's hot (20)

PDF
“How to Secure Your Applications With a Keycloak?
PDF
What is self-sovereign identity (SSI)?
PDF
The Shift from Federated to Decentralized Identity
PDF
PDF
Clean architecture
PDF
Masterclass on the DID Universal Resolver
PDF
Blockchains and databases a new era in distributed computing
PDF
20231109_OpenID_TechNight_OpenID_Federation.pdf
PDF
Luft : 10억 데이터를 10초만에 쿼리하는 DB 개발기
PDF
IDA,VC,DID関連仕様 最新情報 - OpenID BizDay #15
PDF
MySQL 8.0 GIS Overview
PPTX
Building secure applications with keycloak
PPTX
Blockchain
PPTX
web3
PDF
Google & FIDO Authentication
PDF
SSI DIDs VCs 入門資料
PDF
MicrosoftのDID/VC実装概要
PDF
Web3 Culture
PPTX
What the Duck is DeFi
DOCX
Blockchain tutorial
“How to Secure Your Applications With a Keycloak?
What is self-sovereign identity (SSI)?
The Shift from Federated to Decentralized Identity
Clean architecture
Masterclass on the DID Universal Resolver
Blockchains and databases a new era in distributed computing
20231109_OpenID_TechNight_OpenID_Federation.pdf
Luft : 10억 데이터를 10초만에 쿼리하는 DB 개발기
IDA,VC,DID関連仕様 最新情報 - OpenID BizDay #15
MySQL 8.0 GIS Overview
Building secure applications with keycloak
Blockchain
web3
Google & FIDO Authentication
SSI DIDs VCs 入門資料
MicrosoftのDID/VC実装概要
Web3 Culture
What the Duck is DeFi
Blockchain tutorial
Ad

Similar to SERVERLESS MIDDLEWARE IN AZURE FUNCTIONS (20)

PPTX
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
PPTX
Windows azure overview for SharePoint Pros
PPTX
Azure in Developer Perspective
PPTX
Power of Azure Devops
KEY
Benefits of an Open environment with Wakanda
DOC
Chinnasamy Manickam
PDF
Sitecore 8.2 Update 1 on Azure Web Apps
PDF
Java on Your Terms with Azure
PPTX
Serverless Application Development with Azure
PDF
Stay productive_while_slicing_up_the_monolith
PDF
Microsoft certified azure developer associate
PPTX
Building Azure RemoteApp - Microsoft Campus Days 2014
PPTX
Introduction to Azure Functions
PDF
Zure Azure PaaS Zero to Hero - DevOps training day
PPTX
Azure functions: Build apps faster with serverless architecture (March 2018)
PPTX
V mware v center orchestrator 5.5 knowledge transfer kit
PDF
Azure functions
PDF
Moving from SBS to Azure
PPTX
AIR - Framework ( Cairngorm and Parsley )
PDF
BYOP: Custom Processor Development with Apache NiFi
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Windows azure overview for SharePoint Pros
Azure in Developer Perspective
Power of Azure Devops
Benefits of an Open environment with Wakanda
Chinnasamy Manickam
Sitecore 8.2 Update 1 on Azure Web Apps
Java on Your Terms with Azure
Serverless Application Development with Azure
Stay productive_while_slicing_up_the_monolith
Microsoft certified azure developer associate
Building Azure RemoteApp - Microsoft Campus Days 2014
Introduction to Azure Functions
Zure Azure PaaS Zero to Hero - DevOps training day
Azure functions: Build apps faster with serverless architecture (March 2018)
V mware v center orchestrator 5.5 knowledge transfer kit
Azure functions
Moving from SBS to Azure
AIR - Framework ( Cairngorm and Parsley )
BYOP: Custom Processor Development with Apache NiFi
Ad

More from CodeOps Technologies LLP (20)

PDF
AWS Serverless Event-driven Architecture - in lastminute.com meetup
PPTX
Understanding azure batch service
PDF
DEVOPS AND MACHINE LEARNING
PPT
BUILDING SERVERLESS SOLUTIONS WITH AZURE FUNCTIONS
PPTX
APPLYING DEVOPS STRATEGIES ON SCALE USING AZURE DEVOPS SERVICES
PPTX
BUILD, TEST & DEPLOY .NET CORE APPS IN AZURE DEVOPS
PPTX
CREATE RELIABLE AND LOW-CODE APPLICATION IN SERVERLESS MANNER
PPTX
CREATING REAL TIME DASHBOARD WITH BLAZOR, AZURE FUNCTION COSMOS DB AN AZURE S...
PPTX
WRITE SCALABLE COMMUNICATION APPLICATION WITH POWER OF SERVERLESS
PPTX
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
PPTX
Deploy Microservices To Kubernetes Without Secrets by Reenu Saluja
PDF
Leverage Azure Tech stack for any Kubernetes cluster via Azure Arc by Saiyam ...
PDF
YAML Tips For Kubernetes by Neependra Khare
PDF
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
PPTX
Monitor Azure Kubernetes Cluster With Prometheus by Mamta Jha
PDF
Jet brains space intro presentation
PDF
Functional Programming in Java 8 - Lambdas and Streams
PPTX
Distributed Tracing: New DevOps Foundation
PDF
"Distributed Tracing: New DevOps Foundation" by Jayesh Ahire
PDF
Improve customer engagement and productivity with conversational ai
AWS Serverless Event-driven Architecture - in lastminute.com meetup
Understanding azure batch service
DEVOPS AND MACHINE LEARNING
BUILDING SERVERLESS SOLUTIONS WITH AZURE FUNCTIONS
APPLYING DEVOPS STRATEGIES ON SCALE USING AZURE DEVOPS SERVICES
BUILD, TEST & DEPLOY .NET CORE APPS IN AZURE DEVOPS
CREATE RELIABLE AND LOW-CODE APPLICATION IN SERVERLESS MANNER
CREATING REAL TIME DASHBOARD WITH BLAZOR, AZURE FUNCTION COSMOS DB AN AZURE S...
WRITE SCALABLE COMMUNICATION APPLICATION WITH POWER OF SERVERLESS
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
Deploy Microservices To Kubernetes Without Secrets by Reenu Saluja
Leverage Azure Tech stack for any Kubernetes cluster via Azure Arc by Saiyam ...
YAML Tips For Kubernetes by Neependra Khare
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
Monitor Azure Kubernetes Cluster With Prometheus by Mamta Jha
Jet brains space intro presentation
Functional Programming in Java 8 - Lambdas and Streams
Distributed Tracing: New DevOps Foundation
"Distributed Tracing: New DevOps Foundation" by Jayesh Ahire
Improve customer engagement and productivity with conversational ai

Recently uploaded (20)

PDF
A comparative study of natural language inference in Swahili using monolingua...
PPT
Geologic Time for studying geology for geologist
PDF
Hybrid model detection and classification of lung cancer
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
The various Industrial Revolutions .pptx
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
August Patch Tuesday
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Unlock new opportunities with location data.pdf
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
Tartificialntelligence_presentation.pptx
A comparative study of natural language inference in Swahili using monolingua...
Geologic Time for studying geology for geologist
Hybrid model detection and classification of lung cancer
Enhancing emotion recognition model for a student engagement use case through...
The various Industrial Revolutions .pptx
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Module 1.ppt Iot fundamentals and Architecture
observCloud-Native Containerability and monitoring.pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Univ-Connecticut-ChatGPT-Presentaion.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
August Patch Tuesday
Assigned Numbers - 2025 - Bluetooth® Document
NewMind AI Weekly Chronicles – August ’25 Week III
DP Operators-handbook-extract for the Mautical Institute
O2C Customer Invoices to Receipt V15A.pptx
Unlock new opportunities with location data.pdf
Final SEM Unit 1 for mit wpu at pune .pptx
Tartificialntelligence_presentation.pptx

SERVERLESS MIDDLEWARE IN AZURE FUNCTIONS