SlideShare a Scribd company logo
@adrienblind
Introduction to Serverless
Adrien Blind
@adrienblind
Are you a server hugger?
@adrienblind
What do you really want
Deliver rapidely and flowly valuable apps
for the business
@adrienblind
What do you really want
Cloud
Agile
DevOps
Microservice
architecture
Craftsmanship
Deliver rapidely and flowly valuable apps
for the business
@adrienblind
What do you really want
On demand
Pay as you go
ElasticCloud
Deliver rapidely and flowly valuable apps
for the business
Agile
DevOps
Microservice
architecture
Craftsmanship
@adrienblind
A new kid on the block ?
@adrienblind
A new “cloudy” kid on the block
@adrienblind
A single definition for Serverless?
“Serverless computing is a cloud computing execution model in which the cloud provider dynamically manages the
allocation of machine resources”
- Wikipedia
“Serverless computing refers to the concept of building and running applications that do not require server
management. It describes a finer-grained deployment model where applications, bundled as one or more
functions, are uploaded to a platform and then executed, scaled, and billed in response to the exact demand
needed at the moment.”
- CNCF foundation whitepaper on Serverless
“Serverless architectures refer to applications that significantly depend on third-party services (knows as Backend
as a Service or "BaaS") or on custom code that's run in ephemeral containers (Function as a Service or "FaaS") [...].
such architectures remove the need for the traditional 'always on' server system sitting behind an application.”
- Mike Roberts, martinfowler.com (2016)
“If your PaaS can efficiently start instances in 20ms that run for half a second, then call it serverless.”
- Adrian Cockroft (2016)
@adrienblind
What are we talking about
❏ Dev/App perspective
Arch. design & granularity? Ephemeral apps? PaaS pattern?
Mostly all of them!
❏ Ops/platform perspective: infrastructure abstraction
Elastic → autoscaling
On-demand → boot in 20ms
Pay-as-you-go → Scale to zero
Cloud managed services
& … NoOps?
@adrienblind
2 major serverless tendencies
❏ BaaS, aka Backend-as-a-Service
&
❏ FaaS, aka Functions-as-a-Service
@adrienblind
❏ Checkout first what we do already have today…
we’ll dig into BaaS & FaaS in few minutes ;)
@adrienblind
Cloud: IaaS
❏ End-product is almost the same (virtual machines)
❏ Facilitates lift & shift
❏ Interaction with the product change: cloud principles, automation/infra-as-
code
❏ Stimulated the commoditization trend: ops no longer deliver per-app
infrastructure architectures
❏ Starts to shift resiliency & scalability topics from infra to app
Ok… But not Serverless at all.
@adrienblind
❏ Containers isolate apps from their subsequent OS
❏ Orchestrators enables to consider a pool of OS as a global capacity (CaaS)
❏ Possible Auto-scalability but mostly based on infrastructure metrics (CPU)
❏ However, pricing model mostly related to subsequent infrastructure used (cluster nodes)
❏ Containers commonly associated to finer app granularity/microservices, which may lead to more
efficient startup time
You now start observing few Serverless characteristics
Cloud: CaaS
+
Create more
abstraction from IaaS
@adrienblind
Cloud: PaaS or PaaS?
❏ PaaS stands for Platform-as-a-Service
❏ Application PaaS (aPaaS) pioneer: Google App engine
❏ xPaaS = managed services (DBaaS, object storage, etc.)
❏ Complete abstraction of the service from infrastructure
❏ Pricing model not related to infrastructure
❏ Autoscaling & resilient by design
Quite Serverless compliant, nope ?
@adrienblind
❏ BaaS, aka Backend-as-a-Service
@adrienblind
Backend-as-a-Service architecture
BaaS → no!
PaaS
CaaS
IaaS
@adrienblind
❏Not a cloud service offer, it’s an architecture concept
❏Trend initially launched for mobile apps
❏Build apps directly leveraging on PaaS services
❏Security paradigms shifts
From perimetric to embedded
Auth/Authz/Cipher everything (your backend is exposed, mate…)
Backend-as-a-Service architecture
Authentication
Object Storage
Databases
(ex. DynamoDB, etc.)
Mobile app
Or Browser
@adrienblind
❏ FaaS, aka Functions-as-a-Service
@adrienblind
Client
Gateway
FaaS
platform
FaaS compute capacity abstracted from app perspective
Cloud: FaaS
❏ Ephemeral: platform waits requests...
@adrienblind
Client
Instanciated
function
(your code)
Gateway
FaaS
platform
FaaS compute capacity abstracted from app perspective
Cloud: FaaS
❏ Ephemeral: platform waits requests and
triggers function on demand, which “lives”
the time to deliver the result: your code is
not always-on, waiting calls!
@adrienblind
❏ Ephemeral: platform waits requests and
triggers function on demand, which “lives”
the time to deliver the result: your code is
not always-on, waiting calls!
❏ Dynamic scalability & resilience provided
by the platform: more calls, more
instances
❏ Extremely fine grained pay-per-use on
public cloud: per-call costs
Client
Instanciated
function
(your code)
Instanciated
function
(your code)
Instanciated
function
(your code)
Gateway
FaaS
platform
FaaS compute capacity abstracted from app perspective
Cloud: FaaS
@adrienblind
❏Beware of design constraints applying to your app
❏ Service/function granularity
❏ Stateless services, use distributed cache, etc.
❏ Small wake up time
❏ No long-running services
❏Like for the Virtual machines & container history, shortly after their venue
came the orchestration challenge… Deal with function graph calls (ex.
Amazon Step)
❏Possible Vendor lock-in: check out serverless.io to get an abstraction fmk ?
❏Testing → you must deploy on the platform everytime
❏Adapt DevOps practices: monitoring, deployment, versioning...
FaaS constraints
@adrienblind
All major cloud vendors have products
Alternatively you can deploy your own FaaS fmk
You may leverage on existing CaaS and put value on top of it
• Container encapsulation of the function
• Kubernetes orchestration
FaaS on public cloud vs FaaS on premises
Amazon Google Azure OVH
OpenWhisk OpenFaaS OracleFN
@adrienblind
❏ OpenFaas: an example FaaS platform
@adrienblind
Introduction to OpenFaaS
 Originally a cool hack built by docker captain Alex Ellis for
Dockercon conference. A new, but real product now.
 Enable to trigger functions enclosed in docker images. So:
You can put any app/language, till there is a binary to start
Works Linux and Windows OS
On premises, on cloud, hybridated…
 https://www.openfaas.com
@adrienblind
OpenFaas leverage on containers & orchestration
Illustration from openfaas.com
@adrienblind
An example platform: introduction to OpenFaaS
 API gateway
Route inbound requests to your functions
Collect metrics through Prometheus
Autoscales modifying service replicas counts
Offers a convenient UI + endpoints for the CLI
@adrienblind
An example platform: introduction to OpenFaaS
 Function watchdog
A tiny HTTP server, enclosed along with your app in the docker image
Receive request from the API Gateway, triggers your app
Provide args and catch result through STDIN/STDOUT
Now, you know why you can enclose almost everything ;)
Illustration from openfaas.comIllustration from openfaas.com
@adrienblind
$ faas-cli new helloworld --lang python
The only line of code you’ll write in the function template
print("Hello, World!")
$ faas-cli build -f helloworld.yml
$ faas-cli push -f helloworld.yml
$ faas-cli deploy -f helloworld.yml
$ curl http://faas.me/function/helloworld
Hello, World!
“Hello, World!” example With OpenFaaS
@adrienblind
Benefits
 Leverage on your CaaS platform for serverless &
traditional usecase at the same time
 Leverage on top of Docker paradigms
Universality of languages/app supported
Easy CD/CI, automation
 Do not reinvent the wheel 
@adrienblind
❏ Sum Up
@adrienblind
❏ Serverless is an architecture
trend, not just a new cloud
service offer (aka FaaS)
❏ A serverless app is a mashup of
value-added, managed services:
aPaaS, xPaaS, FaaS…
❏ Fits today’s architecture stakes:
cloud native apps, 12 factors...
Serverless key aspects from Dev/App perspective
Schema from martinfowler.com
Devs gain a greater productivity, refocusing on business valuable code
@adrienblind
Ops gets more efficiency and cost-saving,
offloading several concerns to platform
❏ You no longer manage infrastructure aspects directly: Auto-
scalability & resilience provided by design
❏ Close but not fully NoOps (monitor app!)
❏ Cloud promise at its finest “resolution”
On-demand, Elastic, Pay-Per-Use
Serverless key aspects from Ops/platform perspective
@adrienblind
Focus on value & better TTM
but support platform constraints
More flexibility, more tuning
capacity… but assume plumbing
Functions
Serverless key aspects
ABSTRACT
FOCUSINFRA
Microservices
Monoliths
CaaS
IaaS
FaaS
& PaaS
@adrienblind
❏ Small microservices
❏ Stream processing
❏ Event-driven-programming
❏ Batch / Scheduled tasks
❏ May even replace some old compute grids ;)
❏ …
Some usecases
@adrienblind
Finally, THE silver bullet?
Highly valuable, but does not fit every usecases !
@adrienblind
❏ Extra: enlarge the picture
@adrienblind
IoT & Serverless
❏ IoT generates large loads of small & basic-to-process
events, in huge quantity
❏ It calls for an event-driven programming approach
❏ … which fits well with the idea of simple, elementary
functions of Serverless/FaaS computing
Serverless
+
IoT
@adrienblind
Edge Computing & Serverless
❏ Google Trends graphs for “Serverless” & “Edge computing” terms
❏ Beware, scales are not the same however ;)
❏ Anyway, an interesting correlation to notice, isn’t it ?
@adrienblind
WTF with Edge computing?
❏ Offload computing tasks close to the
data, at the boarder of the network / out
from the cloud
❏ Example, precompute face recognition
close to a camera, to avoid uploading the
whole video flow to the cloud
❏ Particularly valuable in an IoT landscape
CLOUD
@adrienblind
Major cloud vendors are building their strategy on top of the following triptic,
to unleash their service from the cloud and provide an end-to-end offer
For instance: Azure IoT Edge / Sphere, AWS Greengrass...
Unleash from the cloud
Serverless
Architecture
Edge
Computing
Internet Of
Things
@adrienblind
There are 2 kind of spurs my friend.
Those that do serverless, those that don’t.

More Related Content

PPTX
Serverless computing
PDF
Serverless computing
PDF
Serverless Computing
PDF
AWS Lambda 내부 동작 방식 및 활용 방법 자세히 살펴 보기 - 김일호 솔루션즈 아키텍트 매니저, AWS :: AWS Summit ...
PPTX
Serverless computing
PPTX
Azure fundamentals
PPTX
Azure App Service Deep Dive
PDF
What Is Serverless Computing
Serverless computing
Serverless computing
Serverless Computing
AWS Lambda 내부 동작 방식 및 활용 방법 자세히 살펴 보기 - 김일호 솔루션즈 아키텍트 매니저, AWS :: AWS Summit ...
Serverless computing
Azure fundamentals
Azure App Service Deep Dive
What Is Serverless Computing

What's hot (20)

PDF
Microsoft Azure Active Directory
PPTX
Micro services Architecture
PDF
AWS
PPTX
Microsoft Cloud Adoption Framework for Azure: Thru Partner Governance Workshop
PDF
Serverless computing with AWS Lambda
PPTX
Serverless Architecture
PPTX
What is Serverless Computing?
PDF
AWS 클라우드 서비스 소개 및 사례 (방희란) - AWS 101 세미나
PDF
Introduction to Serverless
PDF
Building Event-driven Architectures with Amazon EventBridge
PPTX
AWS Lambda
PDF
The Layman's Guide to Microsoft Azure
PDF
Microsoft Azure Overview
PPTX
Aws overview (Amazon Web Services)
PDF
Azure vm introduction
PPTX
AWS Lambda
PPTX
Introduction to Cloud computing and AWS services
PPTX
Introduction to AWS VPC, Guidelines, and Best Practices
PDF
PDF
Azure Arc by K.Narisorn // Azure Multi-Cloud
Microsoft Azure Active Directory
Micro services Architecture
AWS
Microsoft Cloud Adoption Framework for Azure: Thru Partner Governance Workshop
Serverless computing with AWS Lambda
Serverless Architecture
What is Serverless Computing?
AWS 클라우드 서비스 소개 및 사례 (방희란) - AWS 101 세미나
Introduction to Serverless
Building Event-driven Architectures with Amazon EventBridge
AWS Lambda
The Layman's Guide to Microsoft Azure
Microsoft Azure Overview
Aws overview (Amazon Web Services)
Azure vm introduction
AWS Lambda
Introduction to Cloud computing and AWS services
Introduction to AWS VPC, Guidelines, and Best Practices
Azure Arc by K.Narisorn // Azure Multi-Cloud
Ad

Similar to An introduction to Serverless (20)

PDF
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
PPTX
DevoxxFR 2018 #serverless - Mettez-le en œuvre dans votre entreprise et arriv...
PDF
(RivieraDev 2018) #serverless - 2 ans de retourS d'expérience
PDF
.NET Cloud-Native Bootcamp- Los Angeles
PDF
APIdays Paris 2018 - Cloud computing - we went through every steps of the Gar...
PDF
AWS Community Day - Amy Negrette - Gateways to Gateways
PDF
Hybrid Cloud DevOps with Apprenda and UrbanCode Deploy
PDF
.NET Cloud-Native Bootcamp
PDF
Serverless Streaming Architectures and Algorithms for the Enterprise
PDF
When to use serverless computing.pdf
PPTX
Serverless meetup Auckland #6
PDF
When to use serverless computing.pdf
PDF
Cloud-native Patterns (July 4th, 2019)
PDF
Cloud-native Patterns
PDF
PCF: Platform for a New Era - Kubernetes for the Enterprise - London
PDF
locize tech stack
PPSX
Cloud Architecture - Multi Cloud, Edge, On-Premise
PDF
2022 Presentation | Serverless Innovation with AWS
PDF
The Next Big Thing: Serverless
PDF
A Technology Backgrounder to Serverless Architecture - A Whitepaper by RapidV...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
DevoxxFR 2018 #serverless - Mettez-le en œuvre dans votre entreprise et arriv...
(RivieraDev 2018) #serverless - 2 ans de retourS d'expérience
.NET Cloud-Native Bootcamp- Los Angeles
APIdays Paris 2018 - Cloud computing - we went through every steps of the Gar...
AWS Community Day - Amy Negrette - Gateways to Gateways
Hybrid Cloud DevOps with Apprenda and UrbanCode Deploy
.NET Cloud-Native Bootcamp
Serverless Streaming Architectures and Algorithms for the Enterprise
When to use serverless computing.pdf
Serverless meetup Auckland #6
When to use serverless computing.pdf
Cloud-native Patterns (July 4th, 2019)
Cloud-native Patterns
PCF: Platform for a New Era - Kubernetes for the Enterprise - London
locize tech stack
Cloud Architecture - Multi Cloud, Edge, On-Premise
2022 Presentation | Serverless Innovation with AWS
The Next Big Thing: Serverless
A Technology Backgrounder to Serverless Architecture - A Whitepaper by RapidV...
Ad

More from Adrien Blind (20)

PPTX
Introduction à Crossplane (Talk Devoxx 2023)
PDF
Introdution to Dataops and AIOps (or MLOps)
PPTX
DataOps introduction : DataOps is not only DevOps applied to data!
PPTX
Skynet vs planet of apes
PPTX
DevOps at scale: what we did, what we learned at Societe Generale
PPTX
Unleash software architecture leveraging on docker
PPTX
Docker, cornerstone of cloud hybridation ? [Cloud Expo Europe 2016]
PPTX
DevOps à l'échelle: ce que l'on a fait, ce que l'on a appris chez Societe Gen...
PPTX
Docker, cornerstone of an hybrid cloud?
PPTX
Petit déjeuner Octo - L'infra au service de ses projets
PPTX
Docker cloud hybridation & orchestration
PPTX
DevOps, NoOps, everything-as-code, commoditisation… Quel futur pour les ops ?
PPTX
Introduction to Unikernels at first Paris Unikernels meetup
PPTX
When Docker Engine 1.12 features unleashes software architecture
PPTX
Full stack automation - TIAD 2015
PPTX
Continous delivery at docker age
PPTX
Docker: Redistributing DevOps cards, on the way to PaaS
PPTX
Docker, Pierre angulaire du continuous delivery ?
PPTX
Identity & Access Management in the cloud
PPTX
The missing piece : when Docker networking and services finally unleashes so...
Introduction à Crossplane (Talk Devoxx 2023)
Introdution to Dataops and AIOps (or MLOps)
DataOps introduction : DataOps is not only DevOps applied to data!
Skynet vs planet of apes
DevOps at scale: what we did, what we learned at Societe Generale
Unleash software architecture leveraging on docker
Docker, cornerstone of cloud hybridation ? [Cloud Expo Europe 2016]
DevOps à l'échelle: ce que l'on a fait, ce que l'on a appris chez Societe Gen...
Docker, cornerstone of an hybrid cloud?
Petit déjeuner Octo - L'infra au service de ses projets
Docker cloud hybridation & orchestration
DevOps, NoOps, everything-as-code, commoditisation… Quel futur pour les ops ?
Introduction to Unikernels at first Paris Unikernels meetup
When Docker Engine 1.12 features unleashes software architecture
Full stack automation - TIAD 2015
Continous delivery at docker age
Docker: Redistributing DevOps cards, on the way to PaaS
Docker, Pierre angulaire du continuous delivery ?
Identity & Access Management in the cloud
The missing piece : when Docker networking and services finally unleashes so...

Recently uploaded (20)

PDF
Getting Started with Data Integration: FME Form 101
PPTX
Spectroscopy.pptx food analysis technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Encapsulation theory and applications.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Getting Started with Data Integration: FME Form 101
Spectroscopy.pptx food analysis technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
A Presentation on Artificial Intelligence
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25-Week II
cloud_computing_Infrastucture_as_cloud_p
Encapsulation theory and applications.pdf
OMC Textile Division Presentation 2021.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
Univ-Connecticut-ChatGPT-Presentaion.pdf
A comparative study of natural language inference in Swahili using monolingua...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

An introduction to Serverless

  • 2. @adrienblind Are you a server hugger?
  • 3. @adrienblind What do you really want Deliver rapidely and flowly valuable apps for the business
  • 4. @adrienblind What do you really want Cloud Agile DevOps Microservice architecture Craftsmanship Deliver rapidely and flowly valuable apps for the business
  • 5. @adrienblind What do you really want On demand Pay as you go ElasticCloud Deliver rapidely and flowly valuable apps for the business Agile DevOps Microservice architecture Craftsmanship
  • 6. @adrienblind A new kid on the block ?
  • 8. @adrienblind A single definition for Serverless? “Serverless computing is a cloud computing execution model in which the cloud provider dynamically manages the allocation of machine resources” - Wikipedia “Serverless computing refers to the concept of building and running applications that do not require server management. It describes a finer-grained deployment model where applications, bundled as one or more functions, are uploaded to a platform and then executed, scaled, and billed in response to the exact demand needed at the moment.” - CNCF foundation whitepaper on Serverless “Serverless architectures refer to applications that significantly depend on third-party services (knows as Backend as a Service or "BaaS") or on custom code that's run in ephemeral containers (Function as a Service or "FaaS") [...]. such architectures remove the need for the traditional 'always on' server system sitting behind an application.” - Mike Roberts, martinfowler.com (2016) “If your PaaS can efficiently start instances in 20ms that run for half a second, then call it serverless.” - Adrian Cockroft (2016)
  • 9. @adrienblind What are we talking about ❏ Dev/App perspective Arch. design & granularity? Ephemeral apps? PaaS pattern? Mostly all of them! ❏ Ops/platform perspective: infrastructure abstraction Elastic → autoscaling On-demand → boot in 20ms Pay-as-you-go → Scale to zero Cloud managed services & … NoOps?
  • 10. @adrienblind 2 major serverless tendencies ❏ BaaS, aka Backend-as-a-Service & ❏ FaaS, aka Functions-as-a-Service
  • 11. @adrienblind ❏ Checkout first what we do already have today… we’ll dig into BaaS & FaaS in few minutes ;)
  • 12. @adrienblind Cloud: IaaS ❏ End-product is almost the same (virtual machines) ❏ Facilitates lift & shift ❏ Interaction with the product change: cloud principles, automation/infra-as- code ❏ Stimulated the commoditization trend: ops no longer deliver per-app infrastructure architectures ❏ Starts to shift resiliency & scalability topics from infra to app Ok… But not Serverless at all.
  • 13. @adrienblind ❏ Containers isolate apps from their subsequent OS ❏ Orchestrators enables to consider a pool of OS as a global capacity (CaaS) ❏ Possible Auto-scalability but mostly based on infrastructure metrics (CPU) ❏ However, pricing model mostly related to subsequent infrastructure used (cluster nodes) ❏ Containers commonly associated to finer app granularity/microservices, which may lead to more efficient startup time You now start observing few Serverless characteristics Cloud: CaaS + Create more abstraction from IaaS
  • 14. @adrienblind Cloud: PaaS or PaaS? ❏ PaaS stands for Platform-as-a-Service ❏ Application PaaS (aPaaS) pioneer: Google App engine ❏ xPaaS = managed services (DBaaS, object storage, etc.) ❏ Complete abstraction of the service from infrastructure ❏ Pricing model not related to infrastructure ❏ Autoscaling & resilient by design Quite Serverless compliant, nope ?
  • 15. @adrienblind ❏ BaaS, aka Backend-as-a-Service
  • 17. @adrienblind ❏Not a cloud service offer, it’s an architecture concept ❏Trend initially launched for mobile apps ❏Build apps directly leveraging on PaaS services ❏Security paradigms shifts From perimetric to embedded Auth/Authz/Cipher everything (your backend is exposed, mate…) Backend-as-a-Service architecture Authentication Object Storage Databases (ex. DynamoDB, etc.) Mobile app Or Browser
  • 18. @adrienblind ❏ FaaS, aka Functions-as-a-Service
  • 19. @adrienblind Client Gateway FaaS platform FaaS compute capacity abstracted from app perspective Cloud: FaaS ❏ Ephemeral: platform waits requests...
  • 20. @adrienblind Client Instanciated function (your code) Gateway FaaS platform FaaS compute capacity abstracted from app perspective Cloud: FaaS ❏ Ephemeral: platform waits requests and triggers function on demand, which “lives” the time to deliver the result: your code is not always-on, waiting calls!
  • 21. @adrienblind ❏ Ephemeral: platform waits requests and triggers function on demand, which “lives” the time to deliver the result: your code is not always-on, waiting calls! ❏ Dynamic scalability & resilience provided by the platform: more calls, more instances ❏ Extremely fine grained pay-per-use on public cloud: per-call costs Client Instanciated function (your code) Instanciated function (your code) Instanciated function (your code) Gateway FaaS platform FaaS compute capacity abstracted from app perspective Cloud: FaaS
  • 22. @adrienblind ❏Beware of design constraints applying to your app ❏ Service/function granularity ❏ Stateless services, use distributed cache, etc. ❏ Small wake up time ❏ No long-running services ❏Like for the Virtual machines & container history, shortly after their venue came the orchestration challenge… Deal with function graph calls (ex. Amazon Step) ❏Possible Vendor lock-in: check out serverless.io to get an abstraction fmk ? ❏Testing → you must deploy on the platform everytime ❏Adapt DevOps practices: monitoring, deployment, versioning... FaaS constraints
  • 23. @adrienblind All major cloud vendors have products Alternatively you can deploy your own FaaS fmk You may leverage on existing CaaS and put value on top of it • Container encapsulation of the function • Kubernetes orchestration FaaS on public cloud vs FaaS on premises Amazon Google Azure OVH OpenWhisk OpenFaaS OracleFN
  • 24. @adrienblind ❏ OpenFaas: an example FaaS platform
  • 25. @adrienblind Introduction to OpenFaaS  Originally a cool hack built by docker captain Alex Ellis for Dockercon conference. A new, but real product now.  Enable to trigger functions enclosed in docker images. So: You can put any app/language, till there is a binary to start Works Linux and Windows OS On premises, on cloud, hybridated…  https://www.openfaas.com
  • 26. @adrienblind OpenFaas leverage on containers & orchestration Illustration from openfaas.com
  • 27. @adrienblind An example platform: introduction to OpenFaaS  API gateway Route inbound requests to your functions Collect metrics through Prometheus Autoscales modifying service replicas counts Offers a convenient UI + endpoints for the CLI
  • 28. @adrienblind An example platform: introduction to OpenFaaS  Function watchdog A tiny HTTP server, enclosed along with your app in the docker image Receive request from the API Gateway, triggers your app Provide args and catch result through STDIN/STDOUT Now, you know why you can enclose almost everything ;) Illustration from openfaas.comIllustration from openfaas.com
  • 29. @adrienblind $ faas-cli new helloworld --lang python The only line of code you’ll write in the function template print("Hello, World!") $ faas-cli build -f helloworld.yml $ faas-cli push -f helloworld.yml $ faas-cli deploy -f helloworld.yml $ curl http://faas.me/function/helloworld Hello, World! “Hello, World!” example With OpenFaaS
  • 30. @adrienblind Benefits  Leverage on your CaaS platform for serverless & traditional usecase at the same time  Leverage on top of Docker paradigms Universality of languages/app supported Easy CD/CI, automation  Do not reinvent the wheel 
  • 32. @adrienblind ❏ Serverless is an architecture trend, not just a new cloud service offer (aka FaaS) ❏ A serverless app is a mashup of value-added, managed services: aPaaS, xPaaS, FaaS… ❏ Fits today’s architecture stakes: cloud native apps, 12 factors... Serverless key aspects from Dev/App perspective Schema from martinfowler.com Devs gain a greater productivity, refocusing on business valuable code
  • 33. @adrienblind Ops gets more efficiency and cost-saving, offloading several concerns to platform ❏ You no longer manage infrastructure aspects directly: Auto- scalability & resilience provided by design ❏ Close but not fully NoOps (monitor app!) ❏ Cloud promise at its finest “resolution” On-demand, Elastic, Pay-Per-Use Serverless key aspects from Ops/platform perspective
  • 34. @adrienblind Focus on value & better TTM but support platform constraints More flexibility, more tuning capacity… but assume plumbing Functions Serverless key aspects ABSTRACT FOCUSINFRA Microservices Monoliths CaaS IaaS FaaS & PaaS
  • 35. @adrienblind ❏ Small microservices ❏ Stream processing ❏ Event-driven-programming ❏ Batch / Scheduled tasks ❏ May even replace some old compute grids ;) ❏ … Some usecases
  • 36. @adrienblind Finally, THE silver bullet? Highly valuable, but does not fit every usecases !
  • 38. @adrienblind IoT & Serverless ❏ IoT generates large loads of small & basic-to-process events, in huge quantity ❏ It calls for an event-driven programming approach ❏ … which fits well with the idea of simple, elementary functions of Serverless/FaaS computing Serverless + IoT
  • 39. @adrienblind Edge Computing & Serverless ❏ Google Trends graphs for “Serverless” & “Edge computing” terms ❏ Beware, scales are not the same however ;) ❏ Anyway, an interesting correlation to notice, isn’t it ?
  • 40. @adrienblind WTF with Edge computing? ❏ Offload computing tasks close to the data, at the boarder of the network / out from the cloud ❏ Example, precompute face recognition close to a camera, to avoid uploading the whole video flow to the cloud ❏ Particularly valuable in an IoT landscape CLOUD
  • 41. @adrienblind Major cloud vendors are building their strategy on top of the following triptic, to unleash their service from the cloud and provide an end-to-end offer For instance: Azure IoT Edge / Sphere, AWS Greengrass... Unleash from the cloud Serverless Architecture Edge Computing Internet Of Things
  • 42. @adrienblind There are 2 kind of spurs my friend. Those that do serverless, those that don’t.