Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
Serverless - Lunch&Learn CleverToday - Mars 2017
-
Upload
brice-argenson -
Category
Technology
-
view
76 -
download
0
Transcript of Serverless - Lunch&Learn CleverToday - Mars 2017
![Page 1: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/1.jpg)
CleverToday
Serverless Architecture
![Page 2: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/2.jpg)
CleverToday
![Page 3: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/3.jpg)
CleverToday
Cloud Computing - Reminders
![Page 4: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/4.jpg)
CleverToday
What is the Cloud?
“Cloud computing is on-demand access to virtualized IT resources that are housed outside of your own data center, shared by others, simple to use, paid for via
subscription, and accessed over the Web.”
- John Foley, Information Week IaaS
![Page 5: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/5.jpg)
CleverToday
What is the Cloud?
“Cloud computing is on-demand access to virtualized IT resources that are housed outside of your own data center, shared by others, simple to use, paid for via
subscription, and accessed over the Web.”
- John Foley, Information Week IaaS
![Page 6: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/6.jpg)
CleverToday
Different types of Cloud
![Page 7: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/7.jpg)
CleverToday
Serverless
![Page 8: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/8.jpg)
CleverToday
Hot topic
![Page 9: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/9.jpg)
CleverToday
What is Serverless?
• Two different but overlapping areas:
• Backend as a Service (BaaS)
• Function as a Service (FaaS)
![Page 10: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/10.jpg)
CleverToday
Backend as a Service
• 3rd party applications / services in the cloud to manage server-side logic and state
• Application using them were the first called Serverless
• Rich client applications (SPA or mobile apps)
![Page 11: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/11.jpg)
CleverToday
(Mobile) Backend as a Service: Example
![Page 12: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/12.jpg)
CleverToday
Backend as a Service: Example
![Page 13: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/13.jpg)
CleverToday
Functions as a Service• 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
![Page 14: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/14.jpg)
CleverToday
Functions as a Service: Example
https://aws.amazon.com/lambda/
![Page 15: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/15.jpg)
CleverToday
Functions as a Service: Example
https://aws.amazon.com/lambda/
![Page 16: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/16.jpg)
CleverToday
Functions as a Service: Example
https://aws.amazon.com/lambda/
![Page 17: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/17.jpg)
CleverToday
Language and Framework agnostic
![Page 18: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/18.jpg)
CleverToday
FaaS vs PaaS
![Page 19: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/19.jpg)
CleverToday
FaaS vs PaaS
![Page 20: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/20.jpg)
CleverToday
FaaS pricing
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 / month400,000 GB-s / month
2 million requests / month400,000 GB-s / month200,000 GHz-s / month
1 million requests / month400,000 GB-s / month
![Page 21: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/21.jpg)
CleverToday
Traditional 3-tier client-orientedarchitecture
Client(Browser) PetStore
Server
Database
![Page 22: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/22.jpg)
CleverToday
Traditional 3-tier client-orientedarchitecture
Client(Browser)
PetStoreServer
Database
![Page 23: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/23.jpg)
CleverToday
Serverless Architecture
API Gateway
Purchase Function
Search Function
Client(Browser)
Authorization Service(Auth0)
Product Database(Firebase)
Purchase Database(Fauna)
![Page 24: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/24.jpg)
CleverToday
#NoOps?
• Serverless might mean ‘No internal Sys Admin’
• But ops are still recommended for:• Monitoring• Deployments• Security• And everything they never have time to focus on :-)
![Page 25: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/25.jpg)
CleverToday
Benefits
![Page 26: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/26.jpg)
CleverToday
Reduced operational cost• Economy of scale
• BaaS:• Less development• Less infrastructure• Less ops
• FaaS:• Only pay for the compute that you need!
![Page 27: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/27.jpg)
CleverToday
Easier Operational Management
• Scaling benefits
• Reduced packaging and deployment complexity
• Time to market / experimentation
![Page 28: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/28.jpg)
CleverToday
Drawbacks
![Page 29: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/29.jpg)
CleverToday
The inherent ones• Vendor control
• Multitenancy problems
• Vendor lock-in
• Security concerns
• FaaS are stateless
![Page 30: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/30.jpg)
CleverToday
The implementation ones
• Execution duration
• Testing
• Monitoring / Debugging
• Lack of tools and experience
![Page 31: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/31.jpg)
CleverToday
Serverless Framework• Command-line tool providing:
• Scaffolding
• Workflow automation
• Plugin system
• Easy deployment to most of the FaaS services
![Page 32: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/32.jpg)
CleverToday
Conclusion
![Page 33: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/33.jpg)
CleverToday
Conclusion• Serverless systems are still in their infancy
• Push a better thinking of the architecture• Micro-services!
• Reduce time-to-market
• Ready for production?
• Apache OpenWhisk (by IBM)!
![Page 34: Serverless - Lunch&Learn CleverToday - Mars 2017](https://reader031.fdocuments.in/reader031/viewer/2022022413/58ec98e81a28abc63c8b45a7/html5/thumbnails/34.jpg)
CleverToday
Thank you!