AWS Community Day Kochi 2019 - Technical Session
Become Thanos of the Lambda Land: Wield all the Infinity Stones by Srushith R , Head of Engineering - KonfHub
5. Space Stone - Code Size
● Cold starts are directly proportional to the
deployment package size
● Never have unnecessary code/dependencies
6. Space Stone - Lambda Layers
● a ZIP archive that contains
libraries/dependencies
● Pull in additional code and content
● A function can use up to 5 layers at a time
● Helpful in reducing the code duplications
13. Time Stone - Time
Stats for lambda function that calculates 1000 times all prime numbers less than 1000000
128 mb 11.722965 sec $0.024628
256 mb 6.678945 sec $0.028035
512 mb 3.194954 sec $0.026830
1024 mb 1.456984 sec $0.024638
Stats courtesy: https://www.slideshare.net/AmazonWebServices/the-best-practices-and-hard-lessons-learned-of-
serverless-applications-aws-startup-day-boston-2018pdf-106324321
24. Reality Stone - Pragmatics
Serverless is easy to code, but harder to
design!
● Concurrency
● Latency caused by VPC
● Database constraints
25. Reality Stone - Pragmatics
You Can always over power cold
starts! 😉
26. Reality Stone - Pragmatics
● Violate SRP, if needed
● State management is against the design, but you
might eventually have to maintain states
● Design your application with Serverless in mind