Skip to content

Lambda runtime refresh period limit

0

As stated in the documentation: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.html

After the function and all extensions have completed, Lambda maintains the execution environment for some time in anticipation of another function invocation. However, Lambda terminates execution environments every few hours to allow for runtime updates and maintenance—even for functions that are invoked continuously. You should not assume that the execution environment will persist indefinitely.

I would like to ask what is the maximum window period expected for the execution environment to remain live, ie what is the maximum expected duration for "a few hours" ?

asked a year ago398 views
1 Answer
1
Accepted Answer

We do not publish these values because the can change based on different conditions and it is up to the service team to optimize them as needed. You can measure it yourself, but whatever values you get to, may change without any prior notice.

Why do you care about this?

AWS
EXPERT
answered a year ago
EXPERT
reviewed a year ago
EXPERT
reviewed a year ago
EXPERT
reviewed a year ago
  • The reason for asking is so that we may estimate the amount of storage used for the lambda, which may be filled up if the amount of storage is insufficiently provisioned for our usage. Thank you for the clarification.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.