Limitations

Lambda supports several language runtimes; for example, Node.js, Go, Java, Python, and C#. Each AWS Lambda has a number of limitations to cap the resources it may use per invocation. In terms of memory, the range of RAM supported for Lambda is between 128 MB to 3,008 MB with 64 MB, increments. The function will be automatically terminated if its memory usage is exceeded.

In terms of disk space, a Lambda function is allowed to use the /tmp directory up to 512 MB. This kind of disk volume is ephemeral, so it is expected to be wiped out after the Lambda has finished its work. Also, the number of file descriptors allowed in Lambda functions are limited to 1,024, while the number of processes and threads that could be forked within a single invocation is limited to 1,024 as well.

For each request, the size of the request body is capped at 6 MB for synchronous HTTP calls, and at 128 KB for asynchronous, event-triggered calls.

The most important aspect here is time limits. AWS Lambda allows a function to run no longer than 5 minutes (or 300 seconds). If the execution time exceeds 5 minutes, the function will be automatically killed.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset