Loading

Discover Serverless

Johnny Hall

This is a live streamed presentation. You will automatically follow the presenter and see the slide they're currently on.

Evolution of Web Infrastructure

IaaS

Infrastructure as a Service

PaaS

Platform as a Service

https://heroku.com

Container Technology

Docker https://docker.com

Kubernetes https://kubernetes.io/

FaaS

Function as a Service

 

What is Serverless?

Servers are completely abstracted from the developer

The billing is based on the consumption and executions of functions, not server instance

Event-driven and instantaneously scalable

Platforms and Technologies

Google Cloud Functions

https://cloud.google.com/functions/

 
 

Architect

https://arc.codes

 
 
 

Cloudflare Workers

https://workers.cloudflare.com/

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Demo

Create Account on AWS

https://aws.amazon.com/free/

 
 
 

Install Serverless CLI
 

 
 
 
sudo npm install serverless -g

Create Serverless Project

 
 
mkdir serverless
cd serverless
serverless create -t aws-nodejs

AWS Access Key

4
 
 
serverless config credentials --provider aws --key <your-aws-key> --secret <your-aws-secret>

Create a Function

4
 
 
// handler.js

'use strict';

module.exports.hello = async (event, context) => {
  return {
    statusCode: 200,
    body: JSON.stringify({
      message: 'Hello World!',
      input: event,
    }),
  };
};

Deploy

 
4
 
 
serverless deploy
Made with Slides.com