SlideShare a Scribd company logo
Getting Started with
Serverless Architectures
using Azure Functions
MARC DUIKER
Marc Duiker
Lead Consultant
Xpirit Netherlands
@marcduiker – mduiker@xpirit.com
Current situation
Client
PlaceOrder
Search
ValidateOrder
CalculatePrice
Orders
Products
Prices
Current situation - Problems
Client
PlaceOrder
Search
ValidateOrder
CalculatePrice
Orders
Products
Prices
Expensive infrastructure
Performance issues
Teams require
synced delivery
POC to redesign – Conditions & Requirements
Client
PlaceOrder
Search
ValidateOrder
CalculatePrice
Orders
Products
Prices
Uneven & spikey workload
2 weeks
Limited budget
Fault tolerant
Independent delivery
Getting Started with Serverless Architectures using Azure Functions
Getting Started with Serverless Architectures using Azure Functions
What are serverless architectures?
1. Application that fully depends on a 3rd party service
in the cloud to manage logic and state.
Multiple interpretations for Serverless
2. Application where some code is written by the
developer but is run in stateless compute containers
that are event-triggered, short lived and fully
managed by a 3rd party.
Multiple interpretations for Serverless
• Serverless is a misleading term
• Functions as a Service (FaaS) is better
“Serverless”
Traditional n-tier architecture
Client
PlaceOrder
Search
ValidateOrder
CalculatePrice
Orders
Products
Prices
Serverless architecture with FaaS
Client PlaceOrder
Gateway
Search
Validate
Order
Calculate
Price
Temp
Storage
Perm
Storage
Products
Prices
Why a serverless architecture?
What we all want
• A responsive application
• Regardless of workload
• Regardless of failures
Solution: Reactive Systems
Responsive
Message driven
ResilientElastic
https://www.reactivemanifesto.org/FaaS enables Reactive Systems
Serverless architecture with FaaS
Client Temp
Storage
Gateway
Search Products
PlaceOrder Perm
Storage
Calculate
Price
Prices
Validate
Order
Serverless architecture with FaaS
Client Temp
Storage
Gateway
Search Products
PlaceOrder Perm
Storage
Calculate
Price
Prices
Validate
Order
Benefits of FaaS
• Focus on code instead of servers & runtime
• Node.js , Python, C#, Java …
• Reduced operational costs
• Allows easier experimentation
• Shorter time to market
Benefits of FaaS
• Consumption based pricing
• Resource consumption & number of executions
# Executions / month 2m
Time / execution 0.5 sec
Time consumption 2m * 0.5 = 1m sec
Avg memory consumption 1.5 GB
Resource consumption 1.5 * 1m = 1.5m GB-s
Resource price* 0.000014 Eur / GB-s
Resource costs 1.5m * 0.000014 = 21 EUR
Execution price* 0.169 EUR/1m executions
Execution costs 2m * 0.169 = 0.34 EUR
*Based on Azure Functions consumption plan dd 11 Oct 2017
2
1
Benefits of FaaS
• Automatic scaling
• Can reduce compute costs for spikey workloads
constantspikey
Disadvantages of FaaS
• Learning curve
• Limited execution duration
• Startup latency
• Development tooling
FaaS offerings
AWS Lambda
(2014)
Google
Cloud Functions
(2016)
Azure Functions
(2016)
How do Azure Functions fit in?
What is Azure Functions?
“Azure Functions is a serverless compute service that
enables you to run code on-demand without having to
explicitly provision or manage infrastructure.”
https://docs.microsoft.com/en-us/azure/azure-functions/
What is Azure Functions?
Function Anatomy: Triggers & Bindings
Input Output
Trigger
Code
1
0-n 0-n
Function
Function Anatomy: Function App
Input Output
Trigger
Code
Function
Function App
Settings
The rise of the Functions
WebJobs Functions
Differences with WebJobs
• Seamless integration with Azure services
• Azure Storage (Queues, Blobs)
• Service Bus (Queues, Topics)
• CosmosDB
• Event Hubs
• Webhooks
• Timer
• Consumption based pricing
• Improved automatic scaling
Automatic scaling
Azure Functions Limitations
• Max execution duration:
10 min (default 5 min)
• Available memory:
1.5 GB
Developing Azure Functions
• Function scripts
- Directly in the portal
- Visual Studio Code
• Compiled Functions
- Visual Studio 2017 with Azure Function Tools
Developing Functions
Demo:
Developing Function Scripts
Benefits of Compiled Functions:
• Enjoy the VS IDE features
• Local debugging
• Easier package management
• Configure CI/CD pipelines
• Reduce cold start time
Developing in Visual Studio
Demo:
Developing Compiled Functions
User uploads image
Image requires validation
Image needs to be analyzed
Analysis result need to be stored
Use case
Solution using Azure Functions & Queues
images input images to analyze
images too large
analysis results
to store
validate analyze store
blob
DB
Solution using Azure Functions & Queues
Upload images
images input images to analyze
images too large
analysis results
to store
validate analyze store
blob
DB
Solution using Azure Functions & Queues
Validate images
images input images to analyze
images too large
analysis results
to store
validate analyze store
blob
DB
Solution using Azure Functions & Queues
Analyze images
images input images to analyze
images too large
analysis results
to store
validate analyze store
blob
DB
Solution using Azure Functions & Queues
Store analysis data
images input images to analyze
images too large
analysis results
to store
validate analyze store
blob
DB
Solution using Azure Functions & Queues
Scope of the demo
images input images to analyze
images too large
analysis results
to store
validate analyze store
blob
DB
Demo:
Multiple Functions in one App
Demo data
Solution using Azure Functions & Queues
Start situation
images input images to analyze
images too large
analysis results
to store
validate analyze store
blob
DB
3
3
Solution using Azure Functions & Queues
End situation
images input images to analyze
images too large
analysis results
to store
validate analyze store
blob
DB
3
1
2
Demo:
Doing the magic
✓ Develop function using the Azure portal
✓ Develop function using Visual Studio
✓ Multiple functions in one Function App
✓ Microsoft Azure Storage Explorer
✓ Function App Logs
Developing Functions Demos
Deploying Azure Functions
Edit & save scripts in Portal
Publish from Visual Studio
Deploy straight from source control
Deploy from VSTS
Deploying Functions
Demo:
Deploying Functions
✓ Configure deployment using Azure Portal
✓ Configure deployment using VSTS
Deploying Functions Demos
Other scenarios
Currently you need to provide a message queue to chain
functions.
Function Chaining & Durable Functions
Function Chaining & Durable Functions
https://azure.github.io/azure-functions-durable-extension/
Durable Functions will use Orchestrator and Action
functions making it easier for developers to chain
functions.
Use Functions as Actions
Functions & Logic Apps
Use an API gateway to
manage your
Functions
API Gateway
Client PlaceOrder
Search
ValidateCalculate
Temp
Storage
Perm
Storage
Products
Gateway
Getting Started with Serverless Architectures using Azure Functions
Marc Duiker
Lead Consultant
Xpirit Netherlands
@marcduiker – mduiker@xpirit.com
Go and discover endless possibilities
with Azure Functions!
https://github.com/marcduiker/
demos-serverless-architectures-functions/

More Related Content

What's hot (12)

PPTX
Serverless Computing in Azure
Daniel Toomey
 
PDF
The Rise of Serverless Architectures
Benny Bauer
 
PDF
Infrastructure as Code
Robert Greiner
 
PPTX
Intro to Azure Static Web Apps
Moaid Hathot
 
PDF
Serverless computing
Om Vikram Thapa
 
PDF
Understanding SharePoint Framework Extensions
BIWUG
 
PDF
Serverless Computing
Rushi Namani
 
PPTX
Let's Talk About Serverless - Focusing on AWS Lambda
Okis Chuang
 
PPTX
Serverless Architecture
Michał Kurzeja
 
PPTX
[Vončina] Configuring SharePoint 2016 for BI Scenarios
European Collaboration Summit
 
PPTX
#SPFestDC #Azure #Functions V2: What's new and getting started
Vincent Biret
 
PPTX
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
European Collaboration Summit
 
Serverless Computing in Azure
Daniel Toomey
 
The Rise of Serverless Architectures
Benny Bauer
 
Infrastructure as Code
Robert Greiner
 
Intro to Azure Static Web Apps
Moaid Hathot
 
Serverless computing
Om Vikram Thapa
 
Understanding SharePoint Framework Extensions
BIWUG
 
Serverless Computing
Rushi Namani
 
Let's Talk About Serverless - Focusing on AWS Lambda
Okis Chuang
 
Serverless Architecture
Michał Kurzeja
 
[Vončina] Configuring SharePoint 2016 for BI Scenarios
European Collaboration Summit
 
#SPFestDC #Azure #Functions V2: What's new and getting started
Vincent Biret
 
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
European Collaboration Summit
 

Similar to Getting Started with Serverless Architectures using Azure Functions (20)

PDF
Serverless API with Azure Functions
Analben Mehta
 
PPTX
#SpFestSea azr203 Azure functions lessons learned
Vincent Biret
 
PPTX
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup
 
PPTX
Azure DevOps Best Practices Webinar
Cambay Digital
 
PPTX
Introduction to Azure Functions
Callon Campbell
 
PDF
Zure Azure PaaS Zero to Hero - DevOps training day
Okko Oulasvirta
 
PPTX
slides.pptx
abcabc794064
 
PPTX
Getting started with development in azure
Jasjit Chopra
 
PPTX
Go Serverless with Cosmos DB, Azure Functions and Blazor
Timothy McAliley
 
PPTX
2015-12-02 - WebCamp - Microsoft Azure Logic Apps
Sandro Pereira
 
PPTX
Azure from scratch part 3 By Girish Kalamati
Girish Kalamati
 
PPTX
SPS calgary 2017 introduction to azure functions microsoft flow
Vincent Biret
 
PPTX
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
Vincent Biret
 
PDF
Introduction to Microsoft Flow and Azure Functions
BIWUG
 
PPTX
Chris O'Brien - Best bits of Azure for Office 365/SharePoint developers
Chris O'Brien
 
PDF
Making Data Scientists Productive in Azure
Valdas Maksimavičius
 
PPTX
#SPFestSea Introduction to #Azure #Functions v2
Vincent Biret
 
PPTX
Vincent biret azure functions and flow (toronto)
Vincent Biret
 
PPTX
Vincent biret azure functions and flow (ottawa)
Vincent Biret
 
PPTX
Azure Functions 101
Martin Abbott
 
Serverless API with Azure Functions
Analben Mehta
 
#SpFestSea azr203 Azure functions lessons learned
Vincent Biret
 
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup
 
Azure DevOps Best Practices Webinar
Cambay Digital
 
Introduction to Azure Functions
Callon Campbell
 
Zure Azure PaaS Zero to Hero - DevOps training day
Okko Oulasvirta
 
slides.pptx
abcabc794064
 
Getting started with development in azure
Jasjit Chopra
 
Go Serverless with Cosmos DB, Azure Functions and Blazor
Timothy McAliley
 
2015-12-02 - WebCamp - Microsoft Azure Logic Apps
Sandro Pereira
 
Azure from scratch part 3 By Girish Kalamati
Girish Kalamati
 
SPS calgary 2017 introduction to azure functions microsoft flow
Vincent Biret
 
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
Vincent Biret
 
Introduction to Microsoft Flow and Azure Functions
BIWUG
 
Chris O'Brien - Best bits of Azure for Office 365/SharePoint developers
Chris O'Brien
 
Making Data Scientists Productive in Azure
Valdas Maksimavičius
 
#SPFestSea Introduction to #Azure #Functions v2
Vincent Biret
 
Vincent biret azure functions and flow (toronto)
Vincent Biret
 
Vincent biret azure functions and flow (ottawa)
Vincent Biret
 
Azure Functions 101
Martin Abbott
 
Ad

More from Marc Duiker (8)

PDF
Take your Azure Functions to the next level with Durable Functions - Serverle...
Marc Duiker
 
PDF
Take your Azure Functions to the next level with Durable Functions - WAZUG
Marc Duiker
 
PDF
Put Your Web App on a Diet with Azure Functions
Marc Duiker
 
PDF
Take your azure functions to the next level with durable functions @ Experts ...
Marc Duiker
 
PDF
Managing and querying large data sets using Data Factory, Cosmos DB and Azure...
Marc Duiker
 
PDF
Orchestrate your Azure Functions with Durable Functions - AzureThursday Meetup
Marc Duiker
 
PPTX
Improving your vision with Azure Cognitive Services - /dev/070
Marc Duiker
 
PPTX
Improving your vision with Azure Cognitive Services - MixUG
Marc Duiker
 
Take your Azure Functions to the next level with Durable Functions - Serverle...
Marc Duiker
 
Take your Azure Functions to the next level with Durable Functions - WAZUG
Marc Duiker
 
Put Your Web App on a Diet with Azure Functions
Marc Duiker
 
Take your azure functions to the next level with durable functions @ Experts ...
Marc Duiker
 
Managing and querying large data sets using Data Factory, Cosmos DB and Azure...
Marc Duiker
 
Orchestrate your Azure Functions with Durable Functions - AzureThursday Meetup
Marc Duiker
 
Improving your vision with Azure Cognitive Services - /dev/070
Marc Duiker
 
Improving your vision with Azure Cognitive Services - MixUG
Marc Duiker
 
Ad

Recently uploaded (20)

PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
The Growing Value and Application of FME & GenAI
Safe Software
 
PDF
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PDF
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Open Source Milvus Vector Database v 2.6
Zilliz
 
DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
From Chatbot to Destroyer of Endpoints - Can ChatGPT Automate EDR Bypasses (1...
Priyanka Aash
 
PDF
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
PDF
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
PPTX
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
PPTX
𝙳𝚘𝚠𝚗𝚕𝚘𝚊𝚍—Wondershare Filmora Crack 14.0.7 + Key Download 2025
sebastian aliya
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
The Growing Value and Application of FME & GenAI
Safe Software
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Open Source Milvus Vector Database v 2.6
Zilliz
 
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
From Chatbot to Destroyer of Endpoints - Can ChatGPT Automate EDR Bypasses (1...
Priyanka Aash
 
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
𝙳𝚘𝚠𝚗𝚕𝚘𝚊𝚍—Wondershare Filmora Crack 14.0.7 + Key Download 2025
sebastian aliya
 

Getting Started with Serverless Architectures using Azure Functions