狠狠撸

狠狠撸Share a Scribd company logo
Serverless. What, Why, Who & How?
Joe Raio
Senior Technical Evangelist
DX Audience
joe.raio@microsoft.com
@joescars
github.com/joescars
Based in Miami, FL United States.
Proud father. Passions are Music, Space,
Aviation & all things Technology
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless is to servers as wireless is
to wired.
Wireless internet still requires wires,
but customers don't need to
interact with them
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
https://aws.amazon.com/lambda/
Serverless. What, Why, Who & How?
https://cloud.google.com/functions/
Serverless. What, Why, Who & How?
http://aka.ms/TryFunctions
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
{
"bindings": [
{
"name": "myQueueItem",
"type": "queueTrigger",
"direction": "in",
“queueName": "outputqueue",
"connection": "AzureWebJobsStorage"
},
{
"type": "blob",
"name": "outputBlob",
"path": "outblob/{rand-guid}.txt",
"connection": "AzureWebJobsStorage",
"direction": "out"
}
]
}
module.exports = function (context, myQueueItem, myOutputBlob) {
context.log('JavaScript queue trigger function ', myQueueItem);
//validate
if (myQueueItem.apiId && myQueueItem.method && myQueueItem.body)
{
const value = DoWork(myQueueItem);
if(value) {
context.bindings.myOutputBlob = JSON.stringify(value);
//myOutputBlob = JSON.stringify(value);
}
}
else {
//handle error queue item missing params
context.log('invalid queue item ', myQueueItem);
}
context.done();
}
public static void Run(byte[] image, string filename,
Stream outputBlob, TraceWriter log)
{
log.Info($"Processing image: {filename}");
var imageBuilder = ImageResizer.ImageBuilder.Current;
imageBuilder.Build(
image, outputBlob,
new ResizeSettings(640, 400, FitMode.Max, null), false);
}
{
"bindings": [
{
"name": "image",
"type": "blobTrigger",
"direction": "in",
"path": "card-input/{filename}.jpg",
"connection": "AzureWebJobsStorage"
},
{
"type": "blob",
"name": "outputBlob",
"path": "card-output/{filename}.jpg",
"connection": "AzureWebJobsStorage",
"direction": "out"
}
]
}
Serverless. What, Why, Who & How?
Every 15 minutes Clean tableFind and clean invalid data
File added to
Blob Storage
Transform CSV to data rows
CSV
Power BI
Chart graphic
Loaded web page
calls WebHook
Completed pageCreate ad based on user profile
Photo taken and
WebHook called Stores in blob storage Produces scaled images
Millions of devices feed
into Stream Analytics
Store data in
SQL Online
Transform to structured data
Serverless. What, Why, Who & How?
Deployment and management isolation
Customers
Products
Orders
API calls
customers.azurewebsites.net
products.azurewebsites.net
orders.azurewebsites.net
Function app A
/customers
Function app B
/products
Function app C
Function3/orders
Function1
API proxy endpoints
HttpTrigger function endpoints
Key:
/products
/orders
Function2
New file on site root: proxies.json
{
"proxies": {
"proxy1": {
"matchCondition": {
"methods": [],
"route": "/api/{test}"
},
"backendUri": "https://contoso.azurewebsites.net/api/{test}"
}
}
}
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
Serverless. What, Why, Who & How?
https://www.npmjs.com/package/azur
e-functions-core-tools
Serverless. What, Why, Who & How?
https://aka.ms/2017functiontools
Serverless. What, Why, Who & How?
Azure
Functions
Demo
? Costa Farms
http://aka.ms/costafarms
https://github.com/joescars/CostaIoTSensorProject
? Fish Angler
http://aka.ms/fishangler
https://github.com/FishAngler/AzureFunctions
? Simple Recon
https://github.com/simpledealersuite/media2azure
? NullspaceVR
https://github.com/DaveVoyles/NullspaceVR-web-portal/tree/master/AzureFunctions
? Missing Children Society of Canada
https://github.com/Missing-Children-Society-Canada
https://github.com/Azure/Azure-Functions
Azure WebJobs SDK script
Azure WebJobs SDK
Azure WebJobs SDK extensions
Azure Functions CLI
Azure Functions Portal
Azure Functions templates
Azure Functions samples
http://aka.ms/TryFunctions
https://aka.ms/func-github
Joe.Raio@Microsoft.com
Download this presentation:
slideshare.net/joeraio
Ad

Recommended

Building serverless applications on azure
Building serverless applications on azure
Joe Raio
?
Yammer Api SDK
Yammer Api SDK
Nabil Babaci
?
Coders4Africa Talk
Coders4Africa Talk
narced133
?
Week 4 - jQuery + Ajax
Week 4 - jQuery + Ajax
baygross
?
Auto tools
Auto tools
祺 周
?
Code Europe - Azure Functions
Code Europe - Azure Functions
Joe Raio
?
[Serverless Meetup Tokyo #3] Serverless in Azure (Azure Functionsのアップデート、事例、デ...
[Serverless Meetup Tokyo #3] Serverless in Azure (Azure Functionsのアップデート、事例、デ...
Naoki (Neo) SATO
?
Azure Functions Overview
Azure Functions Overview
Joe Raio
?
Going Serverless with Azure Functions
Going Serverless with Azure Functions
Shahed Chowdhuri
?
Serverless and IoT
Serverless and IoT
James Sturtevant
?
Fast Focus: Azure Functions
Fast Focus: Azure Functions
Brian Clark
?
Working with data using Azure Functions.pdf
Working with data using Azure Functions.pdf
Stephanie Locke
?
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Kasun Kodagoda
?
Alex Thissen "Server-less compute with .NET based Azure Functions"
Alex Thissen "Server-less compute with .NET based Azure Functions"
Fwdays
?
Making sense of AWS Serverless operations - Amarathon Geek China 2024
Making sense of AWS Serverless operations - Amarathon Geek China 2024
Vadym Kazulkin
?
Azure Functions Real World Examples
Azure Functions Real World Examples
Yochay Kiriaty
?
Introduction to Azure Functions
Introduction to Azure Functions
Marco Parenzan
?
Getting Started with Serverless Architectures using Azure Functions
Getting Started with Serverless Architectures using Azure Functions
Marc Duiker
?
Up in the air serverless computing with azure functions
Up in the air serverless computing with azure functions
Jan Fellien
?
Serverless: The future of application delivery
Serverless: The future of application delivery
Doug Vanderweide
?
Azure functions serverless
Azure functions serverless
Udaiappa Ramachandran
?
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
AhmadAli716831
?
3 years of Quarkus in production, what have we learned - Devoxx Polen
3 years of Quarkus in production, what have we learned - Devoxx Polen
Jago de Vreede
?
最新版加拿大奎斯特大学毕业证(蚕鲍颁毕业证书)原版定制
最新版加拿大奎斯特大学毕业证(蚕鲍颁毕业证书)原版定制
taqyed
?
CBUSDAW - Ash Lewis - Reducing LLM Hallucinations
CBUSDAW - Ash Lewis - Reducing LLM Hallucinations
Jason Packer
?
NOC Services for maintaining network as MSA.ppt
NOC Services for maintaining network as MSA.ppt
ankurnagar22
?
Top Mobile App Development Trends Shaping the Future
Top Mobile App Development Trends Shaping the Future
ChicMic Studios
?
ChatGPT A.I. Powered Chatbot and Popularization.pdf
ChatGPT A.I. Powered Chatbot and Popularization.pdf
StanleySamson1
?
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
taqyea
?
狠狠撸s: Eco Economic Epochs for The World Game (s) pdf
狠狠撸s: Eco Economic Epochs for The World Game (s) pdf
Steven McGee
?

More Related Content

Similar to Serverless. What, Why, Who & How? (13)

Going Serverless with Azure Functions
Going Serverless with Azure Functions
Shahed Chowdhuri
?
Serverless and IoT
Serverless and IoT
James Sturtevant
?
Fast Focus: Azure Functions
Fast Focus: Azure Functions
Brian Clark
?
Working with data using Azure Functions.pdf
Working with data using Azure Functions.pdf
Stephanie Locke
?
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Kasun Kodagoda
?
Alex Thissen "Server-less compute with .NET based Azure Functions"
Alex Thissen "Server-less compute with .NET based Azure Functions"
Fwdays
?
Making sense of AWS Serverless operations - Amarathon Geek China 2024
Making sense of AWS Serverless operations - Amarathon Geek China 2024
Vadym Kazulkin
?
Azure Functions Real World Examples
Azure Functions Real World Examples
Yochay Kiriaty
?
Introduction to Azure Functions
Introduction to Azure Functions
Marco Parenzan
?
Getting Started with Serverless Architectures using Azure Functions
Getting Started with Serverless Architectures using Azure Functions
Marc Duiker
?
Up in the air serverless computing with azure functions
Up in the air serverless computing with azure functions
Jan Fellien
?
Serverless: The future of application delivery
Serverless: The future of application delivery
Doug Vanderweide
?
Azure functions serverless
Azure functions serverless
Udaiappa Ramachandran
?
Going Serverless with Azure Functions
Going Serverless with Azure Functions
Shahed Chowdhuri
?
Fast Focus: Azure Functions
Fast Focus: Azure Functions
Brian Clark
?
Working with data using Azure Functions.pdf
Working with data using Azure Functions.pdf
Stephanie Locke
?
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Kasun Kodagoda
?
Alex Thissen "Server-less compute with .NET based Azure Functions"
Alex Thissen "Server-less compute with .NET based Azure Functions"
Fwdays
?
Making sense of AWS Serverless operations - Amarathon Geek China 2024
Making sense of AWS Serverless operations - Amarathon Geek China 2024
Vadym Kazulkin
?
Azure Functions Real World Examples
Azure Functions Real World Examples
Yochay Kiriaty
?
Introduction to Azure Functions
Introduction to Azure Functions
Marco Parenzan
?
Getting Started with Serverless Architectures using Azure Functions
Getting Started with Serverless Architectures using Azure Functions
Marc Duiker
?
Up in the air serverless computing with azure functions
Up in the air serverless computing with azure functions
Jan Fellien
?
Serverless: The future of application delivery
Serverless: The future of application delivery
Doug Vanderweide
?

Recently uploaded (20)

BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
AhmadAli716831
?
3 years of Quarkus in production, what have we learned - Devoxx Polen
3 years of Quarkus in production, what have we learned - Devoxx Polen
Jago de Vreede
?
最新版加拿大奎斯特大学毕业证(蚕鲍颁毕业证书)原版定制
最新版加拿大奎斯特大学毕业证(蚕鲍颁毕业证书)原版定制
taqyed
?
CBUSDAW - Ash Lewis - Reducing LLM Hallucinations
CBUSDAW - Ash Lewis - Reducing LLM Hallucinations
Jason Packer
?
NOC Services for maintaining network as MSA.ppt
NOC Services for maintaining network as MSA.ppt
ankurnagar22
?
Top Mobile App Development Trends Shaping the Future
Top Mobile App Development Trends Shaping the Future
ChicMic Studios
?
ChatGPT A.I. Powered Chatbot and Popularization.pdf
ChatGPT A.I. Powered Chatbot and Popularization.pdf
StanleySamson1
?
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
taqyea
?
狠狠撸s: Eco Economic Epochs for The World Game (s) pdf
狠狠撸s: Eco Economic Epochs for The World Game (s) pdf
Steven McGee
?
cybercrime investigation and digital forensics
cybercrime investigation and digital forensics
goverdhankumar137300
?
history of internet in nepal Class-8 (sparsha).pptx
history of internet in nepal Class-8 (sparsha).pptx
SPARSH508080
?
IAREUOUSTPIDWHY$)CHARACTERARERWUEEJJSKWNSND
IAREUOUSTPIDWHY$)CHARACTERARERWUEEJJSKWNSND
notgachabite123
?
PROCESS FOR CREATION OF BUSINESS PARTNER IN SAP
PROCESS FOR CREATION OF BUSINESS PARTNER IN SAP
AhmadAli716831
?
Dark Web Presentation - 1.pdf about internet which will help you to get to kn...
Dark Web Presentation - 1.pdf about internet which will help you to get to kn...
ragnaralpha7199
?
ChatGPT_and_Its_Uses_Presentationss.pptx
ChatGPT_and_Its_Uses_Presentationss.pptx
Neha Prakash
?
COMPUTER ETHICS AND CRIME.......................................................
COMPUTER ETHICS AND CRIME.......................................................
FOOLKUMARI
?
Topic 2 - Cloud Computing Basics,,,.pptx
Topic 2 - Cloud Computing Basics,,,.pptx
oneillp100
?
BroadLink Cloud Service introduction.pdf
BroadLink Cloud Service introduction.pdf
DevendraDwivdi1
?
Topic 1 Foundational IT Infrastructure_.pptx
Topic 1 Foundational IT Infrastructure_.pptx
oneillp100
?
原版澳洲斯文本科技大学毕业证(厂鲍罢毕业证书)如何办理
原版澳洲斯文本科技大学毕业证(厂鲍罢毕业证书)如何办理
taqyed
?
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
AhmadAli716831
?
3 years of Quarkus in production, what have we learned - Devoxx Polen
3 years of Quarkus in production, what have we learned - Devoxx Polen
Jago de Vreede
?
最新版加拿大奎斯特大学毕业证(蚕鲍颁毕业证书)原版定制
最新版加拿大奎斯特大学毕业证(蚕鲍颁毕业证书)原版定制
taqyed
?
CBUSDAW - Ash Lewis - Reducing LLM Hallucinations
CBUSDAW - Ash Lewis - Reducing LLM Hallucinations
Jason Packer
?
NOC Services for maintaining network as MSA.ppt
NOC Services for maintaining network as MSA.ppt
ankurnagar22
?
Top Mobile App Development Trends Shaping the Future
Top Mobile App Development Trends Shaping the Future
ChicMic Studios
?
ChatGPT A.I. Powered Chatbot and Popularization.pdf
ChatGPT A.I. Powered Chatbot and Popularization.pdf
StanleySamson1
?
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
taqyea
?
狠狠撸s: Eco Economic Epochs for The World Game (s) pdf
狠狠撸s: Eco Economic Epochs for The World Game (s) pdf
Steven McGee
?
cybercrime investigation and digital forensics
cybercrime investigation and digital forensics
goverdhankumar137300
?
history of internet in nepal Class-8 (sparsha).pptx
history of internet in nepal Class-8 (sparsha).pptx
SPARSH508080
?
IAREUOUSTPIDWHY$)CHARACTERARERWUEEJJSKWNSND
IAREUOUSTPIDWHY$)CHARACTERARERWUEEJJSKWNSND
notgachabite123
?
PROCESS FOR CREATION OF BUSINESS PARTNER IN SAP
PROCESS FOR CREATION OF BUSINESS PARTNER IN SAP
AhmadAli716831
?
Dark Web Presentation - 1.pdf about internet which will help you to get to kn...
Dark Web Presentation - 1.pdf about internet which will help you to get to kn...
ragnaralpha7199
?
ChatGPT_and_Its_Uses_Presentationss.pptx
ChatGPT_and_Its_Uses_Presentationss.pptx
Neha Prakash
?
COMPUTER ETHICS AND CRIME.......................................................
COMPUTER ETHICS AND CRIME.......................................................
FOOLKUMARI
?
Topic 2 - Cloud Computing Basics,,,.pptx
Topic 2 - Cloud Computing Basics,,,.pptx
oneillp100
?
BroadLink Cloud Service introduction.pdf
BroadLink Cloud Service introduction.pdf
DevendraDwivdi1
?
Topic 1 Foundational IT Infrastructure_.pptx
Topic 1 Foundational IT Infrastructure_.pptx
oneillp100
?
原版澳洲斯文本科技大学毕业证(厂鲍罢毕业证书)如何办理
原版澳洲斯文本科技大学毕业证(厂鲍罢毕业证书)如何办理
taqyed
?
Ad

Serverless. What, Why, Who & How?

Editor's Notes

  • #3: What is a technical evangelist?
  • #7: FaaS – Functions as a Service
  • #8: Abstraction of servers, infrastructure and configuration of operating system Event-driven scale Sub-second billing Stateless Serverless compute is a fully managed service. Some refer to it as Functions as a Service OS and Framework patching is performed for you There is zero administrative tasks and no need to manage any infrastructure You just deploy your code (function) and it runs Your code runs within seconds and for very short period of time Serverless compute scales quickly (almost instantly) and vastly Automatically scales within seconds No scale configuration is required (there is no way to configure scale or limits) Scales to match any given workload. Scales from zero to handle tens of thousands concurrent functions invocations within seconds Pay only for the time your code is running Serverless compute reacts to events React, in near real-time, to events and triggers Triggered by virtually any event from Azure service or 3rd party services Setup time, provisioning is long & costly
  • #9: “Pinnacle of PaaS compute” Not just hardware “servers”, but software servers are also managed for you Focus on business logic, not solving technical problems not core to business Lower effort to get started makes it easier to experiment (bots, etc.) Benefits of “Serverless”
  • #10: Bindings abstract away where the data is coming to Logic Apps Programming free paradigm with a visual designer, drag and drop workflows With Connectors to different types of services (eg an FTP server) Talking Points: (Updated on 4/3/17) Lets talk about what really makes up MSFT’s Serverless platform: At the center of the Serverless platform, is our compute offerings: Azure Functions and Azure Logic Apps. Azure Functions is an event based Serverless compute experience that helps you accelerate your development. Run time is open. Function code can be executed in vm or somewhere else, on prem or in clould. Logic Apps is a powerful orchestration tool. It enables building a Serverless app in minutes – by orchestrating multiple functions using a visual workflow tool. Say you have your apps up and running using Serverless. Congratulations! You now need to collect intelligence from different apps across platforms to take actions upon. There are a few essential components which we think are core to building Serverless applications are: Data/ Storage –Functions has triggers and bindings with Azure document DB and Azure Blob storage ** Triggers: Triggers are event responses used to trigger your custom code. They allow you to respond to events across the Azure platform or on premise. ** Bindings: Bindings represent the necessary meta data used to connect your code to the desired trigger or associated input or output data. Messaging such as queues and topics using Azure Service Bus and Azure Event Hubs Integration – that includes core LOB apps and SaaS apps integration via Azure Logic Apps. Intelligence on data and sentiment/ predictive analysis using Cognitive services and Machine learning Conversation as a service – how do we equip developers to build apps that offer an end-to-end experience for their end users – Azure Bot Service offers a Serverless interactive bot experience. More, developers are spending more time writing code that allows them to add huge business impact with Serverless. MSFT offers numerous development tools such as IDE Support for Visual Studio in functions and Logic Apps, enables local development (vs web browser coding environment), visual debugging capability, all with your tools of choice. Lastly, I also want to highlight top scenarios and use cases for Serverless: Real-time Stream analytics: Customers can use Functions to feed real-time streams of data from application tracking into structured data and store it in SQL online. SaaS event processing: Customers can use Functions and Logic Apps to analyze data from an excel file in Onedrive and perform validation, filtration, sorting and convert data into consumable business charts Web app architecture: Used a lot in creating targeted marketing collaterals – when a customer clicks on a webpage, it triggers a webhook, that uses a function to create an ad that matches the customer profile and displays a completed webpage. Real-time bot messaging: When customers send a message to a chatbox, Functions calls Cortana analytics to generate appropriate answers and sends a response back. //from before: Customers have different paths to build a Serverless app – start by building the distributed application components using functions by leveraging the numerous templates and declarative bindings Or Start with the workflow and orchestration of Serverless application using Azure Logic Apps. The visual designer enables developers to quickly and easily author, edit and visualize orchestration of multiple functions and workflow.
  • #23: Azure Functions supports many more bindings, triggers and languages Python, Batch, PHP, PowerShell
  • #26: The difference between trigger and binding…
  • #29: This is the whole (top level) Dev Ops story where Dev build wounderful apps, using CI they mange their code, builds, and releases. Connecting to a repository, they can deploy to Azure Websites, build in the cloud, deploy to a slot to test and validate, swap into production, deployed across the globe as needed, monitor and get feedback, on which devs can make updates. Rinse and repeat
  • #41: Languages: ?C#, F#, Node.js, Python, PHP, batch, bash
  • #42: With that opening in mind and somewhat general understanding of what we are trying to prove here Now that we understand some of the pain points with having big application with many functions. It is important to take a moment to review some basic best practices for Functions: Functions should do one thing Functions should finish as quickly as possible Functions should be stateless Functions should be idempotent
  • #43: Stateless application that needs to scale
  • #45: http://www.serverless.com
  • #46: https://claudiajs.com/claudia.html
  • #50: Uses binding attributes