serverless architecture
TRANSCRIPT
![Page 1: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/1.jpg)
Serverless architecture
![Page 2: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/2.jpg)
Michał KurzejaCTO w Accesto
PHP/Symfony
Wrocław Symfony Group
ITCorner tech meetup
![Page 3: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/3.jpg)
Function as a service
![Page 4: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/4.jpg)
![Page 5: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/5.jpg)
![Page 6: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/6.jpg)
“Serverless is a new cloud
computing trend that changes the way you think about writing and
maintaining applications.
auth0.com
![Page 7: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/7.jpg)
“Deploy your applications as
independent functions, that respond to events, charge you only
when they run, and scale automatically.
serverless.com
![Page 8: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/8.jpg)
“Serverless architectures refer to
(..) custom code that's run in ephemeral containers.
martinfowler.com
![Page 9: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/9.jpg)
BaaSFaaS
![Page 10: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/10.jpg)
FaaS
Trigger
External service
Function
![Page 11: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/11.jpg)
No Disk
Access*almost
![Page 12: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/12.jpg)
Statelessand share-nothing
![Page 13: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/13.jpg)
Emphemeral
![Page 14: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/14.jpg)
Easy Pricing Model
“GB-seconds”
![Page 15: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/15.jpg)
= 890h
![Page 16: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/16.jpg)
2.1mln requests
https://alestic.com/2016/12/aws-invoice-example/
https://www.trek10.com/blog/lambda-cost/
![Page 17: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/17.jpg)
Amazon Ecosystem
◎API Gateway◎DynamoDB◎S3◎SQS ◎CloudFront◎Cognito◎...
![Page 18: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/18.jpg)
Architectureexample architectural use-cases
![Page 19: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/19.jpg)
![Page 20: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/20.jpg)
![Page 21: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/21.jpg)
![Page 22: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/22.jpg)
![Page 23: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/23.jpg)
![Page 24: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/24.jpg)
![Page 25: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/25.jpg)
Example
![Page 26: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/26.jpg)
![Page 27: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/27.jpg)
![Page 28: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/28.jpg)
![Page 29: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/29.jpg)
curl https://XXX.amazonaws.com/prod/helloworldHello from Lambda
curl https://XXX.amazonaws.com/prod/helloworld -d '{"name": "Michal"}' -XPOSTHello from Lambda to Michal
![Page 30: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/30.jpg)
Ecosystemframeworks, libraries, implementations
![Page 31: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/31.jpg)
Apex
![Page 32: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/32.jpg)
Serverless
![Page 33: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/33.jpg)
Claudia.js
![Page 34: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/34.jpg)
![Page 35: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/35.jpg)
![Page 36: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/36.jpg)
OpenWhisk
![Page 37: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/37.jpg)
Iron.io
![Page 38: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/38.jpg)
Benefits
Easy to learn
Lower costs
Easy to scale
Reduced time to market
Microservice way
Fits into iterations
![Page 39: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/39.jpg)
Drawbacks
Vendor lock-in*
Multitenancy
A bit harder to test locally
Communication overhead
Cold start
Not always cost-efficient
![Page 40: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/40.jpg)
Good use-cases
![Page 41: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/41.jpg)
Mostly static pageseven e-commerce ones
![Page 42: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/42.jpg)
Data stream analysisExample: logs
![Page 43: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/43.jpg)
Processing uploadsmaking thumbnails etc.
![Page 44: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/44.jpg)
Actions users pay forPreparing watermarked ebook
![Page 45: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/45.jpg)
My opinion?
![Page 46: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/46.jpg)
What do YOU think?
![Page 47: Serverless Architecture](https://reader035.vdocuments.pub/reader035/viewer/2022081605/58ec9f401a28abc36d8b45a7/html5/thumbnails/47.jpg)
Thanks!