SlideShare a Scribd company logo
Debunking
Serverless Myths
Yan Cui @theburningmonk
Yan Cui
http://theburningmonk.com
@theburningmonk
Principal Engineer @
Independent Consultant
Debunking serverless myths
Debunking serverless myths
available in Austria, Switzerland, Germany,
Japan, Canada, Italy and US
on 30+ platforms
~1,000,000 concurrent viewers
follow @dazneng for
updates about the
engineering team
We’re hiring! Visit
engineering.dazn.com
to learn more.
WE’RE HIRING!
AWS user since 2009
AWS user since 2009
https://productionreadyserverless.com
What do you mean
by ‘serverless’?
“Serverless”
Debunking serverless myths
Gojko Adzic
It is serverless the same way
WiFi is wireless.
http://bit.ly/2yQgwwb
Serverless means…
don’t pay for it if no-one uses it
don’t need to worry about scaling
don’t need to provision and manage servers
“Function-as-a-Service”
AWS Lambda
Azure Functions
Google Cloud Functions
Auth0 Webtask
Spotinst Functions Kubeless
IBM Cloud Functions
AWS Lambda
AWS Lambda
API Gateway IOT SNS Kinesis CloudWatch
IaaS
Function
Application
Runtime
Container
OS
Virtualization
Hardware
CaaS
Function
Application
Runtime
Container
OS
Virtualization
Hardware
PaaS
Function
Application
Runtime
Container
OS
Virtualization
Hardware
FaaS
Function
Application
Runtime
Container
OS
Virtualization
Hardware
User User (scalable unit) Provider
IaaS
Function
Application
Runtime
Container
OS
Virtualization
Hardware
CaaS
Function
Application
Runtime
Container
OS
Virtualization
Hardware
PaaS
Function
Application
Runtime
Container
OS
Virtualization
Hardware
FaaS
Function
Application
Runtime
Container
OS
Virtualization
Hardware
User User (scalable unit) Provider
Serverless
FaaS
other services…
Database
Storage
BI
Simon Wardley
Serverless will fundamentally change
how we build business around
technology and how you code.
Why serverless?
more Scalable
(and scales faster!)
Cheaper
(don’t pay for idle servers)
Resilience
(built-in redundancy and multi-AZ)
Secure
idea production
choose language
+ framework
master language
+ framework
figure out
deployment
configure AMI
configure ELB
configure
autoscaling
capacity planning
over-provision for
launch
are we doing
microservices?
configure CI/CD
idea production
choose language
+ framework
master language
+ framework
figure out
deployment
configure AMI
configure ELB
configure
autoscaling
capacity planning
over-provision for
launch
are we doing
microservices?
configure CI/CD
idea production
greater Velocity from idea to product
minimise undifferentiated
heavy-lifting
less ops responsibility on
your shoulders
Debunking serverless myths
What about containers?
Debunking serverless myths
important, but
invisible subsystem
https://read.acloud.guru/acg-faas-and-furious-b9574b6675c5
serverless is NOT the goal!
build products customers love to use
test ideas against the
market quickly
iterate on
s
deliver frequently,
deliver quickly
own less technology,
focus on creating Business Values
own less technology,
focus on creating Business Values
(serverless is just a good fit for this mindset)
serverless technologies are still maturing
DEBUNKING SERVERLESS MYTHS
DEBUNKING SERVERLESS MYTHS
COLD STARTS
COLD STARTS
overplays or underplays
the role of cold starts on
serverless performance
MYTH #1
DEBUNKING SERVERLESS MYTHS
COLD STARTS
COLD STARTS
overplays or underplays
the role of cold starts on
serverless performance
MYTH #1
COSTSCOSTS
misunderstands thereal cost savings fromadopting serverless
MYTH #2
DEBUNKING SERVERLESS MYTHS
COLD STARTS
COLD STARTS
overplays or underplays
the role of cold starts on
serverless performance
MYTH #1
COSTSCOSTS
misunderstands thereal cost savings fromadopting serverless
MYTH #2
CONTROL
not realise that control of
infra requires expensive
skillsets to manage
MYTH #3
CONTROL
DEBUNKING SERVERLESS MYTHS
COLD STARTS
COLD STARTS
overplays or underplays
the role of cold starts on
serverless performance
MYTH #1
COSTSCOSTS
misunderstands thereal cost savings fromadopting serverless
MYTH #2
CONTROL
not realise that control of
infra requires expensive
skillsets to manage
MYTH #3
CONTROL
LOCK-INnot realise that lock-in
risk rewards productivity,
and true lock-in is dataMYTH #4
LOCK-IN
COLD STARTSCOLD STARTS
overplays or underplays
the role of cold starts on
serverless performance
MYTH #1
LOCK-IN
not realise that lock-in
risk rewards productivity,
and true lock-in is data
MYTH #4
LOCK-INCONTROL
not realise that control of
infra requires expensive
skillsets to manage
MYTH #3
CONTROLCOSTSCOSTS
misunderstands the
real cost savings from
adopting serverless
MYTH #2
INITIALISE
CONTAINER
INITIALISE
RUNTIME
INITIALISE
HANDLER
YOUR CODE
EXECUTES
INITIALISE
CONTAINER
INITIALISE
RUNTIME
INITIALISE
HANDLER
YOUR CODE
EXECUTES
COLD START
“cold starts only happen to the first request”
function invocationconcurrent execution
i.e. a container
function invocationconcurrent execution
i.e. a container
class instance method call
Lambda scales the number of concurrent
executions based on traffic
existing “containers” are reused where possible
time
invocation
time
invocation
invocation
time
invocation
invocation
time
invocation
invocation
invocation
invocation
time
invocation
invocation
invocation
invocation
invocation
invocation
time
invocation
invocation
invocation
invocation
invocation
invocation
time
invocation
invocation
invocation
invocation
invocation
invocation
invocation
time
invocation
invocation
invocation
invocation
invocation
invocation
invocation invocation
time
invocation
invocation
invocation
invocation
invocation
invocation
invocation invocation
time
invocation
invocation
invocation
invocation
invocation
invocation
invocation invocation
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths
FREQUENCY DURATION
FREQUENCY DURATION
dictated by user traffic,
out of your control
FREQUENCY DURATION
optimize this!
“Lambda is not a suitable solution for me
because of cold starts”
“what is your latency requirement?”
cold starts that don’t add to user-facing
latency is generally not worth worrying about
Node.js functions, no VPC, 1GB, averages
~500ms cold start with production workload
Node.js functions, no VPC, 1GB, averages
~500ms cold start with production workload
(good enough for most web applications)
sporadic spikes latency existed before Lambda
GC pauses…
overloaded servers…
slow downstream, databases, etc.
networking issues…
cold starts is generally not an issue if you have
a steady traffic pattern
time
req/s
time
req/s
El Classico
time
req/s
lunch dinner
minimise the duration of cold starts so
they fall within acceptable latency range
use higher memory setting if function
performs CPU intensive work
use Node.js, Python or Golang
trim dependencies
keep functions single-purposed
avoid VPCs unless you need to access
VPC-protected resources
COSTSCOSTS
misunderstands the
real cost savings from
adopting serverless
MYTH #2
LOCK-IN
not realise that lock-in
risk rewards productivity,
and true lock-in is data
MYTH #4
LOCK-INCONTROL
not realise that control of
infra requires expensive
skillsets to manage
MYTH #3
CONTROL
“good luck when Amazon decides to
raise the price of Lambda!”
AWS announced 67 price reductions in the
last 5 years, and 0 price hikes
Debunking serverless myths
Model Training
Low-latency Prediction
Serving via Batching
Debunking serverless myths
developer
but I build CRUD web APIs, why should I
care if Lambda is a bad fit for machine
learning and serving realtime predictions?
https://aws.amazon.com/solutions/case-studies/financial-engines/
https://www.doc.ic.ac.uk/~rbc/papers/fse-serverless-17.pdf
“This paper presents two
case industrial studies of
early adopters, showing
how migrating an
application to the
Lambda deployment
architecture reduced
hosting costs – by
between 66% and 95%…”
if you wear your shoes on your hands,
should you really be surprised your feet is cold?
(hint: it’s not because the shoes are not warm!)
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths
recruitment is one of the most important things
you can do as an employee
it’s also a significant investment
https://bit.ly/2FTXk4q
Debunking serverless myths
Debunking serverless myths
leverage: do more with less
idea production
choose language
+ framework
master language
+ framework
figure out
deployment
configure AMI
configure ELB
configure
autoscaling
capacity planning
over-provision for
launch
are we doing
microservices?
configure CI/CD
request
blue-green deployment
req/s
auto-scaling
us-east-1a
us-east-1b
us-east-1c
multi-AZ
Serverless might cost you just as much, or
even more, but you get so much more done
Debunking serverless myths
6 developers, 6 months
95% saving against EC2
15x no. of production releases per month
Debunking serverless myths
CONTROL
not realise that control of
infra requires expensive
skillsets to manage
MYTH #3
CONTROL
LOCK-IN
not realise that lock-in
risk rewards productivity,
and true lock-in is data
MYTH #4
LOCK-IN
Control
Responsibility
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths
Controlling your own infrastructure
comes with Responsibilities
to take on these responsibilities you
need to have the relevant skillsets in the
organization
Controlling your own infrastructure
comes with Responsibilities
to take on these responsibilities you
need to have the relevant skillsets in the
organization
Controlling your own infrastructure
comes with Responsibilities
ENGINEERS
Debunking serverless myths
to take on these responsibilities you
need to have the relevant skillsets in the
organization
Controlling your own infrastructure
comes with Responsibilities
ENGINEERS ADMIN
to take on these responsibilities you
need to have the relevant skillsets in the
organization
Controlling your own infrastructure
comes with Responsibilities
ENGINEERS ADMIN RECRUITMENT
to take on these responsibilities you
need to have the relevant skillsets in the
organization
Controlling your own infrastructure
comes with Responsibilities
ENGINEERS ADMIN RECRUITMENT MARKET
Debunking serverless myths
what are you paying for?
guard against the temptation to
look for control for control sake
AWS Lambda, Azure Functions, Google
Cloud Functions
Your custom, container-based, general
purpose compute platform
Debunking serverless myths
LOCK-IN
not realise that lock-in
risk rewards productivity,
and true lock-in is data
MYTH #4
LOCK-IN
Lock-in risk
Reward
“VENDOR LOCK-IN IS THE ROOT OF ALL EVIL”
use our private cloud instead,
it’s totally not a lock-in because containers!
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths
open-source !== freedom
here’s a Ferrari,
have at it
but I don’t know
how to drive!
I’ll take a taxi
instead…
here’s a Ferrari,
have at it
but I don’t know
how to drive!
I’ll take a taxi
instead…
here’s a million
lines of open
source code,
have at it
but I don’t know
how to run it!
I’ll use a managed
service instead…
even open-source solutions require
expertise to operate, and expertise
are both rare and expensive
to take on these responsibilities you
need to have the relevant skills sets in
the organization
Controlling your own infrastructure
comes with Responsibilities
ENGINEERS ADMIN RECRUITMENT MARKET
if you already have the expertise, can
their time be better used to generate
more business value instead?
risk is just one side of the coin
Debunking serverless myths
extracting maximum value from your cloud provider
minimising undifferentiated heavy-lifting
faster time-to-market
reward
vendor lock-in is a problem that is
all bark but no bite
Debunking serverless myths
own less technology,
focus on creating Business Values
Debunking serverless myths
“DATABASE LOCK-IN IS THE ROOT OF ALL EVIL”
ORM
a load of unnecessary
complexity that didn’t end up
making DB migrations any
easier, and forced you to the
least common denominator of
feature sets and stop you from
taking advantage of your DB in
the first place…
nooooooooooo, wish I hadn’t used an ORM!!
Debunking serverless myths
The true danger with lock-in, especially with serverless, is the potential
for data lock-in. Data has gravity. It accumulates. Data is economically
disincentivized to leave, by way of platform pricing. This is the single
biggest threat to vendor choice.
is vendor lock-in a risk?
YES
is the return worth the risk?
ABSOLUTELY!
there are no silver bullets
Debunking serverless myths
understand the trade-offs
control comes with its own baggages
but sometimes the benefits
outweigh the baggages
Debunking serverless myths
Debunking serverless myths
Debunking serverless myths

More Related Content

PDF
How to build a social network on serverless
PDF
Serverless is more FinDev than DevOps
PDF
How to build observability into a serverless application
PDF
Let's Program The Cloud
PDF
How to build a social network on Serverless (AWS Community Summit)
PDF
How serverless changes the cost paradigm
PDF
What can you do with lambda in 2020
PDF
Lambda and DynamoDB best practices
How to build a social network on serverless
Serverless is more FinDev than DevOps
How to build observability into a serverless application
Let's Program The Cloud
How to build a social network on Serverless (AWS Community Summit)
How serverless changes the cost paradigm
What can you do with lambda in 2020
Lambda and DynamoDB best practices

What's hot (20)

PDF
How to improve lambda cold starts
PDF
What makes me to migrate entire VPC JAWS PANKRATION 2021
PDF
Surviving Serverless Testing: The ultimate Guide
PPTX
Understand Immutable infrastructure - at Build Stuff Kiev 2016
PDF
API310 - How to refactor a monolith to serverless in 8 steps
PDF
PagerDuty + Rundeck = Shorter Incidents, Fewer Escalations
PDF
Microservices the Good Bad and the Ugly
PPT
All Change! How the new economics of Cloud will make you think differently ab...
PPTX
JavaOne 2015 Devops and the Darkside CON6447
PDF
Serverless Architectural Patterns
PDF
Patterns and Practices for Building Resilient Serverless Applications
PDF
You wouldn't build a toast, would you
PDF
The Journey from Monolith to Microservices: a Guided Adventure
PDF
How HipChat Ships and Recovers Fast with DevOps Practices
PDF
Security in serverless world
PDF
How to Grow a Serverless Team
PPTX
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
PPTX
AWS Summit - Trends in Advanced Monitoring for AWS environments
PDF
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
PDF
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
How to improve lambda cold starts
What makes me to migrate entire VPC JAWS PANKRATION 2021
Surviving Serverless Testing: The ultimate Guide
Understand Immutable infrastructure - at Build Stuff Kiev 2016
API310 - How to refactor a monolith to serverless in 8 steps
PagerDuty + Rundeck = Shorter Incidents, Fewer Escalations
Microservices the Good Bad and the Ugly
All Change! How the new economics of Cloud will make you think differently ab...
JavaOne 2015 Devops and the Darkside CON6447
Serverless Architectural Patterns
Patterns and Practices for Building Resilient Serverless Applications
You wouldn't build a toast, would you
The Journey from Monolith to Microservices: a Guided Adventure
How HipChat Ships and Recovers Fast with DevOps Practices
Security in serverless world
How to Grow a Serverless Team
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
AWS Summit - Trends in Advanced Monitoring for AWS environments
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...

Similar to Debunking serverless myths (20)

PDF
Debunking serverless myths
PDF
Serverless computing
PPTX
ServerlessConf 2018 Keynote - Debunking Serverless Myths
PDF
Montréal AWS Users United: Let's go Serverless!
PPTX
ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...
PDF
Journey to the cloud, the why and how of serverless
PDF
"Node.js and Serverless" Viacheslav Panevskyi
PPTX
Serverless-Computing-The-Future-of-Backend-Development
PDF
Microservices and Serverless for Mega Startups - DevOps IL Meetup
PPTX
Serverless: The next major shift in cloud computing
PDF
You wouldn't build a toast, would you?
PDF
Designing Serverless Architectures on AWS
PDF
Serverless Computing 7 Myths Debunked (2).pdf
PPTX
Understanding serverless architecture
PDF
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
PPTX
Serverless Pune Meetup 1
DOCX
5 Serverless Computing Misconceptions to avoid in 2023
PPTX
Serverless Toronto helps Startups
PPTX
How can your business benefit from going serverless?
PDF
"It’s not only Lambda! Economics behind Serverless" at JAX Conference in Mai ...
Debunking serverless myths
Serverless computing
ServerlessConf 2018 Keynote - Debunking Serverless Myths
Montréal AWS Users United: Let's go Serverless!
ServerlessConf 2018 Keynote - Debunking Serverless Myths (no video / detailed...
Journey to the cloud, the why and how of serverless
"Node.js and Serverless" Viacheslav Panevskyi
Serverless-Computing-The-Future-of-Backend-Development
Microservices and Serverless for Mega Startups - DevOps IL Meetup
Serverless: The next major shift in cloud computing
You wouldn't build a toast, would you?
Designing Serverless Architectures on AWS
Serverless Computing 7 Myths Debunked (2).pdf
Understanding serverless architecture
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
Serverless Pune Meetup 1
5 Serverless Computing Misconceptions to avoid in 2023
Serverless Toronto helps Startups
How can your business benefit from going serverless?
"It’s not only Lambda! Economics behind Serverless" at JAX Conference in Mai ...

More from Yan Cui (20)

PDF
How to win the game of trade-offs
PDF
How to choose the right messaging service
PDF
How to choose the right messaging service for your workload
PDF
Patterns and practices for building resilient serverless applications.pdf
PDF
Lessons from running AppSync in prod
PDF
Serverless observability - a hero's perspective
PDF
How to ship customer value faster with step functions
PDF
Why your next serverless project should use AWS AppSync
PDF
Build social network in 4 weeks
PDF
Patterns and practices for building resilient serverless applications
PDF
How to bring chaos engineering to serverless
PDF
Migrating existing monolith to serverless in 8 steps
PDF
Building a social network in under 4 weeks with Serverless and GraphQL
PDF
FinDev as a business advantage in the post covid19 economy
PDF
A chaos experiment a day, keeping the outage away
PDF
How to debug slow lambda response times
PDF
What can you do with lambda in 2020
PDF
How to ship customer value faster with step functions
PDF
Debugging Lambda timeouts
PDF
Serverless a superpower for frontend developers
How to win the game of trade-offs
How to choose the right messaging service
How to choose the right messaging service for your workload
Patterns and practices for building resilient serverless applications.pdf
Lessons from running AppSync in prod
Serverless observability - a hero's perspective
How to ship customer value faster with step functions
Why your next serverless project should use AWS AppSync
Build social network in 4 weeks
Patterns and practices for building resilient serverless applications
How to bring chaos engineering to serverless
Migrating existing monolith to serverless in 8 steps
Building a social network in under 4 weeks with Serverless and GraphQL
FinDev as a business advantage in the post covid19 economy
A chaos experiment a day, keeping the outage away
How to debug slow lambda response times
What can you do with lambda in 2020
How to ship customer value faster with step functions
Debugging Lambda timeouts
Serverless a superpower for frontend developers

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Electronic commerce courselecture one. Pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
20250228 LYD VKU AI Blended-Learning.pptx
A Presentation on Artificial Intelligence
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Digital-Transformation-Roadmap-for-Companies.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Review of recent advances in non-invasive hemoglobin estimation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...

Debunking serverless myths