Function Memory - Serverless Architectures with AWS Lambda

Function Memory

To define the resources allocated to your executing Lambda function, you’re provided with a single dial to increase/decrease function resources: memory/RAM. You can allocate 128 MB of RAM up to 1.5 GB of RAM to your Lambda function. Not only will this dictate the amount of memory available to your function code during execution, but the same dial will also influence the CPU and network resources available to your function.

Selecting the appropriate memory allocation is a very important step when optimizing the price and performance of any Lambda function. Please review the best practices later in this whitepaper for more specifics on optimizing performance.