SlideShare a Scribd company logo
© 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
Coder sans peur du changement avec la meme pas mal hexagonal architecture
PPTX
Azure Web Jobs
PPTX
GitHub Copilot.pptx
PDF
Kafka streams windowing behind the curtain
PPTX
Github copilot
PPTX
Azure Boards.pptx
PPTX
Microservices Decomposition Patterns
PDF
When NOT to use Apache Kafka?
Coder sans peur du changement avec la meme pas mal hexagonal architecture
Azure Web Jobs
GitHub Copilot.pptx
Kafka streams windowing behind the curtain
Github copilot
Azure Boards.pptx
Microservices Decomposition Patterns
When NOT to use Apache Kafka?

What's hot (20)

PPTX
SOLID, DRY, SLAP design principles
PDF
Istio service mesh introduction
PPT
MongoDB Tick Data Presentation
PDF
Pinot: Realtime Distributed OLAP datastore
PDF
⼤語⾔模型 LLM 應⽤開發入⾨
PDF
TECHTALK 20200908 Qlikデータ統合製品によるリアルタイム分析と DWH/ データレイク自動化
PDF
Mongo DB
PPTX
Object Oriented Programming In JavaScript
PPTX
Continuous Delivery using AWS CodePipeline, AWS Lambda & AWS ElasticBeanstalk
PPTX
RLSを用いたマルチテナント実装 for Django
PDF
Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...
PDF
Introduction to Redis
PDF
Combining logs, metrics, and traces for unified observability
PDF
Real Time Analytics: Algorithms and Systems
PDF
Hexagonal Rails
PDF
Git training v10
PDF
Introduction to Vault
PDF
50.000 orange stickies later
PDF
Monitoring modern applications using Elastic
PDF
Let's build Developer Portal with Backstage
SOLID, DRY, SLAP design principles
Istio service mesh introduction
MongoDB Tick Data Presentation
Pinot: Realtime Distributed OLAP datastore
⼤語⾔模型 LLM 應⽤開發入⾨
TECHTALK 20200908 Qlikデータ統合製品によるリアルタイム分析と DWH/ データレイク自動化
Mongo DB
Object Oriented Programming In JavaScript
Continuous Delivery using AWS CodePipeline, AWS Lambda & AWS ElasticBeanstalk
RLSを用いたマルチテナント実装 for Django
Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...
Introduction to Redis
Combining logs, metrics, and traces for unified observability
Real Time Analytics: Algorithms and Systems
Hexagonal Rails
Git training v10
Introduction to Vault
50.000 orange stickies later
Monitoring modern applications using Elastic
Let's build Developer Portal with Backstage
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
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Google’s NotebookLM Unveils Video Overviews
PPTX
How Much Does It Cost to Build a Train Ticket App like Trenitalia in Italy.pptx
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
PPTX
CroxyProxy Instagram Access id login.pptx
PDF
Doc9.....................................
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
PDF
Revolutionize Operations with Intelligent IoT Monitoring and Control
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
PDF
Top Generative AI Tools for Patent Drafting in 2025.pdf
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
This slide provides an overview Technology
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
PDF
DevOps & Developer Experience Summer BBQ
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Google’s NotebookLM Unveils Video Overviews
How Much Does It Cost to Build a Train Ticket App like Trenitalia in Italy.pptx
Transforming Manufacturing operations through Intelligent Integrations
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
GamePlan Trading System Review: Professional Trader's Honest Take
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
CroxyProxy Instagram Access id login.pptx
Doc9.....................................
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
Revolutionize Operations with Intelligent IoT Monitoring and Control
Understanding_Digital_Forensics_Presentation.pptx
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
Top Generative AI Tools for Patent Drafting in 2025.pdf
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
This slide provides an overview Technology
ChatGPT's Deck on The Enduring Legacy of Fax Machines
NewMind AI Weekly Chronicles - July'25 - Week IV
DevOps & Developer Experience Summer BBQ

SERVERLESS MIDDLEWARE IN AZURE FUNCTIONS