Document Confidentiel – Interdit à la reproduction
Serverless Applications
Reduce your costs, improve your architecture
!1
Document Confidentiel – Interdit à la reproduction
!2
• Two different but overlapping areas:
▪ Backend as a Service (BaaS)
▪ Function as a Service (FaaS)
What is Serverless?
Serverless
Document Confidentiel – Interdit à la reproduction
!3
Backend as a Service
Serverless
Authorization Server
Content Server
Document Confidentiel – Interdit à la reproduction
!4
• Server-side logic written by the application developer
• Run in stateless compute containers
• Event-triggered
• Ephemeral (one or more invocation)
• Fully managed by a 3rd party
Functions as a Service
Serverless
Document Confidentiel – Interdit à la reproduction
!5
Functions as a Service: Example
Serverless
https://aws.amazon.com/lambda/
Document Confidentiel – Interdit à la reproduction
!6
Functions as a Service: Example
Serverless
https://aws.amazon.com/lambda/
Document Confidentiel – Interdit à la reproduction
!7
Demo
Serverless
API
Gateway
Create game
List games
Get game
Play
DynamoDB
Document Confidentiel – Interdit à la reproduction
!8
https://github.com/weber-gregoire/tic-tac-toe-serverless-demo
Document Confidentiel – Interdit à la reproduction
!9
Language and Framework agnostic
Serverless
Document Confidentiel – Interdit à la reproduction
!10
FaaS pricing
Serverless
AWS Lambda Google Functions Azure Functions
Requests $0.20 / million requests $0.40 / million requests $0.20 / million requests
Duration $0.00001667 / GB-second
$0.0000025 / GB-second
$0.0000100 / GHz-second
$0.000016 / GB-second
Free Tier
1 million requests / month
400,000 GB-s / month
2 million requests / month
400,000 GB-s / month
200,000 GHz-s / month
1 million requests / month
400,000 GB-s / month
Document Confidentiel – Interdit à la reproduction
!11
Serverless Architecture
Serverless
API Gateway
Purchase Function
Search Function
Client
(Browser)
Authorization Service
(Auth0)
Product Database
(Firebase)
Purchase Database
(Fauna)
Document Confidentiel – Interdit à la reproduction
ON RECRUTE !
Venez boire une bière avec nous :-)

Serverless Applications

  • 1.
    Document Confidentiel –Interdit à la reproduction Serverless Applications Reduce your costs, improve your architecture !1
  • 2.
    Document Confidentiel –Interdit à la reproduction !2 • Two different but overlapping areas: ▪ Backend as a Service (BaaS) ▪ Function as a Service (FaaS) What is Serverless? Serverless
  • 3.
    Document Confidentiel –Interdit à la reproduction !3 Backend as a Service Serverless Authorization Server Content Server
  • 4.
    Document Confidentiel –Interdit à la reproduction !4 • Server-side logic written by the application developer • Run in stateless compute containers • Event-triggered • Ephemeral (one or more invocation) • Fully managed by a 3rd party Functions as a Service Serverless
  • 5.
    Document Confidentiel –Interdit à la reproduction !5 Functions as a Service: Example Serverless https://aws.amazon.com/lambda/
  • 6.
    Document Confidentiel –Interdit à la reproduction !6 Functions as a Service: Example Serverless https://aws.amazon.com/lambda/
  • 7.
    Document Confidentiel –Interdit à la reproduction !7 Demo Serverless API Gateway Create game List games Get game Play DynamoDB
  • 8.
    Document Confidentiel –Interdit à la reproduction !8 https://github.com/weber-gregoire/tic-tac-toe-serverless-demo
  • 9.
    Document Confidentiel –Interdit à la reproduction !9 Language and Framework agnostic Serverless
  • 10.
    Document Confidentiel –Interdit à la reproduction !10 FaaS pricing Serverless AWS Lambda Google Functions Azure Functions Requests $0.20 / million requests $0.40 / million requests $0.20 / million requests Duration $0.00001667 / GB-second $0.0000025 / GB-second $0.0000100 / GHz-second $0.000016 / GB-second Free Tier 1 million requests / month 400,000 GB-s / month 2 million requests / month 400,000 GB-s / month 200,000 GHz-s / month 1 million requests / month 400,000 GB-s / month
  • 11.
    Document Confidentiel –Interdit à la reproduction !11 Serverless Architecture Serverless API Gateway Purchase Function Search Function Client (Browser) Authorization Service (Auth0) Product Database (Firebase) Purchase Database (Fauna)
  • 12.
    Document Confidentiel –Interdit à la reproduction ON RECRUTE ! Venez boire une bière avec nous :-)