Serverless Architecture
-
Upload
michal-kurzeja -
Category
Technology
-
view
212 -
download
0
Transcript of Serverless Architecture
Serverless architecture
Michał KurzejaCTO w Accesto
PHP/Symfony
Wrocław Symfony Group
ITCorner tech meetup
Function as a service
“Serverless is a new cloud
computing trend that changes the way you think about writing and
maintaining applications.
auth0.com
“Deploy your applications as
independent functions, that respond to events, charge you only
when they run, and scale automatically.
serverless.com
“Serverless architectures refer to
(..) custom code that's run in ephemeral containers.
martinfowler.com
BaaSFaaS
FaaS
Trigger
External service
Function
No Disk
Access*almost
Statelessand share-nothing
Emphemeral
Easy Pricing Model
“GB-seconds”
= 890h
2.1mln requests
https://alestic.com/2016/12/aws-invoice-example/
https://www.trek10.com/blog/lambda-cost/
Amazon Ecosystem
◎API Gateway◎DynamoDB◎S3◎SQS ◎CloudFront◎Cognito◎...
Architectureexample architectural use-cases
Example
curl https://XXX.amazonaws.com/prod/helloworldHello from Lambda
curl https://XXX.amazonaws.com/prod/helloworld -d '{"name": "Michal"}' -XPOSTHello from Lambda to Michal
Ecosystemframeworks, libraries, implementations
Apex
Serverless
Claudia.js
OpenWhisk
Iron.io
Benefits
Easy to learn
Lower costs
Easy to scale
Reduced time to market
Microservice way
Fits into iterations
Drawbacks
Vendor lock-in*
Multitenancy
A bit harder to test locally
Communication overhead
Cold start
Not always cost-efficient
Good use-cases
Mostly static pageseven e-commerce ones
Data stream analysisExample: logs
Processing uploadsmaking thumbnails etc.
Actions users pay forPreparing watermarked ebook
My opinion?
What do YOU think?
Thanks!