gpt4 book ai didi

aws-lambda - 重新部署期间运行的 AWS lambda 会发生什么?

转载 作者:行者123 更新时间:2023-12-04 01:59:45 25 4
gpt4 key购买 nike

如果我在旧版本运行时部署新版本的 lambda 会怎样?

旧的被打断了吗?或者新的会被用来处理下一个事件,而旧的会像什么也没发生一样运行?

我找不到有关它的文档

最佳答案

我在 AWS 论坛上发布了同样的问题,并从 AWS 开发人员那里得到了这个回复

It's what you suggest: In-flight invocations complete, without code changes or interruption, using the version of the function that was in place at the time they began. You can potentially have a function change for asynchronous invocations that experience errors or throttles, because a retry will potentially allow a new version of the function to be hit on the next attempt. While we do not abort in-flight invocations, we will aggressively eliminate copies of the old code; this typically happens within a minute of a function being updated. That means that for up to about 5-6 minutes (the max duration of a function, plus a little bit) you can experience either/both versions in use; after that, you should see only the new(ly deployed) version executing.



https://forums.aws.amazon.com/thread.jspa?threadID=270926&tstart=0

关于aws-lambda - 重新部署期间运行的 AWS lambda 会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48169167/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com