climate-cooperative/home-energy-assessment-database

Right Size Lambda

Closed this issue · 0 comments

Lambdas performance is is dictated by its memory allocation. This is a setting defined in the tf module with memory_size attribute. Default is 128MB.

By Right Sizing this memory, can find a balance of performance and price. faster lambdas mean less cold/hot/warm response times. Lambda pricing is partially number of reqs, but also by execution time. Increasing mem decreases execution time.

Technical Notes:

https://s3.amazonaws.com/lambda-tools/pricing-calculator.html

Capture metrics regarding to plug into calculator and change mem to see what fits best (cheapest)