© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Arun Gupta, @arungupta
Principal Open Source Technologist
Amazon Web Services
The Serverless Tidal Wave
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Changes the rules
Incredible opportunity
Incredible challenge
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless Means…
No server
management
Flexible
scaling
High
availability
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Additional Benefits on Serverless
Easy to author, deploy, and secure
Enables best practices for building modern applications
• Stateless
• Event-driven
• Functions
• Microservices
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The First Service at AWS
Amazon S3
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Pioneered Serverless with AWS Lambda
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Serverless Platform
AWS Lambda Amazon API Gateway
COMPUTE, EDGECOMPUTE, ANDAPI PROXY
Lambda@Edge Greengrass
Amazon DynamoDB
Amazon SNS
Amazon SQS
Amazon Kinesis
Amazon S3
AWS Step Functions
DATASTORES,STORAGE,ORCHESTRATION,ANALYTICS,APPLICATION INTEGRATION
Amazon Aurora
Serverless(preview)
AWS AppSync
AWS X-Ray
DEVELOPERTOOLS
AWS CodeBuild
AWS CodePipelineAWS Serverless Application
Model (SAM)
Open Source and
third parties
AWS Cloud9
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The broader community has also evolved
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 Amazon
DynamoDB
Amazon Kinesis Amazon Cognito
Amazon SNSAmazon
SES
Cron events
Data stores Endpoints
Configuration repositories Event/message services
Business Logic between Services for AWS
…and more on the way
AWS
CloudFormation
AWS
CloudTrail
Amazon
CloudWatch
AWS
CodeCommit
Amazon
API Gateway
Amazon
Alexa
AWS
IoT
AWS Step
Functions
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
<X> Storage
<X> Database
<X> API Mgmt
<X> Functions
Business Logic between Services for <X> Cloud
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
<X> Functions
Business Logic between Services for AWS and <X>
AWS
Lambda
<X> Storage ?
?
S3
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Package & Deploy Serverless Apps
Serverless Application Model (SAM)
Template-driven deployment model
Serverless resource types: Functions, APIs,
and Tables
https://github.com/awslabs/serverless-application-
model
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Share Serverless Apps
Search and browse
Customize
Share
Powered by AWS SAM!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless benefits applied
to other services
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Aurora Serverless (Preview)
On-demand, auto-scaling database for applications
with variable workloads
Auto start/shutdown
Automatically scales
Pay-per-second
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What about Containers?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Containers make it easy to build, deploy,
and scale modern applications
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Control Plane
Data Plane
Cluster Manager Scheduler Controller
EC2 Instance EC2 Instance EC2 Instance EC2 Instance EC2 Instance
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Control Plane
Data Plane
AgentDockerOS
EC2 Instance
AgentDockerOS
EC2 Instance
AgentDockerOS
EC2 Instance
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Container Services
(limited preview)
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Applying Serverless to Kubernetes
• Cluster Autoscaler to BYO Serverless to K8s
• Challenges
• Special node resources
• Affinity and anti-affinity
• DaemonSet Controller
• Cost management
• Needs discussion in the Kubernetes community
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Node
Node
Node
Providers
Virtual Kubelet - Serverless with Kubernetes
Resource Definition
(Pod etc.)
kubectl
Hyper.sh
Azure Container
Instances
AWS Fargate
Pod
Master
API Server
Pod
Virtual
Kubelet
Kubelet
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Imagine a world…
where as a developer…
you just write code!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GO BUILD!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

The Serverless Tidal Wave - SwampUP 2018 Keynote

  • 1.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Arun Gupta, @arungupta Principal Open Source Technologist Amazon Web Services The Serverless Tidal Wave
  • 2.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Changes the rules Incredible opportunity Incredible challenge
  • 3.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Serverless Means… No server management Flexible scaling High availability
  • 4.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Additional Benefits on Serverless Easy to author, deploy, and secure Enables best practices for building modern applications • Stateless • Event-driven • Functions • Microservices
  • 5.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. The First Service at AWS Amazon S3
  • 6.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. AWS Pioneered Serverless with AWS Lambda
  • 7.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 8.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. AWS Serverless Platform AWS Lambda Amazon API Gateway COMPUTE, EDGECOMPUTE, ANDAPI PROXY Lambda@Edge Greengrass Amazon DynamoDB Amazon SNS Amazon SQS Amazon Kinesis Amazon S3 AWS Step Functions DATASTORES,STORAGE,ORCHESTRATION,ANALYTICS,APPLICATION INTEGRATION Amazon Aurora Serverless(preview) AWS AppSync AWS X-Ray DEVELOPERTOOLS AWS CodeBuild AWS CodePipelineAWS Serverless Application Model (SAM) Open Source and third parties AWS Cloud9
  • 9.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. The broader community has also evolved
  • 10.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Amazon S3 Amazon DynamoDB Amazon Kinesis Amazon Cognito Amazon SNSAmazon SES Cron events Data stores Endpoints Configuration repositories Event/message services Business Logic between Services for AWS …and more on the way AWS CloudFormation AWS CloudTrail Amazon CloudWatch AWS CodeCommit Amazon API Gateway Amazon Alexa AWS IoT AWS Step Functions
  • 11.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. <X> Storage <X> Database <X> API Mgmt <X> Functions Business Logic between Services for <X> Cloud
  • 12.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. <X> Functions Business Logic between Services for AWS and <X> AWS Lambda <X> Storage ? ? S3
  • 13.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 14.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Package & Deploy Serverless Apps Serverless Application Model (SAM) Template-driven deployment model Serverless resource types: Functions, APIs, and Tables https://github.com/awslabs/serverless-application- model
  • 15.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 16.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Share Serverless Apps Search and browse Customize Share Powered by AWS SAM!
  • 17.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless benefits applied to other services
  • 18.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Amazon Aurora Serverless (Preview) On-demand, auto-scaling database for applications with variable workloads Auto start/shutdown Automatically scales Pay-per-second
  • 19.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What about Containers?
  • 20.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Containers make it easy to build, deploy, and scale modern applications
  • 21.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Control Plane Data Plane Cluster Manager Scheduler Controller EC2 Instance EC2 Instance EC2 Instance EC2 Instance EC2 Instance
  • 22.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Control Plane Data Plane AgentDockerOS EC2 Instance AgentDockerOS EC2 Instance AgentDockerOS EC2 Instance
  • 23.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 24.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Amazon Container Services (limited preview)
  • 25.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Applying Serverless to Kubernetes • Cluster Autoscaler to BYO Serverless to K8s • Challenges • Special node resources • Affinity and anti-affinity • DaemonSet Controller • Cost management • Needs discussion in the Kubernetes community
  • 26.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Node Node Node Providers Virtual Kubelet - Serverless with Kubernetes Resource Definition (Pod etc.) kubectl Hyper.sh Azure Container Instances AWS Fargate Pod Master API Server Pod Virtual Kubelet Kubelet
  • 27.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 28.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Imagine a world… where as a developer… you just write code! © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 29.
    © 2018, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. GO BUILD! © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.