Function configuration

The following are the best practices for function configuration:

  • You should do performance testing for Lambda functions by picking the optimum memory size configurations. A memory size increase will trigger an equivalent CPU increase in your function. You can determine the memory usage by viewing the AWS CloudWatch logs. In the logs, you can analyze the maximum memory used and determine if it has been over-provisioned or it needs more memory.
  • You should do load testing to determine the optimum timeout value. It will help you analyze how long the function will run to determine the dependency service. It is also important that your Lambda function makes network calls to the resources that might not handle Lambda scaling. ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.