2016 - The Best Infrastructure is the One That Doesn't Exist: Building Serverless Apps

Preview:

Citation preview

THE BEST INFRASTRUCTURE IS THE ONE THAT DOESN’T EXIST

BUILDING SERVERLESS APPS

Jeff NunnSolutions Architect

Amazon Web Services

@jbnunn

“What does serverless even mean?”- Everyone’s Mom

Amazon API Gateway

AWSLambda

The peanut butter and jelly of serverless architecture:

Amazon API Gateway

• Fully managed API management service• Accepts and processes up to hundreds of

thousands of concurrent API calls• Direct integration to AWS or 3P services• Traffic management• Authorization and access controls• Swagger import/export

Your front door for applications to access data and business logic

• Automatically scales • Execute code in response to triggers• Run parallel/threaded processes• Subsecond vs hourly billing• Java, Node.js, Python support

Run code without provisioning or managing servers

AWSLambda

Amazon API Gateway

AWSLambda

The peanut butter and jelly of serverless architecture:

Amazon API Gateway

AWSLambda

The peanut butter, banana, fresh white bread, and jelly of serverless architecture:

AmazonDynamoDB

AmazonS3

• Virtually limitless throughput and storage• Single-digit millisecond latency• Automatic and synchronous data replication

across three facilities in a Region• Document data model, key value model,

Titan integration, Elasticsearch/Logstash integration

Fast and flexible NoSQL database

AmazonDynamoDB

• 11 9’s of durability• Scale on demand• Built-in versioning and encryption• Static web hosting• Object lifecycle management

Secure, durable, and highly scalable cloud storage

AmazonS3

Amazon API Gateway

AWSLambda

AmazonDynamoDB

AWSLambda

AmazonSES

AmazonS3

[ DEMO ]

• You don’t have to replace everything

CONSIDERATIONS

• Just because you do serverless doesn’t mean you can’t do DevOps

• You don’t have to replace everything

CONSIDERATIONS

• Just because you do serverless doesn’t mean you can’t do DevOps

• Watch out for sprawl

• Run/test AWS Lambda functions locally, or remotely• Auto-deploys, versions & aliases your Lambda functions• Auto-deploys your REST API to AWS API Gateway• Auto-deploys your Lambda events• Support for multiple stages• Environment variable support• Interactive CLI dashboard to easily select and

deploy functions and endpoints• Optimize your Lambda functions for faster response times• Support for API Gateway custom authorizers• 100% Extensible - Extend or modify the Framework

and its operations via Plugins• Powerful classes and methods for easy plugin development• AWS best practices and optimizations built in• A fantastic and welcoming community!

"No server is easier to manage than no server”- Werner Vogles, CTO, Amazon.com

ResourcesAmazon API Gateway

https://aws.amazon.com/api-gateway/

AWS Lambdahttps://aws.amazon.com/lambda/

Serverless.com Githubhttps://github.com/serverless/serverless

Reach out!@jbnunn

Recommended