5. Agenda
What is Serverless
What is Serverless cold start
How NodeJS web frameworks affect cold start
Testing methodology
Results
Insights
Conclusion
6. What is Serverless
Cloud-computing execution model in which the cloud
provider runs the server, and dynamically manages the
allocation of machine resources.
Pricing is based on the actual amount of resources
consumed by an application, rather than on pre-
purchased units of capacity Wikipedia
9. AWS Lambda cold start
Start a container
Sometimes need to start an ec2
Uses Firecracker behind the
scenes
10. AWS Lambda cold start
Download and extract your code
Your code is zipped and saved in S3
11. AWS Lambda cold start
Load into memory and initialise
Your Lambda is ready to accept
its input
12. To summarise the process
Start a container
Download your code
Load the code into memory and initialise it (require
stuff…)
Lambda is ready to accept input
21. What we found in Lumigo
We found out in Lumigo that initialisation time affects
your cold start more than package size
>
22. Insights
Adding web frameworks
adds latency to your code
start
Restify, which is almost as
large as express-bigger, is
much slower due to
initialisation time
23. Conclusion
Web frameworks ease transition to Serverless
Using them will incur cold start penalty
Package size is not the main culprit in cold start
times
Focus on the initialisation time