SlideShare a Scribd company logo
It‘s not only Lamda
Economics behind serverless
by Christian Bannes and Vadym Kazulkin, ip.labs GmbH
Contact
Vadym Kazulkin
ip.labs GmbH
v.kazulkin@iplabs.de
xing.com/profile/Vadym_Kazulkin
@VKazulkin
@ServerlessBonn (Meetup)
Christian Bannes
ip.labs GmbH
c.bannes@iplabs.de
xing.com/profile/Christian_Bannes
Ip.labs GmbH
Money for
nothing
Developers are good guys
They can ignore money...
Image: https://www.flickr.com/photos/pictures-of-money/17121925920/
Cloud changes things
Lambda settings
It‘s not only
Lamda…
...also consider the infrastructure
Image: https://stocksnap.io
You also need…
• Storage
• Databases
• Queues
• Api Gateway
• Logging
• Data Transfer
• And More ...
Image: https://stocksnap.io
Most expensive…
...are people
Image: https://burst.shopify.com
What you really have
to consider:
Total Cost of
Ownership
Lambda pricing model
Cost for lambda
REQUEST DURATION
Request Tier
$ 0.20
Per 1 Mio Requests
Duration Tier
$ 0.00001667
Per GB-Second
GB-Second
ONE SECOND ONE GB
Example
• 1 Mio requests
• Lambda with 512MB
• Each lambda takes 200ms
• 0.5GB * 0.2sec * 1Mio
= 100 000 GB-Seconds
Requests:
$0.20
GB-Seconds:
$1.67
Cost scales
linearly with
memory
How does this compare to
VM pricing model?
Lambda performance
compares to
• M4 (general purpose)
• M5 (general purpose)
EC2 Instance
Families
M5 General Purpose Instance
Cost scales linearly
with memory
Lamdba vs VM
https://www.youtube.com/watch?v=b1ebYEfQX1s
Lambda compute is
5x more expensive than M5
Threading Model
Idle Idle
Pay per wall clock time Pay per use
AWS monetizes the datacenter…
… by selling time on their servers
Image: https://aws.amazon.com
Common pitfalls when
working with lambda
More memory = more expensive?
Power tuning
lambda
• Executes different
settings in parallel
• Outputs the optimal
setting
Image: https://github.com/alexcasalboni/aws-lambda-power-tuning
Paying for
wait time
Image: https://blog.binaris.com/lambda-pricing-pitfalls/
The reality is…
Lambda is often just a
small percentage
of your total cost
$ 3.50
Per million API calls
Api Gateway
Event Sources
• SQS and SNS are
charged for requests
• Kinesis charges for
shard hours & PUT
requests
Image: https://blog.binaris.com/lambda-pricing-pitfalls/
Event Sources
• Cost for Kinesis grows
with slower rate
• Attractive at to
operate at scale
Image: https://blog.binaris.com/lambda-pricing-pitfalls/
DynamoDB On-Demand
Image: https://aws.amazon.com/blogs/aws/amazon-dynamodb-on-demand-no-capacity-planning-and-pay-per-request-pricing/
Provisioned vs
On-Demand
• Use On-Demand for
spiky workloads
• Use Provisioned for
constantly high
workload
Cost saving with
On-Demand
Image: https://twitter.com
Switch to
"On-Demand"
Example
$2400 / Month $520 / Month
100 API requests per second 24/7
• API Gateway
• Lambda with 1GB and
300ms per request
• Load balancer
• 3 x M5.xlarge with
16GB each
Serverless vs VM
• "Pay as you go" can significantly reduce server cost
because you don’t pay for ide time
• Cost for compute is always higher
• For serverless you need right workload and architecture
• For constantly high workloads it can quickly become
expensive
What you really have
to consider:
Total Cost of
Ownership
Ajay Nair (https://twitter.com/ajaynairthinks/status/1057696133076541441)
TCO Full Picture
Forrest Brazeal „The Business Case For Serverless”
https://www.trek10.com/blog/business-case-for-serverless/
No Infrastructure
Maintanence
Auto Scaling
Built in
Fewer Engineers
Required
Lower Technical
Debt
Focus on Business
Value & Innovation
Faster Time to
Market
Do more with (Server-)less
FaaS...
…or not to FaaS
Image: https://stock.adobe.com
1. Application lifecycle
2. Workloads
3. Platform limitations
4. Cost at scale
5. Operational constraints
6. Organizational knowledge
Decision Checklist
Understand
Application
lifecycle
Christian Posta „Be as serverless as you can, but not more than that”
https://blog.christianposta.com/serverless/its-not-about-microservices-vs-serverless/
Explore phase
• Quickly validate
hypotheses
• Rapidly experiment
• Run experiments as
cheaply as possible
Image: burst.shopify.com/photos/a-look-across-the-landscape-with-view-of-the-sea
Serverless is a perfect fit
Exploit phase
• Built something that does
provide customer value
• Build it on scale
• Build a profitable product
around it
Image: Robert Scoble via Flickr
partly serverless and partly not
serverless architecture
Application lifecycle
• How much of my stack should I own
to be able to deliver business value?
• Outsource SLA, regulatory
compliance, price, and roadmap to
my service provider?
Existing
applications
• You can’t magically move
that all off to service
providers
• You can try to modernize
parts of them
FinDev Concept
Activity-based costing on a
digital operation-by-operation
basis
• Figure out features which deliver
business value comparing to their
cost
Aleksander Simovic & Mark Schwarz „FinDev and Serverless Microeconomics: Part 1”
https://aws.amazon.com/de/blogs/enterprise-strategy/findev-and-serverless-microeconomics-part-1/
1. Application lifecycle
2. Workloads
3. Platform limitations
4. Cost at scale
5. Operational constraints imposed by other dependencies
6. Organizational knowledge
Understand your
workloads
• Event-driven/reactive
• API-driven
• Batch Job
• ML/AI
• Big Data
Image: flickr.com/photos/everywhereatonce/294789504
Understand your workloads
• Do we need to access specialized
hardware ?
• GPU access required?
• Do we need constantly high
performance?
• Response time below 100 ms
(e.g. bidding or gaming platforms)
“A Berkeley View on Serverless Computing” https://www2.eecs.berkeley.edu/Pubs/TechRpts/2019/EECS-2019-3.html
Understand your workloads
• Do we need high throughput ?
• Lambda‘s network bandwidth is
limited shared between all functions
packed on the same VM
• Do functions need to communicate
with each other?
• functions not directly network
accessible, they must communicate
via an intermediary service
“A Berkeley View on Serverless Computing” https://www2.eecs.berkeley.edu/Pubs/TechRpts/2019/EECS-2019-3.html
1. Application lifecycle
2. Workloads
3. Platform limitations
4. Cost at scale
5. Operational constraints imposed by other dependencies
6. Organizational knowledge
Understand platform
limitations
• Cold start
• Lambda with and without VPC for
each runtime
• Invocation duration/ Timeouts
• Lambda 15min
• API Gateway integration 29sec
• Max Memory
• Lambda 3GB
Ajay Nair „Become a Serverless Black Belt” https://www.youtube.com/watch?v=oQFORsso2go
Ajay Nair „Become a Serverless Black Belt” https://www.youtube.com/watch?v=oQFORsso2go
Understand platform
limitations
• Cold start
• Lambda with and without VPC for
each runtime
• Invocation duration/timeouts
• Lambda 15min
• API Gateway integration 29sec
• Max Memory
• Lambda 3GB
Understand platform
limitations
• Max concurrent invocations
• Lambda 3000 per account
• Scaling thresholds
• Dynamo DB provisioned and on-
demand capacities
1. Application lifecycle
2. Workloads
3. Platform limitations
4. Cost at scale
5. Operational constraints imposed by other dependencies
6. Organizational knowledge
Understand your cost at
scale
• Lambda
• API Gateway
• Dynamo DB capacity choices
• Remote API calls
• Logging costs
• Monitoring costs
1. Application lifecycle
2. Workloads
3. Platform limitations
4. Cost at scale
5. Operational constraints imposed by other dependencies
6. Organizational knowledge
Understand the operational constraints
imposed by other dependencies
• Language runtime choice
• Can be forced by some dependencies to
other libraries
• Relation database choice
• Aurora Serverless: either use VPC or use
Data API
Yan Cui „Not so FaaS” https://blog.binaris.com/not-so-faas/
1. Application lifecycle
2. Workloads
3. Platform limitations
4. Cost at scale
5. Operational constraints imposed by other dependencies
6. Organizational knowledge
Understand organizational
knowledge
• Do you already have
DevOps knowledge?
• Are the developers willing to
learn new languages?
Future of Serverless
Simon Wardley https://twitter.com/swardley/status/1017074876887322627
Berkeley View on
Serverless Computing
“A Berkeley View on Serverless Computing” https://www2.eecs.berkeley.edu/Pubs/TechRpts/2019/EECS-2019-3.html
Berkeley View on
Serverless Computing
• Provide low latency and high IOPS
Serverless Ephemeral Storage
• Provide Serverless Durable Storage
• Improve Networking
• Improve security
• Accommodate cost-performance
“A Berkeley View on Serverless Computing” https://www2.eecs.berkeley.edu/Pubs/TechRpts/2019/EECS-2019-3.html
Predictions
• More available runtimes (e.g. GraalVM)
• Platform limitations will be weakened or
disappear
• New use cases of serverless (Big Data,
ML/AI)
• Access to specialized hardware
• Companies gaining advantages from the
FinDev approach
Image: Marco Verch via Flickr (Creative Commons 2.0)
https://www.flickr.com/photos/30478819@N08/26528539689/
Serverless vs VM
• "Pay as you go" can significantly reduce
server cost because you don’t pay for ide
time
• Cost for compute is always higher
• For serverless you need right workload and
architecture
• For constantly high workloads it can quickly
become expensive
• Application lifecycle
• Workloads
• Platform limitations
• Cost at scale
• Operational constraints
• Organizational knowledge
FaaS or not to FaaS
"It’s not only Lambda! Economics behind Serverless" at Serverless Architecture Conference April 2019 by Christian Bannes and Vadym Kazulkin (both ip.labs GmbH)
Thank You!

More Related Content

PDF
"It’s not only Lambda! Economics behind Serverless" at JAX Conference in Mai ...
PDF
FaaS or not to FaaS AWS Community Day Hamburg 2019 Bannes Kazulkin
PDF
FaaS or not to FaaS. Visible and invsible benefits of the Serverless paradigm...
PDF
用Serverless技術快速開發line聊天機器人
PDF
DEVELOPING SHAREPOINT FRAMEWORK SOLUTIONS FOR THE ENTERPRISE
PPTX
Four approaches to integrate aem with external systems by Jan Kuzniak
PPTX
ECS19 Bert Jansen - Modernizing your existing sites
PPTX
A Deep-Dive into Real-World SharePoint App Development
"It’s not only Lambda! Economics behind Serverless" at JAX Conference in Mai ...
FaaS or not to FaaS AWS Community Day Hamburg 2019 Bannes Kazulkin
FaaS or not to FaaS. Visible and invsible benefits of the Serverless paradigm...
用Serverless技術快速開發line聊天機器人
DEVELOPING SHAREPOINT FRAMEWORK SOLUTIONS FOR THE ENTERPRISE
Four approaches to integrate aem with external systems by Jan Kuzniak
ECS19 Bert Jansen - Modernizing your existing sites
A Deep-Dive into Real-World SharePoint App Development

What's hot (20)

PPTX
Chris O'Brien - Building AI into Power Platform solutions
PPTX
ECS19 - Patrick Curran - Expanding User Profiles with Line of Business Data (...
PPTX
Code first in the cloud: going serverless with Azure
PPTX
Chris O'Brien - Best bits of Azure for Office 365/SharePoint developers
PDF
205230 primavera installation walkthrough
PPTX
An Introduction to Web Components
PPTX
Chris O'Brien - Comparing SharePoint add-ins (apps) with Office 365 apps
PPTX
Can you build a Intranet with Modern SharePoint
PPTX
PowerShell for the Anxious ITPro
PPSX
ECS19 - Damir Dobric - Designing and Operating modern applications with Micro...
PPTX
[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence
PDF
Designing your API Server for mobile apps
PDF
[Carius] Skype Online, Teams, and PSTN
PPTX
Heavy Metal PowerPivot Remastered
PPTX
Concurrency at Scale: Evolution to Micro-Services
PDF
The Lost Tales of Platform Design (February 2017)
PPTX
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
PDF
Five Early Challenges Of Building Streaming Fast Data Applications
PDF
[Struyf] Automate Your Tasks With Azure Functions
PDF
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
Chris O'Brien - Building AI into Power Platform solutions
ECS19 - Patrick Curran - Expanding User Profiles with Line of Business Data (...
Code first in the cloud: going serverless with Azure
Chris O'Brien - Best bits of Azure for Office 365/SharePoint developers
205230 primavera installation walkthrough
An Introduction to Web Components
Chris O'Brien - Comparing SharePoint add-ins (apps) with Office 365 apps
Can you build a Intranet with Modern SharePoint
PowerShell for the Anxious ITPro
ECS19 - Damir Dobric - Designing and Operating modern applications with Micro...
[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence
Designing your API Server for mobile apps
[Carius] Skype Online, Teams, and PSTN
Heavy Metal PowerPivot Remastered
Concurrency at Scale: Evolution to Micro-Services
The Lost Tales of Platform Design (February 2017)
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
Five Early Challenges Of Building Streaming Fast Data Applications
[Struyf] Automate Your Tasks With Azure Functions
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
Ad

Similar to "It’s not only Lambda! Economics behind Serverless" at Serverless Architecture Conference April 2019 by Christian Bannes and Vadym Kazulkin (both ip.labs GmbH) (20)

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...
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...
PDF
Writing less code with Serverless on AWS at OOP 2022
PDF
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
PDF
Convince your boss to go Serverless at serverless week Brazil
PDF
Convince your boss to go Serverless at AWS User Group Tirupathi and Serverles...
PDF
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
PDF
Writing less code with Serverless on AWS at AWS Community Day DACH 2021
PPTX
Why real integration developers ride Camels
PDF
Microservices and Serverless for Mega Startups - DevOps IL Meetup
PDF
Serverless: Market Overview and Investment Opportunities
PDF
Writing less code with Serverless on AWS at FrOSCon 2021
PDF
Measure and Increase Developer Productivity with Help of Serverless at AWS Co...
PDF
DEF CON 27 - DIRK JAN MOLLEMA - im in your cloud pwning your azure environment
PDF
Your easy move to serverless computing and radically simplified data processing
PDF
Writing less code with Serverless on AWS at AWS User Group Nairobi
PDF
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
PPTX
Containers and VMs and Clouds: Oh My. by Mike Coleman
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...
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...
Writing less code with Serverless on AWS at OOP 2022
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Convince your boss to go Serverless at serverless week Brazil
Convince your boss to go Serverless at AWS User Group Tirupathi and Serverles...
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
Writing less code with Serverless on AWS at AWS Community Day DACH 2021
Why real integration developers ride Camels
Microservices and Serverless for Mega Startups - DevOps IL Meetup
Serverless: Market Overview and Investment Opportunities
Writing less code with Serverless on AWS at FrOSCon 2021
Measure and Increase Developer Productivity with Help of Serverless at AWS Co...
DEF CON 27 - DIRK JAN MOLLEMA - im in your cloud pwning your azure environment
Your easy move to serverless computing and radically simplified data processing
Writing less code with Serverless on AWS at AWS User Group Nairobi
FaaS or not to FaaS. Visible and invisible benefits of the Serverless paradig...
Containers and VMs and Clouds: Oh My. by Mike Coleman
Ad

More from Vadym Kazulkin (20)

PDF
How to develop, run and optimize Spring Boot 3 application on AWS Lambda - Wa...
PDF
Event-driven architecture patterns in highly scalable image storage solution-...
PDF
High performance Serverless Java on AWS- Serverless Architecture Javaland 2025
PDF
How to develop, run and optimize Spring Boot 3 application on AWS Lambda-OBI ...
PPTX
Making sense of AWS Serverless operations- AWS User Group Nuremberg
PDF
How to develop, run and optimize Spring Boot 3 application on AWS Lambda at V...
PPTX
Making sense of AWS Serverless operations at Believe in Serverless community ...
PDF
How to develop, run and optimize Spring Boot 3 application on AWS Lambda at I...
PDF
Making sense of AWS Serverless operations - Amarathon Geek China 2024
PDF
Event-driven architecture patterns in highly scalable image storage solution-...
PDF
High performance Serverless Java on AWS- Serverless Meetup Toronto
PDF
High performance Serverless Java on AWS- Serverless Architecture Conference B...
PDF
Making sense of AWS Serverless operations- Serverless Architecture Conference...
PDF
Detect operational anomalies in Serverless Applications with Amazon DevOps Gu...
PDF
Detect operational anomalies in Serverless Applications with Amazon DevOps Gu...
PDF
High performance Serverless Java on AWS- AWS Community Day Budapest 2024
PDF
Making sense of AWS Serverless operations AWS Community Day NL 2024-
PDF
Event-driven architecture patterns in highly scalable image storage solution ...
PDF
Detect operational anomalies in Serverless Applications with Amazon DevOps Gu...
PDF
High performance Serverless Java on AWS at We Are Developers 2024
How to develop, run and optimize Spring Boot 3 application on AWS Lambda - Wa...
Event-driven architecture patterns in highly scalable image storage solution-...
High performance Serverless Java on AWS- Serverless Architecture Javaland 2025
How to develop, run and optimize Spring Boot 3 application on AWS Lambda-OBI ...
Making sense of AWS Serverless operations- AWS User Group Nuremberg
How to develop, run and optimize Spring Boot 3 application on AWS Lambda at V...
Making sense of AWS Serverless operations at Believe in Serverless community ...
How to develop, run and optimize Spring Boot 3 application on AWS Lambda at I...
Making sense of AWS Serverless operations - Amarathon Geek China 2024
Event-driven architecture patterns in highly scalable image storage solution-...
High performance Serverless Java on AWS- Serverless Meetup Toronto
High performance Serverless Java on AWS- Serverless Architecture Conference B...
Making sense of AWS Serverless operations- Serverless Architecture Conference...
Detect operational anomalies in Serverless Applications with Amazon DevOps Gu...
Detect operational anomalies in Serverless Applications with Amazon DevOps Gu...
High performance Serverless Java on AWS- AWS Community Day Budapest 2024
Making sense of AWS Serverless operations AWS Community Day NL 2024-
Event-driven architecture patterns in highly scalable image storage solution ...
Detect operational anomalies in Serverless Applications with Amazon DevOps Gu...
High performance Serverless Java on AWS at We Are Developers 2024

Recently uploaded (20)

PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
NewMind AI Monthly Chronicles - July 2025
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

"It’s not only Lambda! Economics behind Serverless" at Serverless Architecture Conference April 2019 by Christian Bannes and Vadym Kazulkin (both ip.labs GmbH)