SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless: State of the Union
Randall Hunt
Technical Developer Evangelist
randhunt@amazon.com
@jrhunt
ranman
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
@jrhunt
ThankYou to our sponsors!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
@jrhunt
Acknowledgements
• Thanks to all the service teams that build this service
• Thanks to all my colleagues that build these decks
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A typical day for a developer…
Manager “We need an app to let our customers update preference
settings – our competitors just launched the same thing, so I need it
fast. I don’t want to pay a lot for it, especially when no one is using it.
But remember that we’re growing, so make sure it scales great and is
easy to manage and operate. And you’re on your own – sorry!”
Developer “Not a problem. I’ll make it serverless…”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless means…
No Server Management Flexible Scaling
No Idle Costs
$
High Availability
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless Benefits
• Never pay for idle, request-based pricing
• No infrastructure to provision, monitor, or manage
• Scaling and fault-tolerance built in
• Easy to author, deploy, and secure
• Enables best practices (events, stateless functions)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Joe promised his boss an app.
Now what?
Step 1: Find a working example!
Serverless web app with
…an API hosted on Amazon API Gateway
…access to existing data stored in Amazon DynamoDB
…static content served by Amazon S3 and Amazon CloudFront
…dynamic content/business logic encoded as Lambda functions
What we need
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Search and browse ready-made apps
and samples
• Customize open source apps to get
started quickly
• Share apps privately or publically
•Monetize APIs using theAWS
Marketplace
• Powered by AWS Serverless
Application Model (AWS SAM)!
AWS Serverless Application Repository
(preview)
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
Lambda Function Editor
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
• Edit multiple files at once!
• Create new files for existing
packages
• Run tests and view results
and logs without leaving the
editor
• Save test inputs and reuse
them later
Serverless app benefits
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
Go from concept to working code in under 15 minutes. And
your app isn’t just a prototype…
• 1,000 concurrent executions by default.
• Every account in good standing is automatically
approved to 3X the default!
• 1,000 concurrent executions (10K
TPS) by default. Auto-approvals for
everyone to triple.
Faster perf with
cold-start
optimization!
Up to 80% reduction in start
times for larger functions
Serverless app benefits
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
• 1,000 concurrent executions (10K
TPS) by default. Auto-approvals for
everyone to triple.
• Up to 80% faster cold start times
Built-in logging and
monitoring, now with:
“grab-n-go” logs in the
Lambda console
Serverless app benefits
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
• 1,000 concurrent executions (10K
TPS) by default. Auto-approvals for
everyone to triple.
• Up to 80% faster cold start times
• Find Lambda logs instantly 1.5GB
Serverless app benefits
3GB
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
Top memory size
of…
• 1,000 concurrent executions (10K
TPS) by default. Auto-approvals for
everyone to triple.
• Up to 80% faster cold start times
• Find Lambda logs instantly
• Top memory size of 3GB
Go
Serverless!
Serverless app benefits
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Next, Joe needs to make some changes.
Step 2: Customize and share
Need an IDE for local dev/test/debug
Customize the app we deployed in step 1
Set up a CI/CD pipeline for the team
Deploy (safely!)
What we need
to do
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Easy-to-use IDE in the cloud
Builtin GitHub support
Builtin Lambda blueprint support
Builtin SAM Local:
Local testing!
IDE debugging!
Deploy directly to Lambda and/or push
updates to GitHub
New
AWS Cloud9
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Automated CI/CD process
Git push your changes from Cloud9
when ready to share…
Set up an AWS CodePipeline to
build automatically on updates
Local Testing
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
I need to deploy Lambda functions
safely and incrementally.
Customer feedback
How can I deploy multiple
functions and APIs in a
coordinated way?
How do I roll back
automatically?
How can I shape traffic
between two versions of
an API?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Safe, incremental serverless deployment
Lambda: Weighted aliases
• Set percentage of traffic between two versions of the same
function
API Gateway: Sub-stages for incremental deployments
• Share traffic between two stages
AWS CodeDeploy: Automated support for safe serverless
deployments
• Amazon CloudWatch metrics-driven rollout/rollback
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Another typical day…
Manager: “That app you built is working great, but now we need to
include data from a relational DB and one of our legacy services in our
VPC. Is your serverless architecture going to handle that?”
Developer “Not a problem.”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Next up: Deal with legacy stuff.
Step 3: Connect to enterprise
systems
Monitor concurrency
Limit concurrency for legacy connectivity
Hook up APIs to VPC-based services
Audit and log all invocations
What we need
to do
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
I need a way to protect the capacity of a
Lambda function from others running in
the same account.
Customer feedback
I want to temporarily disable
a function.
Can you create a “dev mode”
for functions?
Lambda can overwhelm
my legacy systems with
too many calls
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
I need a way to protect the capacity of a
Lambda function from others running in
the same account.
Customer Feedback
I want to temporarily disable
a function.
Can you create a “dev mode”
for functions?
Lambda can overwhelm
my legacy systems with
too many calls
Insight: Concurrency control is a key
element of managing functions in a
serverless app.
Lambda: Concurrency metric
Lambda: Per-function concurrency throttles
Enterprise connectivity
What you can do with it
1. Limit concurrency to legacy systems
2. Protect serverless production services from
other functions in the same account
3. Temporarily disable a function
4. Develop functions with limited billing and
“runaway” protection
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
VPC (PrivateLink) integrations
Access services and data in
your VPC from an API
Regional endpoints
Fast, region-specific API
endpoints
Enterprise connectivity: API Gateway
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
API Gateway connectivity solutions
To
From
Internet
Regional
AWS Service
Customer VPC
Internet
Regional
AWS Service
Existing Service
(Edge-optimized, public integrations)
Private VPC
Region-optimized Endpoints
Region Endpoints
+Private VPC
Recent
New
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Log and audit
Structured logging for APIs
AWS CloudTrail support for
Lambda functions
Serverless for the enterprise: checklist
Uptime
Scale
Performance
Management
Safe deploys
Concurrency controls
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What about GraphQL?
GraphQL
Open, declarative data-fetching specification
!= Graph database
Use NoSQL, Relational, HTTP, etc.
Traditional data-fetching GraphQL
/posts
/postInfo
/postJustTitle
/postsByAuthor
/postNameStartsWithX
/commentsOnPost
How does GraphQL work?
{
"id": "1",
"name": "Get Milk",
“priority": "1"
},
{
"id": “2",
"name": “Go to gym",
“priority": “5"
},…
type Query {
getTodos: [Todo]
}
type Todo {
id: ID!
name: String
description: String
priority: Int
duedate: String
}
query {
getTodos {
id
name
priority
}
}
Model data with
application schema
Client requests what it
needs
Only that data is
returned
GraphQL
Schema
type Event {
id: ID!
name: String
where: String
when: String
description: String
comments: [Comment]
}
type Comment {
commentId: String!
eventId: ID!
content: String!
createdAt: String!
}
GraphQL
Schema
Mutation
type Mutation {
createEvent(
name: String!,
when: String!,
where: String!,
description: String!
): Event
deleteEvent(id: ID!): Event
commentOnEvent(
eventId: ID!,
content: String!,
createdAt: String!
): Comment
}
GraphQL
Schema
Mutation
Query
type Query {
getEvent(id: ID!): Event
listEvents(
limit: Int,
nextToken: String
): EventConnection
}
GraphQL
Schema
Mutation
Query
Subscription
type Subscription {
subscribeToEventComments(eventId: String!): Comment
@aws_subscribe(mutations: ["commentOnEvent"])
}
GraphQL
Schema
Mutation
Query
Subscription
Realtime? YES
Batching? YES
Pagination? YES
Relations? YES
Aggregations? YES
Search? YES
Offline? YES
AWS AppSync
DynamoDB
Table
Lambda
Function Elasticsearch
Service
GraphQL
Schema
Upload
Schema
GraphQL
Query
Mutation
Subscription
Real-time
Offline
AppSync
API
Cognito
User Pool
AWS AppSync
DynamoDB
Table
Lambda
Function Elasticsearch
Service
GraphQL
Schema
Upload
Schema
GraphQL
Query
Mutation
Subscription
Real-time
Offline
AppSync
API
Cognito
User Pool
Legacy
Application
AWS AppSync
DynamoDB
Table
Lambda
Function Elasticsearch
Service
GraphQL
Schema
Upload
Schema
GraphQL
Query
Mutation
Subscription
Real-time
Offline
DynamoDB to Elasticsearch
Sync Function
AppSync
API
Cognito
User Pool
AWS AppSync
DynamoDB
Table
Lambda
Function Elasticsearch
Service
GraphQL
Schema
Autogenerate
Schema
GraphQL
Query
Mutation
Subscription
Real-time
Offline
AppSync
API
Cognito
User Pool
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless Aurora
Aut omat ically
scalescapacity up
and down
Pay per second
and only for t he
dat abase
capacit y youuse
St art supon
demandand
shut sdownwhen
not inuse
Noneedt o
provision
inst ances
On-demand, auto-scaling database for applications with unpredictable
or cyclical workloads
In preview today
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless for everything
Lambda and API Gateway in every commercial AWS Region +
AWS GovCloud
Lambda@Edge new features:
• Content-based Dynamic Origin Selection
• Network Calls from Viewer Events
• Advanced Response Generation
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless for everything
• Faster cold start performance
• Assurance programs: ISO, PCI, HIPAA
• …and now SOC 1, SOC 2, and SOC 3
• Lambda for devices (AWS Greengrass, AWS Snowball Edge)
• Lambda for Windows – CoreCLR 2.0
AWS LAMBDA IS EVERYWHERE
AWS Lambda Amazon S3 Amazon CloudFormation AWS IoT
Amazon API Gateway Amazon DynamoDB Amazon CloudWatch Logs AWS IoT Button
AWS Step Functions Amazon Kinesis Streams Amazon CloudWatch Events AWS Greengrass
AWS X-Ray Amazon Kinesis Firehose AWS CodeCommit AWS Snowball
Edge
Amazon SNS AWS Config AWS
Lambda@Edge
Amazon SES Amazon Lex
Amazon Cognito Amazon CloudFront
AWS IoT
AWS
Lambda
Event-driven services Event sources
Lambda
inside
Enterprises are achieving massive scale with Lambda
• Thomson Reuters processes 4,000 requests per second
• FINRA processes half a trillion validations of stock trades daily
• Hearst reduced the time to ingest and process data for its
analytics pipeline by 97%
• Vevo can handle spikes of 80x normal traffic
• Expedia triggers 1.2 billion Lambda requests each month
Customers innovating with AWS Lambda
An expanding Serverless ecosystem
Build and CI/CD
Logging and MonitoringApplications and Deployment
Chalice Framework Serverless Java Container
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
• Turn any Go program into a
Lambda function by adding 2
lines
• Open source connector
• Now available!
Golang in Lambda
© 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
@jrhunt
Thanks!

More Related Content

PPTX
Serverless Developer Experience I AWS Dev Day 2018
PPTX
Containers State of the Union I AWS Dev Day 2018
PPTX
Building low latency apps with a serverless architecture and in-memory data I...
PPTX
Serverless Architectural Patterns I AWS Dev Day 2018
PPTX
Building Global Multi-Region, Active-Active Serverless Backends I AWS Dev Day...
PPTX
Data Design and Modeling for Microservices I AWS Dev Day 2018
PPTX
Deep Dive on Amazon Elastic Container Service (ECS) I AWS Dev Day 2018
PDF
AWS Container services
Serverless Developer Experience I AWS Dev Day 2018
Containers State of the Union I AWS Dev Day 2018
Building low latency apps with a serverless architecture and in-memory data I...
Serverless Architectural Patterns I AWS Dev Day 2018
Building Global Multi-Region, Active-Active Serverless Backends I AWS Dev Day...
Data Design and Modeling for Microservices I AWS Dev Day 2018
Deep Dive on Amazon Elastic Container Service (ECS) I AWS Dev Day 2018
AWS Container services

Similar to Serverless: State of The Union I AWS Dev Day 2018 (20)

PPTX
awslambda-240508203904-07xsds253491.pptx
PPTX
The Future of Enterprise Applications is Serverless
PDF
Serverless applications with AWS
PDF
Introduction to Serverless Computing - OOP Munich
PDF
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
PDF
How serverless helps startups innovate and scale
PDF
AWSomeDay Zurich 2018 - How to go serverless
PDF
Introduction to Serverless with AWS Lambda
PDF
Building serverless backends - Tech talk 5 May 2017
PDF
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
PDF
Getting Started with AWS Lambda & Serverless Cloud
PDF
Čtvrtkon #64 - AWS Serverless - Michal Haták
PPTX
Primeros pasos en desarrollo serverless
PDF
Serverless use cases with AWS Lambda - More Serverless Event
PDF
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
PDF
Modern Applications Development on AWS
PDF
Wildrydes Serverless Workshop Tel Aviv
PDF
AWS Application Service Workshop - Serverless Architecture
PDF
Serverless Computing
PDF
Building Serverless Microservices with AWS
awslambda-240508203904-07xsds253491.pptx
The Future of Enterprise Applications is Serverless
Serverless applications with AWS
Introduction to Serverless Computing - OOP Munich
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
How serverless helps startups innovate and scale
AWSomeDay Zurich 2018 - How to go serverless
Introduction to Serverless with AWS Lambda
Building serverless backends - Tech talk 5 May 2017
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
Getting Started with AWS Lambda & Serverless Cloud
Čtvrtkon #64 - AWS Serverless - Michal Haták
Primeros pasos en desarrollo serverless
Serverless use cases with AWS Lambda - More Serverless Event
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Development on AWS
Wildrydes Serverless Workshop Tel Aviv
AWS Application Service Workshop - Serverless Architecture
Serverless Computing
Building Serverless Microservices with AWS
Ad

More from AWS Germany (20)

PDF
Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
PDF
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
PDF
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
PDF
Modern Applications Web Day | Container Workloads on AWS
PDF
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
PDF
Building Smart Home skills for Alexa
PDF
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
PDF
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
PDF
Log Analytics with AWS
PDF
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
PDF
AWS Programme für Nonprofits
PDF
Microservices and Data Design
PDF
Serverless vs. Developers – the real crash
PDF
Query your data in S3 with SQL and optimize for cost and performance
PDF
Secret Management with Hashicorp’s Vault
PDF
EKS Workshop
PDF
Scale to Infinity with ECS
PDF
Containers on AWS - State of the Union
PDF
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
PDF
Building Personalized Data Products - From Idea to Product
Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Building Smart Home skills for Alexa
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Log Analytics with AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
AWS Programme für Nonprofits
Microservices and Data Design
Serverless vs. Developers – the real crash
Query your data in S3 with SQL and optimize for cost and performance
Secret Management with Hashicorp’s Vault
EKS Workshop
Scale to Infinity with ECS
Containers on AWS - State of the Union
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
Building Personalized Data Products - From Idea to Product
Ad

Recently uploaded (20)

PDF
NewMind AI Monthly Chronicles - July 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
KodekX | Application Modernization Development
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
PDF
cuic standard and advanced reporting.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Monthly Chronicles - July 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Modernizing your data center with Dell and AMD
KodekX | Application Modernization Development
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Unlocking AI with Model Context Protocol (MCP)
Approach and Philosophy of On baking technology
Encapsulation_ Review paper, used for researhc scholars
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Empathic Computing: Creating Shared Understanding
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
cuic standard and advanced reporting.pdf
NewMind AI Weekly Chronicles - August'25 Week I
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced methodologies resolving dimensionality complications for autism neur...

Serverless: State of The Union I AWS Dev Day 2018

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless: State of the Union Randall Hunt Technical Developer Evangelist randhunt@amazon.com @jrhunt ranman
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. @jrhunt ThankYou to our sponsors!
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. @jrhunt Acknowledgements • Thanks to all the service teams that build this service • Thanks to all my colleagues that build these decks
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A typical day for a developer… Manager “We need an app to let our customers update preference settings – our competitors just launched the same thing, so I need it fast. I don’t want to pay a lot for it, especially when no one is using it. But remember that we’re growing, so make sure it scales great and is easy to manage and operate. And you’re on your own – sorry!” Developer “Not a problem. I’ll make it serverless…”
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless means… No Server Management Flexible Scaling No Idle Costs $ High Availability
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless Benefits • Never pay for idle, request-based pricing • No infrastructure to provision, monitor, or manage • Scaling and fault-tolerance built in • Easy to author, deploy, and secure • Enables best practices (events, stateless functions)
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Joe promised his boss an app. Now what? Step 1: Find a working example! Serverless web app with …an API hosted on Amazon API Gateway …access to existing data stored in Amazon DynamoDB …static content served by Amazon S3 and Amazon CloudFront …dynamic content/business logic encoded as Lambda functions What we need
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 10. • Search and browse ready-made apps and samples • Customize open source apps to get started quickly • Share apps privately or publically •Monetize APIs using theAWS Marketplace • Powered by AWS Serverless Application Model (AWS SAM)! AWS Serverless Application Repository (preview) © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 11. Lambda Function Editor © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved. • Edit multiple files at once! • Create new files for existing packages • Run tests and view results and logs without leaving the editor • Save test inputs and reuse them later
  • 12. Serverless app benefits © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved. Go from concept to working code in under 15 minutes. And your app isn’t just a prototype… • 1,000 concurrent executions by default. • Every account in good standing is automatically approved to 3X the default!
  • 13. • 1,000 concurrent executions (10K TPS) by default. Auto-approvals for everyone to triple. Faster perf with cold-start optimization! Up to 80% reduction in start times for larger functions Serverless app benefits © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 14. • 1,000 concurrent executions (10K TPS) by default. Auto-approvals for everyone to triple. • Up to 80% faster cold start times Built-in logging and monitoring, now with: “grab-n-go” logs in the Lambda console Serverless app benefits © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 15. • 1,000 concurrent executions (10K TPS) by default. Auto-approvals for everyone to triple. • Up to 80% faster cold start times • Find Lambda logs instantly 1.5GB Serverless app benefits 3GB © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved. Top memory size of…
  • 16. • 1,000 concurrent executions (10K TPS) by default. Auto-approvals for everyone to triple. • Up to 80% faster cold start times • Find Lambda logs instantly • Top memory size of 3GB Go Serverless! Serverless app benefits © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Next, Joe needs to make some changes. Step 2: Customize and share Need an IDE for local dev/test/debug Customize the app we deployed in step 1 Set up a CI/CD pipeline for the team Deploy (safely!) What we need to do
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Easy-to-use IDE in the cloud Builtin GitHub support Builtin Lambda blueprint support Builtin SAM Local: Local testing! IDE debugging! Deploy directly to Lambda and/or push updates to GitHub New AWS Cloud9
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Automated CI/CD process Git push your changes from Cloud9 when ready to share… Set up an AWS CodePipeline to build automatically on updates Local Testing
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. I need to deploy Lambda functions safely and incrementally. Customer feedback How can I deploy multiple functions and APIs in a coordinated way? How do I roll back automatically? How can I shape traffic between two versions of an API?
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Safe, incremental serverless deployment Lambda: Weighted aliases • Set percentage of traffic between two versions of the same function API Gateway: Sub-stages for incremental deployments • Share traffic between two stages AWS CodeDeploy: Automated support for safe serverless deployments • Amazon CloudWatch metrics-driven rollout/rollback
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Another typical day… Manager: “That app you built is working great, but now we need to include data from a relational DB and one of our legacy services in our VPC. Is your serverless architecture going to handle that?” Developer “Not a problem.”
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Next up: Deal with legacy stuff. Step 3: Connect to enterprise systems Monitor concurrency Limit concurrency for legacy connectivity Hook up APIs to VPC-based services Audit and log all invocations What we need to do
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. I need a way to protect the capacity of a Lambda function from others running in the same account. Customer feedback I want to temporarily disable a function. Can you create a “dev mode” for functions? Lambda can overwhelm my legacy systems with too many calls
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. I need a way to protect the capacity of a Lambda function from others running in the same account. Customer Feedback I want to temporarily disable a function. Can you create a “dev mode” for functions? Lambda can overwhelm my legacy systems with too many calls Insight: Concurrency control is a key element of managing functions in a serverless app.
  • 33. Lambda: Concurrency metric Lambda: Per-function concurrency throttles Enterprise connectivity What you can do with it 1. Limit concurrency to legacy systems 2. Protect serverless production services from other functions in the same account 3. Temporarily disable a function 4. Develop functions with limited billing and “runaway” protection © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 34. VPC (PrivateLink) integrations Access services and data in your VPC from an API Regional endpoints Fast, region-specific API endpoints Enterprise connectivity: API Gateway © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. API Gateway connectivity solutions To From Internet Regional AWS Service Customer VPC Internet Regional AWS Service Existing Service (Edge-optimized, public integrations) Private VPC Region-optimized Endpoints Region Endpoints +Private VPC Recent New
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Log and audit Structured logging for APIs AWS CloudTrail support for Lambda functions
  • 38. Serverless for the enterprise: checklist Uptime Scale Performance Management Safe deploys Concurrency controls © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What about GraphQL?
  • 40. GraphQL Open, declarative data-fetching specification != Graph database Use NoSQL, Relational, HTTP, etc. Traditional data-fetching GraphQL /posts /postInfo /postJustTitle /postsByAuthor /postNameStartsWithX /commentsOnPost
  • 41. How does GraphQL work? { "id": "1", "name": "Get Milk", “priority": "1" }, { "id": “2", "name": “Go to gym", “priority": “5" },… type Query { getTodos: [Todo] } type Todo { id: ID! name: String description: String priority: Int duedate: String } query { getTodos { id name priority } } Model data with application schema Client requests what it needs Only that data is returned
  • 42. GraphQL Schema type Event { id: ID! name: String where: String when: String description: String comments: [Comment] } type Comment { commentId: String! eventId: ID! content: String! createdAt: String! }
  • 43. GraphQL Schema Mutation type Mutation { createEvent( name: String!, when: String!, where: String!, description: String! ): Event deleteEvent(id: ID!): Event commentOnEvent( eventId: ID!, content: String!, createdAt: String! ): Comment }
  • 44. GraphQL Schema Mutation Query type Query { getEvent(id: ID!): Event listEvents( limit: Int, nextToken: String ): EventConnection }
  • 45. GraphQL Schema Mutation Query Subscription type Subscription { subscribeToEventComments(eventId: String!): Comment @aws_subscribe(mutations: ["commentOnEvent"]) }
  • 46. GraphQL Schema Mutation Query Subscription Realtime? YES Batching? YES Pagination? YES Relations? YES Aggregations? YES Search? YES Offline? YES
  • 51. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless Aurora Aut omat ically scalescapacity up and down Pay per second and only for t he dat abase capacit y youuse St art supon demandand shut sdownwhen not inuse Noneedt o provision inst ances On-demand, auto-scaling database for applications with unpredictable or cyclical workloads In preview today
  • 52. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless for everything Lambda and API Gateway in every commercial AWS Region + AWS GovCloud Lambda@Edge new features: • Content-based Dynamic Origin Selection • Network Calls from Viewer Events • Advanced Response Generation
  • 53. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless for everything • Faster cold start performance • Assurance programs: ISO, PCI, HIPAA • …and now SOC 1, SOC 2, and SOC 3 • Lambda for devices (AWS Greengrass, AWS Snowball Edge) • Lambda for Windows – CoreCLR 2.0
  • 54. AWS LAMBDA IS EVERYWHERE AWS Lambda Amazon S3 Amazon CloudFormation AWS IoT Amazon API Gateway Amazon DynamoDB Amazon CloudWatch Logs AWS IoT Button AWS Step Functions Amazon Kinesis Streams Amazon CloudWatch Events AWS Greengrass AWS X-Ray Amazon Kinesis Firehose AWS CodeCommit AWS Snowball Edge Amazon SNS AWS Config AWS Lambda@Edge Amazon SES Amazon Lex Amazon Cognito Amazon CloudFront AWS IoT AWS Lambda Event-driven services Event sources Lambda inside
  • 55. Enterprises are achieving massive scale with Lambda • Thomson Reuters processes 4,000 requests per second • FINRA processes half a trillion validations of stock trades daily • Hearst reduced the time to ingest and process data for its analytics pipeline by 97% • Vevo can handle spikes of 80x normal traffic • Expedia triggers 1.2 billion Lambda requests each month
  • 57. An expanding Serverless ecosystem Build and CI/CD Logging and MonitoringApplications and Deployment Chalice Framework Serverless Java Container © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 58. • Turn any Go program into a Lambda function by adding 2 lines • Open source connector • Now available! Golang in Lambda © 2017, Amazon Web Services, Inc. or its Affiliates.All rights reserved.
  • 59. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. @jrhunt Thanks!