Right-Sizing - Serverless Architectures with AWS Lambda


As covered in Performance Efficiency, it’s an anti-pattern to assume that the smallest resource size available to your function will provide the lowest total cost. If your function’s resource size is too small, you could pay more due to a longer execution time than if more resources were available that allowed your function to complete more quickly.

See the section Choosing the Optimal Memory Size for more details.