1. The Rise of Serverless -
When to FaaS?
Photo by Shane Perry
Icon by Serverless
2. ◉ Cloud Architecture & Development Consulting
◉ Serverless Enthusiast
◉ Ex-
Find me at @benikbauer
I am Benny Bauer
Shalom!
3. EvolutionGenesis Custom Built Product (+ rental) Commodity (+ utility)
Cloud evolution in 60 sec
Data center
Hosting
Virtualization IaaS
Icons made by freepik from www.flaticon.com & unlimicon from Noun Project
On
Premise
Compute
Platform PaaS Serverless
5. What is FaaS - Function as a
Service
Fully-managed
compute
Provisioning,
patching, scaling,
monitoring, logging
are provided
out-of-the- box
Deploy your code
Just package and
upload the code
Pay for actual usage
Getting charged only
upon code execution,
per 100ms
100%
UTILIZATION
LESS OPS
6. How it works
Deploy your
code
Define
triggers
Code
execution
(ephemeral
instance)
EVENT-DRIVEN
AUTO SCALING
+
AVAILABILITY
33. Use case: CI
Source: https://github.com/lambci/lambci
LambCI
(Travis alternative)
34.
35. Use case: IoT backend
Source: https://www.hackster.io/jose-troche/alexa-drone-pilot-7f2deb
36. Use case: IoT backend
Source: https://medium.com/serverless-stories/building-a-serverless-garden-monitoring-system-with-lambda-c72c54113df2
Garden Monitoring
System
37.
38. Use case: CDN
Source: https://www.slideshare.net/AmazonWebServices/new-launch-bringing-aws-lambda-to-the-edge
◉ Purpose:
○ Better UX
○ Reduce load from
backend
◉ Use cases:
○ Request validation
○ A/B testing
○ Content customizations
according to user-agent
39. Use case: CDN
Source: https://www.slideshare.net/AmazonWebServices/new-launch-bringing-aws-lambda-to-the-edge
45. But isn’t it limitationless??
Mind The Limitations
46. Limitations: Stateless
◉ Instances are ephemeral (memory, storage)
but not necessarily disposable
◉ No sticky sessions
◉ Workarounds:
○ Websockets through IoT (MQTT)
○ Manage state yourself:
■ Pass on request
■ Store in cache/db
51. Limitations: Costs
AWS Lambda EC2
Duration Per 100 ms
Per 1 hour
Reduced cost for RI
Cost of
ownership
Low High
Additional costs Requests
Redundancy
Storage
Cost effective For low or changing load For high utilization
53. Limitations: Vendor lock-in
◉ The real lock-in is the integrated services
◉ A tradeoff: control vs. convenience
Source: https://www.slideshare.net/AmazonWebServices/reinvent-recap-session-1-whats-new-with-aws-lambda
66. Takeaways
◉ Deliver faster with lower costs for many use
cases
◉ Consider limitations
◉ Get ready for new emerging practices
67. Any questions?
Thanks!
Slides template by SlidesCarnival
You can find me at
◉ @benikbauer
◉ bennybauer@gmail.com
This work is licensed under a CC Attribution 4.0 International License.