This document discusses serverless computing and function as a service (FaaS). It provides an overview of what serverless and FaaS are, how they work, common use cases, limitations, and the future impact. Key points include that FaaS provides fully managed compute with no servers to provision and pays only for actual usage, common triggers are HTTP requests and events, and use cases span web backends, mobile apps, file processing, bots, and more. The document also outlines limitations like statelessness and cold starts, as well as emerging practices around business models, architectures, operations, and tooling.
The Rise ofServerless -
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 BuiltProduct (+ 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
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
Deployyour
code
Define
triggers
Code
execution
(ephemeral
instance)
EVENT-DRIVEN
AUTO SCALING
+
AVAILABILITY
Use case: CI
Source:https://github.com/lambci/lambci
LambCI
(Travis alternative)
35.
Use case: IoTbackend
Source: https://www.hackster.io/jose-troche/alexa-drone-pilot-7f2deb
36.
Use case: IoTbackend
Source: https://medium.com/serverless-stories/building-a-serverless-garden-monitoring-system-with-lambda-c72c54113df2
Garden Monitoring
System
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
Limitations: Stateless
◉ Instancesare 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
◉ Ephemeral =>cold start on first or
infrequent calls
◉ Inconsistent
Limitations: Latency
Source: http://www.yusp.com/blog/cold-start-problem-recommender-systems/
Limitations: Costs
AWS LambdaEC2
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
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
Takeaways
◉ Deliver fasterwith lower costs for many use
cases
◉ Consider limitations
◉ Get ready for new emerging practices
67.
Any questions?
Thanks!
Slides templateby SlidesCarnival
You can find me at
◉ @benikbauer
◉ bennybauer@gmail.com
This work is licensed under a CC Attribution 4.0 International License.