SlideShare a Scribd company logo
1 of 45
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dr. Tim Wagner
General Manager, AWS Lambda and Amazon API Gateway
Serverless Myth
ServerlessConf San Francisco
July 31, 2018
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Myth #1:
“Serverless is insecure.”
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Maybe you meant…?
• ”I have an agent that I used to secure my server fleet, but I
can’t install it any longer.”
• ”My employees don’t use/understand the security features.”
• “I leave things lying around and need a good pattern for
cleaning them up.”
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Shared responsibility model
Hypervisor and VPC
Physical server and network
Physical access
Application code
Language runtime
OS
Language runtime
OS
Hypervisor and VPC
Physical server and network
Physical access
Application code
Classic Serverless
Customer
Vendor
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Shared responsibility model
Hypervisor and VPC
Physical server and network
Physical access
Application code
Language runtime
OS
Language runtime
OS
Hypervisor and VPC
Physical server and network
Physical access
Application code
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Shared responsibility model
Access controls
Execution privilege controls
Automated auditing
• Code & config changes
• Invocations
• Data lake tools to scan audit
traces
Proactive “fleet-wide” policy
enforcement
Application code
Secure credential handling
Encryption at rest
Custom authorizers for APIs
Managed user pools/login
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Vendors can only help *on the perimeter*!
Monolith
All you. Be sure not to mess up.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless means fine-grained vendor protection
Microservice
The full power of your cloud vendor
around every one of these, for every
single invocation.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New permissions boundary capability
Ability to restrict what a
user can grant indirectly
by creating Lambda
functions.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless security benefits versus Classic Code
• Time-limited, no server affinity – makes serverless harder to
attack
• Frequent server reboots and professional management of
the fleet (e.g., zero effort to deal with Spectre/Meltdown)
• Fine-grained security: microservices have higher vendor
surface area, meaning more frequent and more detailed
checks
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What’s not a myth here?
You have to use the features to benefit from them!
 If you’re not good at cleanup, write a serverless cron job to
email you if a function isn’t getting used.
 If your org doesn’t enforce consistency via pipelines or
CRs, then use AWS Config and/or CloudTrail to get there.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Myth #2:
“Serverless is too expensive;
you’ll need to go back to servers
at scale.”
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A tale of two computes
Normalized to 1 GB
3-year reserved instance
US-East-1 Region:
$114
Amazon EC2 t2.medium
Constant use for 3 years
@ 1 concurrent execution:
$1,577
Uh oh
AWS Lambda 1GB
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Oops, forgot some stuff…
One instance isn’t fault tolerant; you need at least 2, and then
you need a router.
AWS Lambda builds in event processing, but Amazon EC2 will
require an explicit queue (Amazon SQS).
T2’s are burstable; Lambda doesn’t “run out of steam”.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A more complete comparison
Redoing analysis with 2 C4.larges + ALB + SQS: $1,455
Lambda: $1,596
Hmm…~10% surcharge for “going serverless”?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Other forms of savings
TCO – Cost savings from not doing fleet ops
Time to market – Faster delivery and business growth
A 10% markup for not having to deal with provisioning,
deploying, patching, security analysis, monitoring, etc. of
servers sounds like a pretty good deal…
But, it doesn’t sound like a major economic improvement.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Q: Is the workload uniform?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why is it *so darn hard* to keep
servers warm????
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Forms of Waste: Periodic
WASTE
Actual
Load
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Forms of Waste: High peak-to-Average
WASTE
Actual
Load
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Forms of Waste: Peak Buffer (”Black Friday”)
WASTE
Actual
Load
o
o
p
s
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Forms of Waste: Auto-Scaler discretization
WASTE
Actual
Load
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
If we look at utilization, the picture changes
$0
$200
$400
$600
$800
$1,000
$1,200
$1,400
$1,600
$1,800
100% 90% 80% 70% 60% 50% 40% 30% 20% 10%
Effect of Utilization on Cost
T2
C4
Lambda
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We’re all above average here…?
My servers are always hot.
Oh bro, LOL
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
If we look at utilization, the picture changes
$0
$200
$400
$600
$800
$1,000
$1,200
$1,400
$1,600
$1,800
100% 90% 80% 70% 60% 50% 40% 30% 20% 10%
Effect of Utilization on Cost
T2
C4
Lambda
Average
Enterprise
Utilization:
You are here!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Factor in amazing auto-scaling: 20% of perfect
0
200
400
600
800
1,000
1,200
1,400
1,600
1,800
100% 90% 80% 70% 60% 50% 40% 30% 20% 10%
Effect of Utilization on Cost
T2
C4
Lambda
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Factor in amazing auto-scaling
0
200
400
600
800
1,000
1,200
1,400
1,600
1,800
100% 90% 80% 70% 60% 50% 40% 30% 20% 10%
Effect of Utilization on Cost
T2
C4
Lambda
C breakeven ~90% T breakeven ~50%
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The bottom line
Worst case: Similar cost but you save on server-related ops.
Typical case: Between 4:1 and 10:1 cost compression
How to (roughly) estimate savings:
• Subtract safety margin from your server-based costs and
then divide by your peak-to-average ratio
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
That’s too much work; can’t you just give me the
answer?
Predicted Compute Savings by Category
(versus server-based designs):
Web, mobile, or IoT app: 5-10x
Streaming app: 2-5x
Batch computation: 0-4x
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Is it ever not a rosy picture?
Sub-100ms: YMMV
For very fast jobs (single- and low double-digit ms), minimum billing
charges can lower cost efficiency, while utilization-related packing
improves cost efficiency. You’ll need to model these workloads more
precisely to know which effect dominates for your specific case.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Does it matter?
Worldwide Public Cloud Services Spending Forecast to Reach
$160 Billion This Year, According to IDC
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Myth #3:
“Serverless is just an unzip library
in a container.”
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What *is* an application?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is an application?
2014 answer:
”A bunch of code I have to build & test together into a
monolithic blob, which I then toss over the wall to an ops
team, who get it to run on a fleet of servers. Then, I hope
some work comes its way so I don’t waste too much $...”
2018 answer: Managed services in the public cloud,
connected and customized with highly differentiated business
logic, that run (and bill) only when actually needed.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Managed services as building blocks
Amazon SNS
Amazon SQS
Amazon S3
Messaging
Monitoring and Debugging
Storage
AWS X-Ray
AWS Lambda
Amazon API Gateway
Orchestration
API Proxy
Compute
AWS Step Functions
Amazon DynamoDB
Amazon Kinesis
Analytics
Database
Edge Compute
AWS Greengrass
Lambda@Edge
Amazon Athena
Amazon Aurora
Serverless
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon API Gateway
API Proxy
AWS Lambda
Compute
Amazon S3
Storage
Example: Serverless web app
Amazon DynamoDB
Database
Amazon Aurora
Serverless
Static Content Dynamic Content
API Serving
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda
Compute
Example: Serverless analytics
Amazon Kinesis
Analytics
Amazon Athena
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Patterns for the Cloud Era
• Media transform on upload: Amazon S3 event +
AWS Lambda
• NoSQL data cleansing: Amazon DynamoDB
change streams + Lambda
• Serverless website: Amazon S3 + Amazon
DynamoDB + Amazon API Gateway + Lambda
• Click-stream analytics: Amazon Kinesis Data
Firehose + Lambda
• Ordered event processing: Kinesis + Lambda
• Multi-function fanout: Amazon SNS (or Lambda)
+ Lambda
• Workflows: AWS Step Functions + Lambda
• Event distribution: Amazon CloudWatch Events +
Lambda
• Serverless cron jobs: CloudWatch timer events +
Lambda
• GraphQL actions: AWS AppSync + Lambda
• On-the-fly image resizing: AWS Lambda@Edge
+ Amazon CloudFront
• Email rules: Amazon SES + Lambda
• Configuration policy enforcement: AWS Config +
Lambda
• Stored procedures: Amazon Aurora + Lambda
• Custom authorizers for APIs: API Gateway auth +
Lambda
• DevOps choreography: CloudWatch alarms +
Lambda
• Alexa skills: Amazon Alexa + Lambda
• Chatbots: Slack + Amazon Lex + Lambda
• IoT automation: AWS IoT + Lambda
• Smart devices: AWS Greengrass + Lambda
• On-premises file encrypt for transit: AWS
Snowball Edge + Lambda
• …
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Meta-patterns
1. Service pushes async event to Lambda (S3, SNS)
2. Lambda grabs event from service (DynamoDB, Kinesis)
3. Synchronous exchange (Alexa, Lex)
4. Batch transform (Kinesis Data Firehose)
5. Microservice (API + Lambda + your choice of DB)
6. Customization via functions (AWS Config, SES rules)
7. Data-driven fanout (S3-Lambda, Lambda-Lambda)
8. Choreography (Step Functions + Lambda)
9. Lambda functions in devices (Greengrass, Snowball Edge)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Some final thoughts on this myth…
The real value of “serverless” is in the operating model, even
more than the (functional) programming model:
Pay-by-request, real-time, multi-dimensional bin packing with a 1 ms
decision entitlement onto a massive fleet of silicon offering economies
of scale to its consumers
Managed services are the “Design Patterns” of today.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Any predictions?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
P.S.: Any predictions?
It’s getting hard to stay ahead of reality; here are some of my
earlier predictions:
• Lower ops costs (check)
• New software patterns emerge (check)
• Big data goes serverless (check)
• Rise of events/reactive systems (check)
• “Born serverless” startups emerge (check)
• HTTP FTW (ok this is still in progress but I stand by it…)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Three predictions today:
1. Serverless is the new supercomputer (aka, “every paper
Eric Jonas writes about serverless will come true”).
2. Blockchain (ledger) owners embrace async, event-based
architectures…another “peanut butter and chocolate” combo.
3. You’ll see vendor limitations continue to go away, helping
everybody, in nearly every workload, eventually…
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Go Serverless!

More Related Content

What's hot

Performant Streaming in Production: Preventing Common Pitfalls when Productio...
Performant Streaming in Production: Preventing Common Pitfalls when Productio...Performant Streaming in Production: Preventing Common Pitfalls when Productio...
Performant Streaming in Production: Preventing Common Pitfalls when Productio...Databricks
 
MySQL Performance Schema in 20 Minutes
 MySQL Performance Schema in 20 Minutes MySQL Performance Schema in 20 Minutes
MySQL Performance Schema in 20 MinutesSveta Smirnova
 
Performance Optimizations in Apache Impala
Performance Optimizations in Apache ImpalaPerformance Optimizations in Apache Impala
Performance Optimizations in Apache ImpalaCloudera, Inc.
 
Dynamo db tópico avançado - modelagem de dados e boas práticas para escalar
Dynamo db   tópico avançado - modelagem de dados e boas práticas para escalarDynamo db   tópico avançado - modelagem de dados e boas práticas para escalar
Dynamo db tópico avançado - modelagem de dados e boas práticas para escalarAmazon Web Services LATAM
 
Spark SQL Deep Dive @ Melbourne Spark Meetup
Spark SQL Deep Dive @ Melbourne Spark MeetupSpark SQL Deep Dive @ Melbourne Spark Meetup
Spark SQL Deep Dive @ Melbourne Spark MeetupDatabricks
 
RocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesRocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesYoshinori Matsunobu
 
Redis overview for Software Architecture Forum
Redis overview for Software Architecture ForumRedis overview for Software Architecture Forum
Redis overview for Software Architecture ForumChristopher Spring
 
Deep Dive on ClickHouse Sharding and Replication-2202-09-22.pdf
Deep Dive on ClickHouse Sharding and Replication-2202-09-22.pdfDeep Dive on ClickHouse Sharding and Replication-2202-09-22.pdf
Deep Dive on ClickHouse Sharding and Replication-2202-09-22.pdfAltinity Ltd
 
[TDC2016] Apache Cassandra Estratégias de Modelagem de Dados
[TDC2016]  Apache Cassandra Estratégias de Modelagem de Dados[TDC2016]  Apache Cassandra Estratégias de Modelagem de Dados
[TDC2016] Apache Cassandra Estratégias de Modelagem de DadosEiti Kimura
 
Os detection with arp
Os detection with arpOs detection with arp
Os detection with arpDavid Clark
 
Apache Sparkにおけるメモリ - アプリケーションを落とさないメモリ設計手法 -
Apache Sparkにおけるメモリ - アプリケーションを落とさないメモリ設計手法 -Apache Sparkにおけるメモリ - アプリケーションを落とさないメモリ設計手法 -
Apache Sparkにおけるメモリ - アプリケーションを落とさないメモリ設計手法 -Yoshiyasu SAEKI
 
Lightweight Transactions in Scylla versus Apache Cassandra
Lightweight Transactions in Scylla versus Apache CassandraLightweight Transactions in Scylla versus Apache Cassandra
Lightweight Transactions in Scylla versus Apache CassandraScyllaDB
 
A Deep Dive into Spark SQL's Catalyst Optimizer with Yin Huai
A Deep Dive into Spark SQL's Catalyst Optimizer with Yin HuaiA Deep Dive into Spark SQL's Catalyst Optimizer with Yin Huai
A Deep Dive into Spark SQL's Catalyst Optimizer with Yin HuaiDatabricks
 
The Apache Spark File Format Ecosystem
The Apache Spark File Format EcosystemThe Apache Spark File Format Ecosystem
The Apache Spark File Format EcosystemDatabricks
 
Introducing DataFrames in Spark for Large Scale Data Science
Introducing DataFrames in Spark for Large Scale Data ScienceIntroducing DataFrames in Spark for Large Scale Data Science
Introducing DataFrames in Spark for Large Scale Data ScienceDatabricks
 
Introduction to Cassandra Architecture
Introduction to Cassandra ArchitectureIntroduction to Cassandra Architecture
Introduction to Cassandra Architecturenickmbailey
 
Bucket your partitions wisely - Cassandra summit 2016
Bucket your partitions wisely - Cassandra summit 2016Bucket your partitions wisely - Cassandra summit 2016
Bucket your partitions wisely - Cassandra summit 2016Markus Höfer
 
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...Databricks
 
A Deep Dive into Query Execution Engine of Spark SQL
A Deep Dive into Query Execution Engine of Spark SQLA Deep Dive into Query Execution Engine of Spark SQL
A Deep Dive into Query Execution Engine of Spark SQLDatabricks
 

What's hot (20)

Performant Streaming in Production: Preventing Common Pitfalls when Productio...
Performant Streaming in Production: Preventing Common Pitfalls when Productio...Performant Streaming in Production: Preventing Common Pitfalls when Productio...
Performant Streaming in Production: Preventing Common Pitfalls when Productio...
 
MySQL Performance Schema in 20 Minutes
 MySQL Performance Schema in 20 Minutes MySQL Performance Schema in 20 Minutes
MySQL Performance Schema in 20 Minutes
 
TiDB Introduction
TiDB IntroductionTiDB Introduction
TiDB Introduction
 
Performance Optimizations in Apache Impala
Performance Optimizations in Apache ImpalaPerformance Optimizations in Apache Impala
Performance Optimizations in Apache Impala
 
Dynamo db tópico avançado - modelagem de dados e boas práticas para escalar
Dynamo db   tópico avançado - modelagem de dados e boas práticas para escalarDynamo db   tópico avançado - modelagem de dados e boas práticas para escalar
Dynamo db tópico avançado - modelagem de dados e boas práticas para escalar
 
Spark SQL Deep Dive @ Melbourne Spark Meetup
Spark SQL Deep Dive @ Melbourne Spark MeetupSpark SQL Deep Dive @ Melbourne Spark Meetup
Spark SQL Deep Dive @ Melbourne Spark Meetup
 
RocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesRocksDB Performance and Reliability Practices
RocksDB Performance and Reliability Practices
 
Redis overview for Software Architecture Forum
Redis overview for Software Architecture ForumRedis overview for Software Architecture Forum
Redis overview for Software Architecture Forum
 
Deep Dive on ClickHouse Sharding and Replication-2202-09-22.pdf
Deep Dive on ClickHouse Sharding and Replication-2202-09-22.pdfDeep Dive on ClickHouse Sharding and Replication-2202-09-22.pdf
Deep Dive on ClickHouse Sharding and Replication-2202-09-22.pdf
 
[TDC2016] Apache Cassandra Estratégias de Modelagem de Dados
[TDC2016]  Apache Cassandra Estratégias de Modelagem de Dados[TDC2016]  Apache Cassandra Estratégias de Modelagem de Dados
[TDC2016] Apache Cassandra Estratégias de Modelagem de Dados
 
Os detection with arp
Os detection with arpOs detection with arp
Os detection with arp
 
Apache Sparkにおけるメモリ - アプリケーションを落とさないメモリ設計手法 -
Apache Sparkにおけるメモリ - アプリケーションを落とさないメモリ設計手法 -Apache Sparkにおけるメモリ - アプリケーションを落とさないメモリ設計手法 -
Apache Sparkにおけるメモリ - アプリケーションを落とさないメモリ設計手法 -
 
Lightweight Transactions in Scylla versus Apache Cassandra
Lightweight Transactions in Scylla versus Apache CassandraLightweight Transactions in Scylla versus Apache Cassandra
Lightweight Transactions in Scylla versus Apache Cassandra
 
A Deep Dive into Spark SQL's Catalyst Optimizer with Yin Huai
A Deep Dive into Spark SQL's Catalyst Optimizer with Yin HuaiA Deep Dive into Spark SQL's Catalyst Optimizer with Yin Huai
A Deep Dive into Spark SQL's Catalyst Optimizer with Yin Huai
 
The Apache Spark File Format Ecosystem
The Apache Spark File Format EcosystemThe Apache Spark File Format Ecosystem
The Apache Spark File Format Ecosystem
 
Introducing DataFrames in Spark for Large Scale Data Science
Introducing DataFrames in Spark for Large Scale Data ScienceIntroducing DataFrames in Spark for Large Scale Data Science
Introducing DataFrames in Spark for Large Scale Data Science
 
Introduction to Cassandra Architecture
Introduction to Cassandra ArchitectureIntroduction to Cassandra Architecture
Introduction to Cassandra Architecture
 
Bucket your partitions wisely - Cassandra summit 2016
Bucket your partitions wisely - Cassandra summit 2016Bucket your partitions wisely - Cassandra summit 2016
Bucket your partitions wisely - Cassandra summit 2016
 
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
 
A Deep Dive into Query Execution Engine of Spark SQL
A Deep Dive into Query Execution Engine of Spark SQLA Deep Dive into Query Execution Engine of Spark SQL
A Deep Dive into Query Execution Engine of Spark SQL
 

Similar to ServerlessConf 2018 Keynote - Debunking Serverless Myths

ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...
ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...
ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...Tim Wagner
 
Resiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudResiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudAmazon Web Services
 
How can your business benefit from going Serverless
How can your business benefit from going ServerlessHow can your business benefit from going Serverless
How can your business benefit from going ServerlessAmazon Web Services
 
How can your business benefit from going serverless?
How can your business benefit from going serverless?How can your business benefit from going serverless?
How can your business benefit from going serverless?Adrian Hornsby
 
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Amazon Web Services
 
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...Amazon Web Services
 
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...Amazon Web Services
 
Best Practices for Safe Deployments on AWS Lambda and Amazon API Gateway (SRV...
Best Practices for Safe Deployments on AWS Lambda and Amazon API Gateway (SRV...Best Practices for Safe Deployments on AWS Lambda and Amazon API Gateway (SRV...
Best Practices for Safe Deployments on AWS Lambda and Amazon API Gateway (SRV...Amazon Web Services
 
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...Amazon Web Services
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteThe Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteArun Gupta
 
Introduction to Serverless computing and AWS Lambda - Floor28
Introduction to Serverless computing and AWS Lambda - Floor28Introduction to Serverless computing and AWS Lambda - Floor28
Introduction to Serverless computing and AWS Lambda - Floor28Boaz Ziniman
 
Introduction to Serverless computing and AWS Lambda | AWS Floor28
Introduction to Serverless computing and AWS Lambda | AWS Floor28Introduction to Serverless computing and AWS Lambda | AWS Floor28
Introduction to Serverless computing and AWS Lambda | AWS Floor28Amazon Web Services
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Amazon Web Services
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Amazon Web Services
 
Nuvem Híbrida - EBC on the road Brazil Edition [Portuguese]
Nuvem Híbrida - EBC on the road Brazil Edition [Portuguese]Nuvem Híbrida - EBC on the road Brazil Edition [Portuguese]
Nuvem Híbrida - EBC on the road Brazil Edition [Portuguese]Amazon Web Services
 
Serverless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesServerless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesVladimir Simek
 
Hybrid Cloud Customer Use Cases on AWS
Hybrid Cloud Customer Use Cases on AWSHybrid Cloud Customer Use Cases on AWS
Hybrid Cloud Customer Use Cases on AWSTom Laszewski
 

Similar to ServerlessConf 2018 Keynote - Debunking Serverless Myths (20)

ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...
ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...
ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...
 
Resiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudResiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the Cloud
 
How can your business benefit from going Serverless
How can your business benefit from going ServerlessHow can your business benefit from going Serverless
How can your business benefit from going Serverless
 
How can your business benefit from going serverless?
How can your business benefit from going serverless?How can your business benefit from going serverless?
How can your business benefit from going serverless?
 
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
 
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
 
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
 
Best Practices for Safe Deployments on AWS Lambda and Amazon API Gateway (SRV...
Best Practices for Safe Deployments on AWS Lambda and Amazon API Gateway (SRV...Best Practices for Safe Deployments on AWS Lambda and Amazon API Gateway (SRV...
Best Practices for Safe Deployments on AWS Lambda and Amazon API Gateway (SRV...
 
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteThe Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 Keynote
 
Serverless for Developers
Serverless for DevelopersServerless for Developers
Serverless for Developers
 
Introduction to Serverless computing and AWS Lambda - Floor28
Introduction to Serverless computing and AWS Lambda - Floor28Introduction to Serverless computing and AWS Lambda - Floor28
Introduction to Serverless computing and AWS Lambda - Floor28
 
Introduction to Serverless computing and AWS Lambda | AWS Floor28
Introduction to Serverless computing and AWS Lambda | AWS Floor28Introduction to Serverless computing and AWS Lambda | AWS Floor28
Introduction to Serverless computing and AWS Lambda | AWS Floor28
 
Microservices for Startups
Microservices for StartupsMicroservices for Startups
Microservices for Startups
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
 
Nuvem Híbrida - EBC on the road Brazil Edition [Portuguese]
Nuvem Híbrida - EBC on the road Brazil Edition [Portuguese]Nuvem Híbrida - EBC on the road Brazil Edition [Portuguese]
Nuvem Híbrida - EBC on the road Brazil Edition [Portuguese]
 
Serverless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesServerless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best Practices
 
Hybrid Cloud Customer Use Cases on AWS
Hybrid Cloud Customer Use Cases on AWSHybrid Cloud Customer Use Cases on AWS
Hybrid Cloud Customer Use Cases on AWS
 
Breaking Down the 'Monowhat'
Breaking Down the 'Monowhat'Breaking Down the 'Monowhat'
Breaking Down the 'Monowhat'
 

Recently uploaded

call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile EnvironmentVictorSzoltysek
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 

Recently uploaded (20)

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 

ServerlessConf 2018 Keynote - Debunking Serverless Myths

  • 1. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dr. Tim Wagner General Manager, AWS Lambda and Amazon API Gateway Serverless Myth ServerlessConf San Francisco July 31, 2018
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Myth #1: “Serverless is insecure.”
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Maybe you meant…? • ”I have an agent that I used to secure my server fleet, but I can’t install it any longer.” • ”My employees don’t use/understand the security features.” • “I leave things lying around and need a good pattern for cleaning them up.”
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Shared responsibility model Hypervisor and VPC Physical server and network Physical access Application code Language runtime OS Language runtime OS Hypervisor and VPC Physical server and network Physical access Application code Classic Serverless Customer Vendor
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Shared responsibility model Hypervisor and VPC Physical server and network Physical access Application code Language runtime OS Language runtime OS Hypervisor and VPC Physical server and network Physical access Application code
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Shared responsibility model Access controls Execution privilege controls Automated auditing • Code & config changes • Invocations • Data lake tools to scan audit traces Proactive “fleet-wide” policy enforcement Application code Secure credential handling Encryption at rest Custom authorizers for APIs Managed user pools/login
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Vendors can only help *on the perimeter*! Monolith All you. Be sure not to mess up.
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless means fine-grained vendor protection Microservice The full power of your cloud vendor around every one of these, for every single invocation.
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. New permissions boundary capability Ability to restrict what a user can grant indirectly by creating Lambda functions.
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless security benefits versus Classic Code • Time-limited, no server affinity – makes serverless harder to attack • Frequent server reboots and professional management of the fleet (e.g., zero effort to deal with Spectre/Meltdown) • Fine-grained security: microservices have higher vendor surface area, meaning more frequent and more detailed checks
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What’s not a myth here? You have to use the features to benefit from them!  If you’re not good at cleanup, write a serverless cron job to email you if a function isn’t getting used.  If your org doesn’t enforce consistency via pipelines or CRs, then use AWS Config and/or CloudTrail to get there.
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Myth #2: “Serverless is too expensive; you’ll need to go back to servers at scale.”
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A tale of two computes Normalized to 1 GB 3-year reserved instance US-East-1 Region: $114 Amazon EC2 t2.medium Constant use for 3 years @ 1 concurrent execution: $1,577 Uh oh AWS Lambda 1GB
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oops, forgot some stuff… One instance isn’t fault tolerant; you need at least 2, and then you need a router. AWS Lambda builds in event processing, but Amazon EC2 will require an explicit queue (Amazon SQS). T2’s are burstable; Lambda doesn’t “run out of steam”.
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A more complete comparison Redoing analysis with 2 C4.larges + ALB + SQS: $1,455 Lambda: $1,596 Hmm…~10% surcharge for “going serverless”?
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Other forms of savings TCO – Cost savings from not doing fleet ops Time to market – Faster delivery and business growth A 10% markup for not having to deal with provisioning, deploying, patching, security analysis, monitoring, etc. of servers sounds like a pretty good deal… But, it doesn’t sound like a major economic improvement.
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Q: Is the workload uniform?
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why is it *so darn hard* to keep servers warm????
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Forms of Waste: Periodic WASTE Actual Load
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Forms of Waste: High peak-to-Average WASTE Actual Load
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Forms of Waste: Peak Buffer (”Black Friday”) WASTE Actual Load o o p s
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Forms of Waste: Auto-Scaler discretization WASTE Actual Load
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. If we look at utilization, the picture changes $0 $200 $400 $600 $800 $1,000 $1,200 $1,400 $1,600 $1,800 100% 90% 80% 70% 60% 50% 40% 30% 20% 10% Effect of Utilization on Cost T2 C4 Lambda
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We’re all above average here…? My servers are always hot. Oh bro, LOL
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. If we look at utilization, the picture changes $0 $200 $400 $600 $800 $1,000 $1,200 $1,400 $1,600 $1,800 100% 90% 80% 70% 60% 50% 40% 30% 20% 10% Effect of Utilization on Cost T2 C4 Lambda Average Enterprise Utilization: You are here!
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Factor in amazing auto-scaling: 20% of perfect 0 200 400 600 800 1,000 1,200 1,400 1,600 1,800 100% 90% 80% 70% 60% 50% 40% 30% 20% 10% Effect of Utilization on Cost T2 C4 Lambda
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Factor in amazing auto-scaling 0 200 400 600 800 1,000 1,200 1,400 1,600 1,800 100% 90% 80% 70% 60% 50% 40% 30% 20% 10% Effect of Utilization on Cost T2 C4 Lambda C breakeven ~90% T breakeven ~50%
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. The bottom line Worst case: Similar cost but you save on server-related ops. Typical case: Between 4:1 and 10:1 cost compression How to (roughly) estimate savings: • Subtract safety margin from your server-based costs and then divide by your peak-to-average ratio
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. That’s too much work; can’t you just give me the answer? Predicted Compute Savings by Category (versus server-based designs): Web, mobile, or IoT app: 5-10x Streaming app: 2-5x Batch computation: 0-4x
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Is it ever not a rosy picture? Sub-100ms: YMMV For very fast jobs (single- and low double-digit ms), minimum billing charges can lower cost efficiency, while utilization-related packing improves cost efficiency. You’ll need to model these workloads more precisely to know which effect dominates for your specific case.
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Does it matter? Worldwide Public Cloud Services Spending Forecast to Reach $160 Billion This Year, According to IDC
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Myth #3: “Serverless is just an unzip library in a container.”
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What *is* an application?
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is an application? 2014 answer: ”A bunch of code I have to build & test together into a monolithic blob, which I then toss over the wall to an ops team, who get it to run on a fleet of servers. Then, I hope some work comes its way so I don’t waste too much $...” 2018 answer: Managed services in the public cloud, connected and customized with highly differentiated business logic, that run (and bill) only when actually needed.
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Managed services as building blocks Amazon SNS Amazon SQS Amazon S3 Messaging Monitoring and Debugging Storage AWS X-Ray AWS Lambda Amazon API Gateway Orchestration API Proxy Compute AWS Step Functions Amazon DynamoDB Amazon Kinesis Analytics Database Edge Compute AWS Greengrass Lambda@Edge Amazon Athena Amazon Aurora Serverless
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon API Gateway API Proxy AWS Lambda Compute Amazon S3 Storage Example: Serverless web app Amazon DynamoDB Database Amazon Aurora Serverless Static Content Dynamic Content API Serving
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Compute Example: Serverless analytics Amazon Kinesis Analytics Amazon Athena
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Patterns for the Cloud Era • Media transform on upload: Amazon S3 event + AWS Lambda • NoSQL data cleansing: Amazon DynamoDB change streams + Lambda • Serverless website: Amazon S3 + Amazon DynamoDB + Amazon API Gateway + Lambda • Click-stream analytics: Amazon Kinesis Data Firehose + Lambda • Ordered event processing: Kinesis + Lambda • Multi-function fanout: Amazon SNS (or Lambda) + Lambda • Workflows: AWS Step Functions + Lambda • Event distribution: Amazon CloudWatch Events + Lambda • Serverless cron jobs: CloudWatch timer events + Lambda • GraphQL actions: AWS AppSync + Lambda • On-the-fly image resizing: AWS Lambda@Edge + Amazon CloudFront • Email rules: Amazon SES + Lambda • Configuration policy enforcement: AWS Config + Lambda • Stored procedures: Amazon Aurora + Lambda • Custom authorizers for APIs: API Gateway auth + Lambda • DevOps choreography: CloudWatch alarms + Lambda • Alexa skills: Amazon Alexa + Lambda • Chatbots: Slack + Amazon Lex + Lambda • IoT automation: AWS IoT + Lambda • Smart devices: AWS Greengrass + Lambda • On-premises file encrypt for transit: AWS Snowball Edge + Lambda • …
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Meta-patterns 1. Service pushes async event to Lambda (S3, SNS) 2. Lambda grabs event from service (DynamoDB, Kinesis) 3. Synchronous exchange (Alexa, Lex) 4. Batch transform (Kinesis Data Firehose) 5. Microservice (API + Lambda + your choice of DB) 6. Customization via functions (AWS Config, SES rules) 7. Data-driven fanout (S3-Lambda, Lambda-Lambda) 8. Choreography (Step Functions + Lambda) 9. Lambda functions in devices (Greengrass, Snowball Edge)
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Some final thoughts on this myth… The real value of “serverless” is in the operating model, even more than the (functional) programming model: Pay-by-request, real-time, multi-dimensional bin packing with a 1 ms decision entitlement onto a massive fleet of silicon offering economies of scale to its consumers Managed services are the “Design Patterns” of today.
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Any predictions?
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. P.S.: Any predictions? It’s getting hard to stay ahead of reality; here are some of my earlier predictions: • Lower ops costs (check) • New software patterns emerge (check) • Big data goes serverless (check) • Rise of events/reactive systems (check) • “Born serverless” startups emerge (check) • HTTP FTW (ok this is still in progress but I stand by it…)
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Three predictions today: 1. Serverless is the new supercomputer (aka, “every paper Eric Jonas writes about serverless will come true”). 2. Blockchain (ledger) owners embrace async, event-based architectures…another “peanut butter and chocolate” combo. 3. You’ll see vendor limitations continue to go away, helping everybody, in nearly every workload, eventually…
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Go Serverless!

Editor's Notes

  1. t2.medium 4GB Standard RI, 3-year All upfront: $458 / 4 Prices current as of 5/28/2018 Lambda (ignoring request charges): $0.00001667 for every GB-s of compute X 60 seconds/minute X 60 minutes/hour X 24 hour/day X 365 days/year X 3 years ==
  2. $0.0225 per Application Load Balancer-hour (or partial hour)$0.008 per LCU-hour (or partial hour) X 24 X 365 X 3
  3. t2.medium 4GB Standard RI, 3-year All upfront: $458 / 4 Prices current as of 5/28/2018 Lambda (ignoring request charges): $0.00001667 for every GB-s of compute X 60 seconds/minute X 60 minutes/hour X 24 hour/day X 365 days/year X 3 years ==
  4. 0.00000040 to put, retrieve, and delete (3X) at 1 TPS X 60 X 60 X 24 X 365 X 3
  5. t2.medium 4GB Standard RI, 3-year All upfront: $458 / 4 Prices current as of 5/28/2018 Lambda (ignoring request charges): $0.00001667 for every GB-s of compute X 60 seconds/minute X 60 minutes/hour X 24 hour/day X 365 days/year X 3 years ==
  6. 3.75 GB $1013 for 3 year up front RI in US-East-1, / 3.75 = 270.13 + ALB + SQS =
  7. 3.75 GB $1013 for 3 year up front RI in US-East-1, / 3.75 = 270.13 + ALB + SQS =
  8. THIS IMAGE IS CC0: You can use this free image under the Creative Commons Zero (CC0) public domain license. https://www.dreamstime.com/green-sky-globe-grass-public-domain-image-free-114791480
  9. AWS has a full portfolio of managed services. They span many areas – from compute, like Lambda, to storage, like S3, to databases like DynamoDB, to IoT, messaging, and many more. All these services have one thing in common: When you use them, you don’t have to worry about the infrastructure inside them. You just call their APIs. They also have another thing in common: They are the pieces from which you construct modern-day (serverless) applications: Combining these different services lets you create powerful solutions.
  10. Here’s another example: If you combine Lambda, S3, API Gateway, and DynamoDB, you get a serverless web site! Your static content goes into S3, Lambda and Dynamo handle the dynamic content, and API Gateway provides the HTTP endpoint. And then once you start getting more customers, it scales automatically for you! The most important lesson here is: Don’t build things you don’t have to – just combine services that already exist to save time and avoid operations pain, and let AWS do the hard work while you take the credit!
  11. For example: If you combine Lambda with Kinesis, you get a serverless analytics processing solution. Using these services, you can quickly build a system for aggregating click-stream analytics or analyzing security logs. It’s so fast to build, because much of the work is already done: The job of storing, streaming, and processing records is built in, so all you need to add is your code to tell Lambda what kind of analysis to perform on each record as it flows through.
  12. There are many possible patterns – too many to describe each one, and more are being created all the time! In fact, every managed AWS service can be combined with Lambda to make a pattern, as can many 3rd party services. With so many services and options, how can we better understand these patterns?
  13. Fortunately, you don’t have to memorize every possible pattern…all these patterns fall into a small number of categories, or “meta patterns”. For example, services that send events to Lambda, such as S3 and SNS (#1 on the list): All of these are similar, in that when something changes, like an object being created in S3 or a message arriving in SNS, your Lambda function is triggered. This is the single most common meta-pattern, asynchronous events. Another meta pattern is conversations (#3). This is the way that bots work: Each phrase in the conversation is transmitted synchronously to the Lambda function, with the state of the conversation so far passed in as an argument. And these patterns even extend beyond the cloud: #9 is Lambda functions used inside devices, such as the DeepLense camera and other IoT devices, or Snowball Edge, where Lambda is used to customize files being uploaded or downloaded from an appliance. If you understand these categories, then you can predict and understand virtually all of the patterns on the previous slide! You’ll be well prepared to create your own serverless solutions.