In recent years, the uprise of the cloud has brought us a lot of new and disruptive technologies. Everybody is talking about SaaS, PaaS, IaaS and other sorts of aaS. In 2014, Amazon launched AWS Lambda as the pinnacle of the cloud computing. It allows developers to focus on code, without spending time on managing servers.
The goal of this talk is to introduce the serverless architecture style, but it will also contain demos (eg. using AWS Lambda and Google Cloud Functions) on how to make this style work. Expect Lambda functions in NodeJS, using DynamoDB, consuming other functions via the AWS API Gateway.
The talk will conclude with best practices on how to use these serverless functions.
8. THE SERVERLESS CLOUD
NO MORE SERVERS ?
▸ Obviously not
▸ Existence of servers is hidden
▸ Applications need to run on something
▸ But …
9. THE SERVERLESS CLOUD
NO MORE WORRIES ?
▸ Well ..
▸ Less server management
▸ No worries about security updates, scalability,
availability, …
10. THE SERVERLESS CLOUD
NO MORE OPS ?
▸ Well …
▸ Specialised, outsourced team
▸ Still need:
▸ Monitoring, deployment, security, networking,
debugging support, memory management, scaling,
configuration, …
▸ Opportunity for tooling!
13. THE SERVERLESS CLOUD
PAY PER EXECUTION
▸ No running servers
▸ Only consume server time, when executed
▸ Only pay when executed
▸ Small operational cost
14. THE SERVERLESS CLOUD
PAY PER EXECUTION - EXAMPLE (AWS)
REPORT RequestId: da9f321f-c5ff-4a6f-a84b-
e469cbca197d Duration: 0.61 ms Billed Duration:
100 ms Memory Size: 128 MB Max Memory Used: 16 MB
15. THE SERVERLESS CLOUD
SEAMLESS SCALING
▸ No risk of under- or over provisioning
▸ Short-lived “compute containers”
▸ Isolated from other functions
▸ Resources provided from function configuration
▸ Containers can be reused, but do not depend on it. It’s
the suppliers prerogative to create a new one
16. THE SERVERLESS CLOUD
STATELESS
▸ No state is stored between invocations
▸ To preserve state, use
▸ a database
▸ the file system
▸ cross-application cache
▸ …
30. THE SERVERLESS CLOUD
THE SERVERLESS FRAMEWORK
▸ CLI
▸ Scaffolding
▸ Best practices (grouping of functions)
▸ Lifecycle support (create, deploy, invoke, …)
▸ Soon to be supplier independent
▸ https://serverless.com