From Zero to Serverless
DogFoodCon October 4, 2018
Chad Green
From Zero to Serverless DogFoodCon October 4, 2018 Who is Chad - - PowerPoint PPT Presentation
Chad Green From Zero to Serverless DogFoodCon October 4, 2018 Who is Chad Green Data & Solutions Architect at ProgressiveHealth Community Involvement Code PaLOUsa Conference Chair Louisville .NET Meetup Organizer
DogFoodCon October 4, 2018
Chad Green
Who is Chad Green
chadgreen@chadgreen.com chadgreen.com ChadGreen ChadwickEGreen
From Zero to Serverless
From Zero to Serverless
4
On-Premises
Which packages should be on my server? How do I deploy new code to my servers? How can I increase server utilization? How often should I patch my servers? What size of servers should I buy? Who has physical access to my servers? It takes how long to provision a new server?
From Zero to Serverless
5
IaaS
What is the right size of servers for my business needs? How can I increase server utilization? How many servers do I need? How can I scale my application? How do I deploy new code to my server? Which Operating System should I use? Who monitors my application? How often should I patch my servers? How often should I backup my server? Which packages should be on my server?
From Zero to Serverless
6
PaaS
What is the right size of servers for my business needs? How can I increase server utilization? How many servers do I need? How can I scale my application?
From Zero to Serverless
7
Serverless The platform for next generation applications
From Zero to Serverless
8
depend on services (in the cloud) to manage server-side logic and state
Area #1 Area #2
containers that are event-triggered, ephemeral, and fully managed by a 3rd party
Backend as a Service (BaaS) Functions as a Service (FaaS)
From Zero to Serverless
9
depend on services (in the cloud) to manage server-side logic and state
Area #1 Area #2
containers that are event-triggered, ephemeral, and fully managed by a 3rd party
Backend as a Service (BaaS) Functions as a Service (FaaS)
From Zero to Serverless
10
Abstraction of Servers Event-Driven/Instant Scale Micro-Billing
From Zero to Serverless
11
Reduced DevOps Faster Time to Market Manage apps not servers
From Zero to Serverless
12
Monolith
Microservice Microservice Microservice Microservice Function Function Function Function Function Function Function Function Function Function Function
From Zero to Serverless
13
Complexity Organizational Support No Runtime Optimization
From Zero to Serverless
From Zero to Serverless
15
From Zero to Serverless
16
Functions
Execute your code based
Logic Apps
Design workflows and
Event Grid
Manage all events that can trigger code or logic
From Zero to Serverless
17
Functions
Execute your code based
Logic Apps
Design workflows and
Event Grid
Manage all events that can trigger code or logic
Storage Security IoT Analytics Intelligence Database
From Zero to Serverless
Events + data Code
From Zero to Serverless
19
App Service Dynamic Runtime
Hosting, CI, Deployment Slots, Remote Debugging, etc.
WebJobs Core
Programming model, common abstractions
WebJobs Extensions
Triggers, input, and output bindings
WebJobs Script Runtime
Azure Functions Host – Dynamic Compilation, Language abstractions, etc.
Language Runtime
C#, Node.js, F#, PHP, etc.
Code Config
From Zero to Serverless
20
Batch
From Zero to Serverless
21
Type Schedule HTTP (REST or webhook) Blob Storage Events Queues Queues and topics Storage tables SQL tables NoSQL DB Push Notifications Twilio SMS Text SendGrid Email Azure Functions Service Azure Functions Azure Storage Azure Event Hubs Azure Storage Azure Service Bus Azure Storage Azure Mobile Apps Azure Cosmos DB Azure Notification Hubs Twilio SendGrid Trigger Input Output
From Zero to Serverless
22
else
choice
From Zero to Serverless
23
Runtime 1.x Runtime 2.x
From Zero to Serverless
24
From Zero to Serverless
25
From Zero to Serverless
26
From Zero to Serverless
27
From Zero to Serverless
28
From Zero to Serverless
29
Demo 1: Create an Azure Function from the Portal
Demo 2: Create an Azure Function from Visual Studio
From Zero to Serverless
49
Deployment Options Monitoring Options
Demo 3: CI/CD
From Zero to Serverless
61
Take our current function url:
https://stirtrek.azurewebsites.net/api/HttpTriggerCSharp1?code=k9as3MKuDEA Oyj3GbniZgJjWrn1cMqTAcDhbzqgAldUcYk67EX8QVg==&name={name}
Our function URL would then be like this:
https://stirtrek.azurewebsites.net/HelloWorld/{name}
Demo 4: Setting up routing and proxies
From Zero to Serverless
72
From Zero to Serverless
73
From Zero to Serverless
From Zero to Serverless
75
From Zero to Serverless
76
Consumption Plan App Service Plan
time
App Service plan
availability tier)
From Zero to Serverless
77
Meter Price Free Grant Execution Time $0.000016 per Gb-s 400,000 GB-s Executions $0.20 per million executions 1 million executions
Pricing Example
From Zero to Serverless
From Zero to Serverless
79
From Zero to Serverless
80
From Zero to Serverless
81
From Zero to Serverless
82
From Zero to Serverless
83
From Zero to Serverless
84
From Zero to Serverless
85
From Zero to Serverless
86
From Zero to Serverless
87
From Zero to Serverless
88
Questions