Louisville .NET Meetup April 2018 From Zero to Serverless Thanks - - PowerPoint PPT Presentation

louisville net meetup april 2018
SMART_READER_LITE
LIVE PREVIEW

Louisville .NET Meetup April 2018 From Zero to Serverless Thanks - - PowerPoint PPT Presentation

Louisville .NET Meetup April 2018 From Zero to Serverless Thanks to our Sponsors Upcoming Meetups May 17 Does it NEED to be a PWA? Tara A. Manicsic June 21 Azures Cosmos DB from a Developers Perspective Mike


slide-1
SLIDE 1

Louisville .NET Meetup – April 2018

From Zero to Serverless

slide-2
SLIDE 2

Thanks to our Sponsors

slide-3
SLIDE 3

Upcoming Meetups

 May 17

 Does it NEED to be a PWA?

 Tara A. Manicsic

 June 21

 Azure’s Cosmos DB from a Developer’s Perspective

 Mike Schlegel

 July 19

 Develop Couchbase Apps on Microsoft Azure

 Matt Groves

slide-4
SLIDE 4

Other Groups to Check Out

 JSLou  Louisville Tech Ladies  Louisville Tech Leaders  IT Happy Hour

slide-5
SLIDE 5

Upcoming Local Events

 Louisville Global Azure Bootcamp

 April 21

 Louisville DevOps Global Bootcamp

 June 16

slide-6
SLIDE 6

Upcoming Online Events

 Microsoft Build (build.microsoft.com)

 May 7 – 9

 Google I/O (events.google.com/io)

 May 8 – 10

slide-7
SLIDE 7

Upcoming Regional Events

 CodeStock – Knoxville, TN

 April 20 - 21

 Stir Trek – Columbus, OH

 May 4

 Music City T

ech – Nashville

 May 31 – June 2

 Pittsburg T

echFest 2018

 June 2

 Beer City Code – Grand Rapids, MI

 June 22 – 23

 That Conference – Wisconsin Dells, WI

 August 6 – 8

 Scenic City Summit 2018 – Chattanooga

 August 17

 CoderCruise 2018 – The Bahamas

 August 30 – September 3

slide-8
SLIDE 8
slide-9
SLIDE 9

From Zero to Serverless

Louisville .NET Meetup April 19, 2018

Chad Green

slide-10
SLIDE 10

Who is Chad Green

  • Data & Solutions Architect at ProgressiveHealth
  • Community Involvement
  • Code PaLOUsa Conference Chair
  • Louisville .NET Meetup Organizer
  • Louisville Tech Leaders Meetup Co-Organizer
  • Louisville Tech Ladies Committee Member
  • Contact Information
  • chadgreen@chadgreen.com
  • chadgreen.com
  • ChadGreen
  • ChadwickEGreen
slide-11
SLIDE 11

Our Agenda

What is Serverless Computing Serverless Options Code Demonstrations Azure Functions

slide-12
SLIDE 12

What is Serverless Computing

From Zero to Serverless

slide-13
SLIDE 13

From Zero to Serverless

The evolution of application platforms

13

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?

slide-14
SLIDE 14

From Zero to Serverless

The evolution of application platforms

14

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?

slide-15
SLIDE 15

From Zero to Serverless

The evolution of application platforms

15

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?

slide-16
SLIDE 16

From Zero to Serverless

The evolution of application platforms

16

Serverless The platform for next generation applications

slide-17
SLIDE 17

From Zero to Serverless

What is Serverless?

17

  • Applications that significantly or fully

depend on services (in the cloud) to manage server-side logic and state

Area #1 Area #2

  • Application run in stateless compute

containers that are event-triggered, ephemeral, and fully managed by a 3rd party

Backend as a Service (BaaS) Functions as a Service (FaaS)

slide-18
SLIDE 18

From Zero to Serverless

What is Serverless?

18

Abstraction of Servers Event-Driven/Instant Scale Micro-Billing

slide-19
SLIDE 19

From Zero to Serverless

Benefits of Serverless

19

Reduced DevOps Faster Time to Market Manage apps not servers

slide-20
SLIDE 20

From Zero to Serverless

Challenges of Serverless Architecture

20

Complexity Organizational Support No Runtime Optimization

Managing a monolithic application as a single unit is more straightforward than managing a fleet of purpose- built functions and the dependencies between them. It’s a non-trivial consideration for some to move to a serverless paradigm. By its very nature, you mostly do not have control over the execution environment for the workload.

slide-21
SLIDE 21

Serverless Options

From Zero to Serverless

slide-22
SLIDE 22

From Zero to Serverless

Serverless Options

22

  • Zimki
  • Google Cloud Functions
  • Amazon Lambda
  • IBM Openwhisk
  • Auth0 WebTask
slide-23
SLIDE 23

From Zero to Serverless

Azure Serverless

23

Functions

Execute your code based

  • n events you specify

Logic Apps

Design workflows and

  • rchestrate processes

Event Grid

Manage all events that can trigger code or logic

Storage Security IoT Analytics Intelligence Database

slide-24
SLIDE 24

Azure Functions

From Zero to Serverless

slide-25
SLIDE 25

From Zero to Serverless

Features of Azure Functions

25

  • Choice of language
  • Pay-per-use pricing model
  • Bring your own dependencies
  • Integrated security
  • Simplified integration
  • Flexible development
  • Open-source

Batch

slide-26
SLIDE 26

From Zero to Serverless

What can you do with Functions

26

  • HTTPTrigger
  • TimerTriger
  • GitHub webhook
  • Generic webhook
  • CosmosDBTrigger
  • BlobTrigger
  • QueueTrigger
  • EventHubTrigger
  • ServiceBusQueueTrigger
  • ServiceBusTopicTrigger
slide-27
SLIDE 27

From Zero to Serverless

What can you do with Functions

27

Timer-Based Processing Azure Service Event Processing SaaS Event Processing Serverless Web Application Architectures Serverless Mobile Back Ends Real-Time Stream Processing Real-Time Bot Messaging

slide-28
SLIDE 28

From Zero to Serverless

Azure Functions Pricing

28

  • Takes care of everything but your code
  • Pay only when your functions are running
  • Scale out automatically

Consumption Plan App Service Plan

  • You pretty much take care of everything
  • Consider when:
  • Existing, underutilized VMs
  • Function apps to run continuously
  • More CPU or memory options
  • Run longer than maximum execution

time

  • Require features only available on

App Service plan

  • Want to run on Linux
slide-29
SLIDE 29

From Zero to Serverless

How the Consumption plan works

29

slide-30
SLIDE 30

From Zero to Serverless

Azure Functions Pricing

30

  • Gigabyte-second (GB-s) – Combination of memory size and execution time
  • Executions – Each time a function is executed
slide-31
SLIDE 31

Code Demonstrations

slide-32
SLIDE 32

Demo 1: Create an Azure Function from the Portal

slide-33
SLIDE 33

From Zero to Serverless

Demo 1: Create an Azure Function from the Portal

33

Log into the Azure Portal – https://portal.azure.com

slide-34
SLIDE 34

From Zero to Serverless

Demo 1: Create an Azure Function from the Portal

34

Create a function app

slide-35
SLIDE 35

From Zero to Serverless

Demo 1: Create an Azure Function from the Portal

35

Create a function app

slide-36
SLIDE 36

From Zero to Serverless

Demo 1: Create an Azure Function from the Portal

36

Create a function app

slide-37
SLIDE 37

From Zero to Serverless

Demo 1: Create an Azure Function from the Portal

37

Create an HTTP triggered function

slide-38
SLIDE 38

From Zero to Serverless

Demo 1: Create an Azure Function from the Portal

38

Test the function

slide-39
SLIDE 39

From Zero to Serverless

Demo 1: Create an Azure Function from the Portal

39

Test the function

slide-40
SLIDE 40

Demo 2: Create an Azure Function Triggered by a Timer

slide-41
SLIDE 41

From Zero to Serverless

Demo 2: Create an Azure Function Triggered by a Timer

41

Create a timer triggered function

slide-42
SLIDE 42

From Zero to Serverless

Demo 2: Create an Azure Function Triggered by a Timer

42

Create a timer triggered function

slide-43
SLIDE 43

From Zero to Serverless

Demo 2: Create an Azure Function Triggered by a Timer

43

Verify execution

slide-44
SLIDE 44

From Zero to Serverless

Demo 2: Create an Azure Function Triggered by a Timer

44

Update the timer’s schedule

slide-45
SLIDE 45

Demo 3: Create an Azure Function from Visual Studio

slide-46
SLIDE 46

From Zero to Serverless

Demo 3: Create an Azure Function from Visual Studio

46

Install Visual Studio 2017

slide-47
SLIDE 47

From Zero to Serverless

Demo 3: Create an Azure Function from Visual Studio

47

Include the Azure development workload

slide-48
SLIDE 48

From Zero to Serverless

Demo 3: Create an Azure Function from Visual Studio

48

Create a function app project

slide-49
SLIDE 49

From Zero to Serverless

Demo 3: Create an Azure Function from Visual Studio

49

Create a function app project

slide-50
SLIDE 50

From Zero to Serverless

Demo 3: Create an Azure Function from Visual Studio

50

Create a function app project

slide-51
SLIDE 51

From Zero to Serverless

Demo 3: Create an Azure Function from Visual Studio

51

Test the function locally

slide-52
SLIDE 52

From Zero to Serverless

Demo 3: Create an Azure Function from Visual Studio

52

Test the function locally

slide-53
SLIDE 53

Best Practices

From Zero to Serverless

slide-54
SLIDE 54

From Zero to Serverless

Best Practices

54

  • Functions should do one thing
  • Functions should finish as quickly as possible
  • Where to get started
  • Start small, replace 1 API or background processing item
  • Integration is a great place, often it’s a new layer on top of old layers
slide-55
SLIDE 55

Summary

From Zero to Serverless

slide-56
SLIDE 56

From Zero to Serverless

Summary

56

  • With Azure Functions, the focus is on the code and not managing the

infrastructure

  • Serverless architecture provides the following benefits:
  • Reduced time to market
  • Lower total cost of ownership
  • Pay per execution
slide-57
SLIDE 57

From Zero to Serverless

Azure Serverless Compute Summary

57

  • It’s now becoming easier than ever to create small, targeted

microservice/nanoservice architecture using a variety of services

  • Azure provides many services that can help you achieve a low-friction, high-

throughput and low-cost solution

  • Azure Functions, Logic Apps, Event Grid are just a few in the serverless

architecture family

slide-58
SLIDE 58

Who is Chad Green

chadgreen@chadgreen.com chadgreen.com ChadGreen ChadwickEGreen bit.ly/LDN0418

slide-59
SLIDE 59