From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Using Lambda best practices

Using Lambda best practices

- We could probably fill a few hours talking about Lambda best practices, but let's just touch on the highlights. Make sure you test the performance of your Lambda functions. Ensure that you tune the memory size requirements 'cause you are going to pay for that memory utilization while your function is executing. An increase in memory size is going to trigger an equivalent increase in CPU that is available to your function. Take a look at your memory utilization. It is available to you in CloudWatch Logs. Make sure you load test your Lambda function. Remember that making a network call if you are using that ephemeral disk space in the temp directory, if you do need to pull that data in and it takes time to do so, you're going to make sure you tune your time out for your Lambda function based on that amount of time, not the amount of time it takes to actually validate the local data is valid and fresh. Use very restrictive permissions when setting IAM policies. It is recommended to…

Contents