KEMBAR78
Serverless Computing with Azure | PDF
Serverless Computing
with Azurewith Azure
Global Azure Bootcamp 2018
Analben Mehta
About Me
Analben Mehta
 Software Engineer at NHS NSS
 13+ years of experience in
architecting and developing
enterprise applications
 (Previously) creator of (Previously) creator of
ProConnect – award winning
product
 M.Eng in Computer Science
https://aanuwizard.com
@aanuwizard
Agenda
1. What is Serverless?
2. Why Serverless?
3. Azure Functions – Intro
4. Demo4. Demo
5. Azure functions – Proxies
6. Demo
7. Serverless Scenarios
8. Demo
9. Azure Functions - Best Practices
No servers!!?
“serverless” doesn’t mean servers are no longer
involved. It simply means that developers no
longer have to think that much about them.longer have to think that much about them.
Ex. wireless switch / router – of course there are
wires but users don’t have to worry about
them.
Evolution of Infrastructure
Evolution of Infrastructure
What is Serverless?
Benefits of Serverless
Evolution of Application
Evolution of Application
Evolution of Application
Microsoft serverless offerings
Azure Functions
Serverless code – triggered by events and bindings
Functions - Programming Model
Functions - Programming Model
Demo: Azure Function
Demo – Getting Started
Supported Bindings
Type Service Trigger Input Output
Timer/Schedule Azure Functions ✔
HTTP (REST or WebHook) Azure Functions ✔ ✔
Blob Storage Azure Storage ✔ ✔ ✔
Queues Azure Storage ✔ ✔
Tables Azure Storage ✔ ✔
NoSQL DB Azure CosmosDB ✔ ✔ ✔NoSQL DB Azure CosmosDB ✔ ✔ ✔
Streams Azure Event Hubs ✔ ✔
Push Notifications Azure Notification Hubs ✔
Bot Framework(Preview) Azure Bot Service ✔
Twilio SMS Text Twilio ✔
SendGrid E-Mail SendGrid ✔
Excel Tables Microsoft Graph ✔ ✔
OneDrive Files Microsoft Graph ✔ ✔
Outlook E-Mail Microsoft Graph ✔
Microsoft Graph Events Microsoft Graph ✔ ✔ ✔
Auth Tokens Microsoft Graph ✔
(* The HTTP output binding requires an HTTP trigger.)
Supported Languages
 Languages:
 JavaScript, C#, F#
scripting options such as Python, PHP, Bash, Batch,
and PowerShelland PowerShell
 Experimental support
.NET Core
Linux Containers
Java
Functions pricing
 Regular App Service plan
 Consumption Plan
Meter Price Free Grant (Per Month)
Execution time* £0.000012/GB-s 400,000 GB-s
Total executions*
£0.15 per million
executions
1 million executions
Azure Functions – Develop your way
 Code directly in Azure portal
 Code in Visual Studio 2017 15.5 or later
Install “Azure Development” workload
Includes tooling to create Azure Function projects andIncludes tooling to create Azure Function projects and
classes locally and publish
Includes Azure CLI (Command Line Interface) which
allow you to run and debug your functional locally.
Azure Functions extension for Visual Studio Code
(Preview)
Azure Functions – Develop your way
Azure Functions Proxy vs API Management
Azure Functions – Proxy
Azure Functions – Proxy
Demo: Azure Function
Demo – Mock Apis
Serverless Scenarios -
Real-world examples
Timer-based processing
Serverless web application
architectures
Azure service event processing
Serverless mobile back-ends
Demo: Azure Function
Demo- Feedback application
Feedback system demo
 Functions should “do one thing”
 Functions should be stateless
 Functions should be idempotent
 Functions should finish as quickly as possible
Azure Functions – Best Practices
 Functions should finish as quickly as possible
#GlobalAzureBootcamp
@aanuwizard

Serverless Computing with Azure