简体   繁体   English

AWS Lambdas在运行之间共享某些状态吗?

[英]Do AWS Lambdas share some state between runs?

The reason I'm asking that is that I have a lambda that doesn't do much except calling an API using python's requests library. 我要问的原因是,我有一个lambda,除了使用python的requests库调用API之外,没有做其他事情。
It runs fine every 15 minutes, but after some time(~1 day) it starts to get errors on every run. 它每15分钟运行一次,但是经过一段时间(〜1天)后,每次运行都会出现错误。 Every change to the code of lambda resets this cycle. 对lambda代码的每次更改都会重置此周期。

That made me curious. 那使我感到好奇。 Do AWS Lambdas share some state between runs? AWS Lambdas在运行之间共享某些状态吗?

As jarmod answered in the comments. 正如jarmod在评论中回答。 Lambdas do share some state between runs. Lambda在运行之间确实共享一些状态。
Here there is an article on the topic. 这里有一篇关于该主题的文章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM