1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
at any time the lambda function is executing you have a limit of 1024 running threads/processes.
Any threads/processes that have not exited when the lambda execution is suspended at the end of an invocation will be resumed at the next invocation. They will therefore count against the limit.
Cheers,
Massimiliano
Relevant content
- asked 4 years ago
- Accepted Answerasked 4 years ago
- Accepted Answerasked 5 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
Thanks for the response Massimiliano. So the limit of 1024 is per instance and not per invocation right? If the same instance is used for 2 invocations, the limit of 1024 will be applicable instead of 2048. Please let me know if i am missing anything.
This is correct. Each instance has the 1024 limit. If you create a thread each invocation and you do not kill it, after ~1024 invocations in the same instance, you will fail to create the new thread.
Thanks Uri for clarification