SlideShare a Scribd company logo
Creating real-life serverless
solutions with Azure Functions
@Jan_de_V
Jan de Vries
Cloud Solution Architect
@Jan_de_V
What is this serverless again?
@Jan_de_V
Servers are still here
Looks a lot like PaaS
“If your PaaS can efficiently start instances in
20ms that run for half a second, then call it
serverless.”
Adrian Cockcroft - VP Cloud Architecture Strategy AWS
@Jan_de_V
Hey, I know…containers!
@Jan_de_V
My real-life scenario!
bit.ly but cheaper!
@Jan_de_V
GET minified URL and redirect
CREATE minified URL
@Jan_de_V
Sounds like…
CQRS
@Jan_de_V
@Jan_de_V
Cosmos DB
@Jan_de_V
@Jan_de_V
Your legacy solution design
@Jan_de_V
A modern and super scalable design!
@Jan_de_V
@Jan_de_V
@Jan_de_V
Bindings & Triggers
@Jan_de_V
function.json
"bindings": [
{
"type": "httpTrigger",
"route": "{slug}",
"methods": [
"get"
],
"authLevel": "anonymous",
"name": "req"
}
],
@Jan_de_V
"bindings": [
{
"name": "minifiedUrl",
"type": "documentDB",
"databaseName": "MinifyRepository",
"collectionName": "MinifiedUrls",
"createIfNotExists": true,
"connection": "CosmosDbConnection",
"direction": "out"
}
],
@Jan_de_V
Don’t write JSON
@Jan_de_V
Best Practices
@Jan_de_V
1. One func, one thing
@Jan_de_V
2. Avoid funcs calling funcs
@Jan_de_V
3. Zero libs if possible
@Jan_de_V
4. Avoid RDBMS
@Jan_de_V
5. One func per route
@Jan_de_V
6. Async (queues)
@Jan_de_V
7. Data flows not data lakes
@Jan_de_V
8. Know how it will scale
@Jan_de_V
Paul Johnston
• https://twitter.com/PaulDJohnston
• https://medium.com/@PaulDJohnston/serverless-best-practices-
b3c97d551535
• ServerlessDays CoFounder (Jeff)
• ex AWS Serverless Senior Developer Advocate
@Jan_de_V
Now, start coding some Functions
Well…let’s wait a moment
@Jan_de_V
Where to put the code?
@Jan_de_V
Dependency injection?
private readonly ICosmosClient cosmosClient;
public CreateUrlHandler()
{
this.cosmosClient = new CosmosClient();
}
public CreateUrlHandler(ICosmosClient cosmosClient)
{
this.cosmosClient = cosmosClient;
}
@Jan_de_V
Keeping it small!
@Jan_de_V
@Jan_de_V
BONUS
Proxies!
@Jan_de_V
https://m.jdv.li/api/minifiedurl
or
https://m.jdv.li/minifiedurl
@Jan_de_V
proxies.json
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"getminifiedredirect": {
"matchCondition": {
"methods": [ "GET" ],
"route": "/{slug}"
},
"backendUri": "https://%WEBSITE_HOSTNAME%/api/{slug}"
}
}
}
@Jan_de_V
Questions, contact
https://github.com/Jandev/minifier
@Jan_de_V
jandv@4dotnet.nl
https://jan-v.nl
@Jan_de_V
Thank you!
Please evaluate my session in
the TechDays app!

More Related Content

PPTX
Docker - Scripting the PayPal Cloud
PDF
Platform Engineering with the CDK
PDF
Migrating .NET and .NET Core to Pivotal Cloud Foundry (1/2)
PDF
Handle insane devices traffic using Google Cloud Platform - Andrea Ulisse - C...
PPTX
Working with Azure Cosmos DB in Azure Functions
PDF
Manage and Optimize Cloud Spend with RightScale Optima
PPTX
Creating autocomplete with elastic search on google cloud
PDF
Amazon Web Services Introduction
Docker - Scripting the PayPal Cloud
Platform Engineering with the CDK
Migrating .NET and .NET Core to Pivotal Cloud Foundry (1/2)
Handle insane devices traffic using Google Cloud Platform - Andrea Ulisse - C...
Working with Azure Cosmos DB in Azure Functions
Manage and Optimize Cloud Spend with RightScale Optima
Creating autocomplete with elastic search on google cloud
Amazon Web Services Introduction

What's hot (20)

PDF
GO and GCP: Introduction
PDF
Cloudera streaming with flink oct 29, 2020 meetup london
PPTX
Exploiting IAM in GCP
PPTX
Azure IPaaS: Integration Evolved! (Glenn Colpaert @TechdaysNL 2017)
PPTX
10 difference between aws and google cloud by Zareef Ahmed
PPTX
Trafikensverige.se
PDF
What is Google Cloud Platform - GDG DevFest 18 Depok
PPTX
Go Serverless with Azure
PDF
Knative, Serverless on Kubernetes, and Openshift
PDF
Serverless with Knative - Mete Atamel (Google)
PPTX
Intro to the Google Cloud for Developers
PPTX
Using Google App Engine Python
PDF
Large Scale Cloud Infrastructure Using Shared Components
PDF
GDG Jakarta Meetup - Streaming Analytics With Apache Beam
PDF
Cloud Native Java in Kubernetes
PDF
Top 10 Cloud Trends for 2018 and Actions You Can Take Now
PDF
DevTest Labs en Azure (por Iván Cañizares)
PDF
2009.05.21.Abiquo.Entrepeneurs.Day
PDF
Quantifying Your World with AI & Docker on the Edge | OSCONF 2020 Jaipur
PPTX
Building event-driven Serverless Apps with Azure Functions and Azure Cosmos DB
GO and GCP: Introduction
Cloudera streaming with flink oct 29, 2020 meetup london
Exploiting IAM in GCP
Azure IPaaS: Integration Evolved! (Glenn Colpaert @TechdaysNL 2017)
10 difference between aws and google cloud by Zareef Ahmed
Trafikensverige.se
What is Google Cloud Platform - GDG DevFest 18 Depok
Go Serverless with Azure
Knative, Serverless on Kubernetes, and Openshift
Serverless with Knative - Mete Atamel (Google)
Intro to the Google Cloud for Developers
Using Google App Engine Python
Large Scale Cloud Infrastructure Using Shared Components
GDG Jakarta Meetup - Streaming Analytics With Apache Beam
Cloud Native Java in Kubernetes
Top 10 Cloud Trends for 2018 and Actions You Can Take Now
DevTest Labs en Azure (por Iván Cañizares)
2009.05.21.Abiquo.Entrepeneurs.Day
Quantifying Your World with AI & Docker on the Edge | OSCONF 2020 Jaipur
Building event-driven Serverless Apps with Azure Functions and Azure Cosmos DB
Ad

Similar to TechDays Sweden - Creating real-life serverless solutions with Azure Functions (20)

PPTX
Serverless... Hoe, wat en vooral waarom
PPTX
Move Up - Design je Azure Functions als een pro
PDF
Serverless Development To Production Pipeline
PPTX
SVILUPPARE E GESTIRE ARCHITETTURE A MICROSERVIZI SU AZURE
PPTX
Dnc2015 azure-microservizi-vforusso
PDF
Harnessing the power of aws using dot net core
PDF
Journey to the cloud, the why and how of serverless
PPTX
How I fell in love with Serverless, Yevhen Duma, DevOps Engineer at Provectus
PPTX
The Evolution of Cloud Architectures: Focusing More on the Business Logic
PPTX
Cloud computing and the Windows Azure Services Platform (KU Leuven)
PPTX
agile microservices @scaibo
PPTX
An introduction to Serverless
PDF
20180111 we bde-bs - serverless url shortener
PDF
Serverless Architectural Patterns & Best Practices
PDF
AWS Chicago user group: AWS Platform for .NET Developers
PDF
Microservices and serverless for MegaStartups - DLD TLV 2017
PDF
Architecting Web Applications for the Cloud - Design Principles and Practical...
PPT
Cloud computing03
PDF
AWS re:Invent 2017 re:View
PDF
Benefits of the Azure Cloud
Serverless... Hoe, wat en vooral waarom
Move Up - Design je Azure Functions als een pro
Serverless Development To Production Pipeline
SVILUPPARE E GESTIRE ARCHITETTURE A MICROSERVIZI SU AZURE
Dnc2015 azure-microservizi-vforusso
Harnessing the power of aws using dot net core
Journey to the cloud, the why and how of serverless
How I fell in love with Serverless, Yevhen Duma, DevOps Engineer at Provectus
The Evolution of Cloud Architectures: Focusing More on the Business Logic
Cloud computing and the Windows Azure Services Platform (KU Leuven)
agile microservices @scaibo
An introduction to Serverless
20180111 we bde-bs - serverless url shortener
Serverless Architectural Patterns & Best Practices
AWS Chicago user group: AWS Platform for .NET Developers
Microservices and serverless for MegaStartups - DLD TLV 2017
Architecting Web Applications for the Cloud - Design Principles and Practical...
Cloud computing03
AWS re:Invent 2017 re:View
Benefits of the Azure Cloud
Ad

More from Jan de Vries (15)

PDF
Webdev Zwolle - PaaSwordless in Azure
PDF
Global Azure - Use Azure Active Directory Managed Identities for your services!
PDF
Next.Net event - Use Azure Active Directory Managed Identities for your servi...
PDF
TechDays Sweden - No Nouns!
PPTX
Why care about serverless
PPTX
No nouns, hoe ga je een microservices architectuur opzetten
PDF
No nouns
PPTX
Creating real life serverless solutions with Azure Functions
PPTX
Creating real life serverless solutions with Azure Functions - dotNet Amsterd...
PPTX
Using the Azure Container Service in your company
PPTX
TechDays 2017 - Creating real life serverless solutions with azure functions
PPTX
Visual Studio 2017
PPTX
Applied patterns in the project
PPTX
Dependency injection en testen
PPT
Clean Code summary
Webdev Zwolle - PaaSwordless in Azure
Global Azure - Use Azure Active Directory Managed Identities for your services!
Next.Net event - Use Azure Active Directory Managed Identities for your servi...
TechDays Sweden - No Nouns!
Why care about serverless
No nouns, hoe ga je een microservices architectuur opzetten
No nouns
Creating real life serverless solutions with Azure Functions
Creating real life serverless solutions with Azure Functions - dotNet Amsterd...
Using the Azure Container Service in your company
TechDays 2017 - Creating real life serverless solutions with azure functions
Visual Studio 2017
Applied patterns in the project
Dependency injection en testen
Clean Code summary

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Programs and apps: productivity, graphics, security and other tools
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
Digital-Transformation-Roadmap-for-Companies.pptx
cuic standard and advanced reporting.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Empathic Computing: Creating Shared Understanding
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Network Security Unit 5.pdf for BCA BBA.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
Programs and apps: productivity, graphics, security and other tools

TechDays Sweden - Creating real-life serverless solutions with Azure Functions