7. Serverless vs. ...
Service Function Application
(process)
Operating
System
Server Network
infrastructure
Buyer Provider
Buyer Provider
Buyer Provider
Buyer Provider
Buyer ProviderSaaS
Serverless
PaaS
IaaS
Dedicated
8. Examples
IaaS PaaS Serverless
Amazon Web
Services
EC2 Elastic
Beanstalk
Lambda
Google Cloud
Platform
Compute
Engine
App Engine Cloud Functions
Microsoft Azure Virtual
Machines
App Service Functions
Pozostałe Rackspace Heroku Apache
OpenWhisk
9. Pricing model
IaaS PaaS Serverless
Flat monthly fee Virtual machine
uptime
(hours)
Number of
requests
Dedicated
Application uptime
(hours)
Virtual machine
class
(CPU and RAM)
Function uptime
(milliseconds)
Environment class
(CPU and RAM)
Memory
consumption
(milliseconds)
25. Tips
★ Increase RAM (increase GHz) until most of
request will take less than 100ms
★ Decrease communication with external
services because you’re paying for wait time
★ Set Usage Plan in API Gateway limit number of
requests
★ Check Zappa (WSGI on AWS Lambda)
26. ★ Popularity of Serverless is growing
★ AWS Lambda helps to optimize cost
★ Chalice simplifies writing “Lambdas”
★ Chalice is unsuitable for creating whole app
★ Using Chalice you will became fully
dependent on AWS
Summary