azure functions - get rid of your servers, use functions!

35
Get rid of your servers! Use functions + </> = Manuela Rink Technical Evangelist @

Upload: qaware-gmbh

Post on 08-Jan-2017

30 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Azure Functions - Get rid of your servers, use functions!

Get rid of your servers!

Use functions☁ + </> = 👊

Manuela RinkTechnical Evangelist @

Page 2: Azure Functions - Get rid of your servers, use functions!

#0The Theoretical Part*

*no excuses – first part needs to be theory!

Page 3: Azure Functions - Get rid of your servers, use functions!

Transformation from own “iron” to cloud VMs

Page 4: Azure Functions - Get rid of your servers, use functions!

Transformation from VMs to microservices / functions

Page 5: Azure Functions - Get rid of your servers, use functions!

We’ve come a long long way togetherThecloudevolution

Page 6: Azure Functions - Get rid of your servers, use functions!

Serverlessor

Jeff*or

“just the next pig which is chased through the village?”

*Serverlessisjustaname,PaulJohnston

Page 7: Azure Functions - Get rid of your servers, use functions!

“[…] is a cloud computing code execution model in which the cloud provider fully manages starting and stopping virtual machines as necessary to serve requests, and requests are billed by an abstract measure of the resources required to satisfy the request, rather than per virtual machine, per hour.”

-- Wikipediahttps://en.wikipedia.org/wiki/Serverless_computing

Page 8: Azure Functions - Get rid of your servers, use functions!

“Quick and easyrun pieces of code* in the cloud, without worrying about infrastructure or maintenance.”

-- Manu Rink, 2016

*of various size

Page 9: Azure Functions - Get rid of your servers, use functions!

AWSLambdaGAsinceApril2015

AzureFunctionsGAsinceNovember2016

Page 10: Azure Functions - Get rid of your servers, use functions!

#1Functions!!!11eleven

*not long until the demos, I swear!

Page 11: Azure Functions - Get rid of your servers, use functions!

Inspired by Matthew Henderson @ Microsoft

Page 12: Azure Functions - Get rid of your servers, use functions!

“Function App” is a group of functions

Inspired by Matthew Henderson @ Microsoft

Page 13: Azure Functions - Get rid of your servers, use functions!

Inherit from / Build on top of App Services

Full control of dependencies and connectors

Choose your fav language and coding environment

Powerful integration of you existing Azure apps

Choose from a wide variety of triggers

Open sourced

Page 14: Azure Functions - Get rid of your servers, use functions!

App Service Features and CapabilitiesEnterprise Grade AppsDesigned for secure mission-critical applications

Fully Managed PlatformOptimized for Availability and Automatic scale

High Productivity DevelopmentAgility through Continuous Deployment

Hybrid Connections / VPN / VLANScheduled BackupAzure Active Directory Integration Site Resiliency, HA, and DRWeb JobsRole Base Access Control Audit / Compliance Enterprise MigrationClient Certs CacheIP Restrictions/ SSLWeb SocketsSQL, MySQL, DocDB, & MongoSticky Sessions Authorization/ Authentication

Automated DeploymentAutoScaleBuilt-in Load BalancingWorldwide Datacenter CoverageEnd Point Monitoring & AlertsApp GalleryDR Site SupportWildCard SupportDedicated IP addressHTTP Compression CDN Support for WebsitesPremium WordPressApp Services Environments

Remote Debugging w/ Visual Studio Site Staging SlotsTesting in ProductionContinuous Integration/Deployment Git, Visual Studio Online and GitHubApp & Site DiagnosticsOS & Framework Patching Site Extensions Gallery NET, PHP, Python, Node, JavaFramework InstallerBrowser-based editingAuto-HealingLogging and Auditing Admin-SiteSupport Site Extension

Inspired by Matthew Henderson @ Microsoft

Page 15: Azure Functions - Get rid of your servers, use functions!

Templates

• Azure Internal Service Triggers• Blob• EventHub• Storage Queue• Service Bus Queue• Service Bus Topic

• Generic Triggers• Generic WebHook• GitHub WebHook• Http • Timer

Languages

• Core• C#• JS/Node

• Experimental• PowerShell• Python• PHP• F#• Bash

Page 16: Azure Functions - Get rid of your servers, use functions!

#2Building the real stuff*!… in 3 stages

*finally!

Page 17: Azure Functions - Get rid of your servers, use functions!

Yeaaah,butwhatcanIbuildwith’em?

Page 18: Azure Functions - Get rid of your servers, use functions!

Scenario 0The Easy Cake

use HTTP trigger to provide HTTP endpoints

to

build an “Is the cake a lie?” service

Page 19: Azure Functions - Get rid of your servers, use functions!

Scenario 0 – Easy cake! – Simple HTTP endpoint

Page 20: Azure Functions - Get rid of your servers, use functions!

Y

AX B

EasyCake

LIVE DEMO

Page 21: Azure Functions - Get rid of your servers, use functions!

Scenario 1Connect all the things!

use web hooks for wiring up heterogeneous services

to

connect Slack with your mobile backend

Page 22: Azure Functions - Get rid of your servers, use functions!

Scenario 1 - Connect all the things! – Slack & mobile backend

TheServerlessConnector- UseFunctionstowriteSlackpostsinyourmobilebackend

Page 23: Azure Functions - Get rid of your servers, use functions!

Y

AX B

Connectall thethings!

LIVE DEMO

Page 24: Azure Functions - Get rid of your servers, use functions!

Scenario 2Like a pro!

use Blob Trigger to let function react on storage I/O of other function

to

build an image resizing service

Page 25: Azure Functions - Get rid of your servers, use functions!

Scenario 2 - Like a pro! – Image Resizing Service

Page 26: Azure Functions - Get rid of your servers, use functions!

Scenario 2 - Like a pro! – Image Resizing Service

Page 27: Azure Functions - Get rid of your servers, use functions!

https://github.com/codePrincess/resizingService

Scenario 2 - Like a pro! – Image Resizing Service

Page 28: Azure Functions - Get rid of your servers, use functions!

Y

AX B

Likeapro!

LIVE DEMO

Page 29: Azure Functions - Get rid of your servers, use functions!

#3a Penny saved is a penny goT*

*’nuff said!

Page 30: Azure Functions - Get rid of your servers, use functions!

Cool stuff so far … and the costs?

Page 31: Azure Functions - Get rid of your servers, use functions!

It’s free**for the 1 million executions and the first 400.000 GB/s

Page 32: Azure Functions - Get rid of your servers, use functions!

Function executes 2.000.000 times with a duration of 1 second using 1536MB RAM

Resource consumption costs

2 million exec * 1 second = 2 million seconds1536 MB / 1024 MB = 1.5 GB1.5 GB * 2 million seconds = 3 million GBs3 million GBs – 400000 GBs = 2.6 million GBs2.6 million GBs * 0.000016 $/GBs = 41.60 $

Execution costs

2 million exec - 1 million exec = 1 million exec 1 million exec * 0.20$ = 0.20$

41.60$ + 0.20$ = 41.80$

Pricing OverviewPricing Calculator

Same example – just with 128MB RAM

0 $ + 0.20$ = 0.20$

Resource consumption costs

2 million exec * 1 second = 2 million seconds128 MB / 1024 MB = 0.125 GB0.125 GB * 2 million seconds = 0.25 million GBs0.25 million GBs – 400000 GBs = 0 GBs0 million GBs * 0.000016 $/GBs = 0 $

Execution costs

2 million exec - 1 million exec = 1 million exec 1 million exec * 0.20$ = 0.20$

Page 33: Azure Functions - Get rid of your servers, use functions!

#4... This is the end!

Page 34: Azure Functions - Get rid of your servers, use functions!

😻Easy to build & deploy

Various languages supported

Lot of triggers available

Inter-connectable in- & outside of Azure

Cost effective

Page 35: Azure Functions - Get rid of your servers, use functions!

Merci :)

Manu RinkTechnical Evangelist

[email protected]@codeprincess

says