AWS Lambda:语言更改是否会影响 RAM(内存)使用或服务成本?
AWS Lambda: Does Language change affect RAM(Memory) Usage or cost of the service?
AWS Lambda 有 2 种不同的编程语言选项,正如您所知,在我们谈论 Lambda 时,RAM(内存)的使用非常重要。
Node.js的内存占用和Python的内存占用有什么不同吗?
如果我们使用它时有类似的东西,它将更具成本效益,我正在考虑只使用该语言。也可能 Node.js 的执行速度比 Python 快得多,并且由于 RAM 的缺点可能不是问题。
Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms. The price depends on the amount of memory you allocate to your function. You are charged [=10=].00001667 for every GB-second used.
语言运行时的 RAM 使用不会直接影响定价。
您在定义 Lambda 函数时静态 选择 RAM,这确实对定价有影响,但它一次 ],并且所有调用都获得相同的 RAM 量,并相应地花费。
但是 - 根据调用的 持续时间,您需要支付更多费用。
我 期望 亚马逊不会向您收取 bootstrap 环境所需的时间 - 定价页面确实显示 "from the time your code begins executing until it returns".
(当然,这是推测性的,但收取间接费用看起来不公平)
不同的语言和运行时可以有 different execution times,即使对于相同(或惯用的)程序也是如此。
这种速度差异可以而且将会影响价格。
AWS Lambda 有 2 种不同的编程语言选项,正如您所知,在我们谈论 Lambda 时,RAM(内存)的使用非常重要。
Node.js的内存占用和Python的内存占用有什么不同吗?
如果我们使用它时有类似的东西,它将更具成本效益,我正在考虑只使用该语言。也可能 Node.js 的执行速度比 Python 快得多,并且由于 RAM 的缺点可能不是问题。
Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms. The price depends on the amount of memory you allocate to your function. You are charged [=10=].00001667 for every GB-second used.
语言运行时的 RAM 使用不会直接影响定价。
您在定义 Lambda 函数时静态 选择 RAM,这确实对定价有影响,但它一次 ],并且所有调用都获得相同的 RAM 量,并相应地花费。
但是 - 根据调用的 持续时间,您需要支付更多费用。
我 期望 亚马逊不会向您收取 bootstrap 环境所需的时间 - 定价页面确实显示 "from the time your code begins executing until it returns".
(当然,这是推测性的,但收取间接费用看起来不公平)
不同的语言和运行时可以有 different execution times,即使对于相同(或惯用的)程序也是如此。
这种速度差异可以而且将会影响价格。