Google App Engine 中的触发功能涉及哪些成本?
What are the costs involved in triggering functions in Google App Engine?
我有兴趣在我的 Google 业务资料上发布评论时触发通知进入我的 Salesforce 系统。
使用 this article,它描述了能够通过使用 Google 的 App Engine 执行 Python 代码来调用 Salesforce API,我几乎没有什么可做的我自己编写代码,但我不熟悉 Google 在计费方面的工作方式。
基本上当 topic/subscription 被触发时,Google 将执行一个小的 python 脚本来调用 Salesforce API。我想知道这样做需要多少费用,或者我如何计算这将如何计费?
您一定指的是 Cloud Functions,因为那是本文中使用的产品(另外,Cloud Functions 具有 Pub/Sub 事件触发器)。 App Engine 和 Cloud Functions 都是无服务器产品,但它们有不同的用例。如果你想知道它们之间的区别,这里有一个 .
根据函数完成所需的时间、调用次数以及函数上配置的资源类型(CPU & 内存越高,成本)。如果您的函数在您调用函数时进行出站数据传输,也会产生额外费用。
您可以通过查看 GCP pricing calculator. Also, there are several products involved on the article (such as Secret Manager and Pub/Sub) so take note of adding these products on your estimate. For additional pricing details, check out the docs: https://cloud.google.com/functions/pricing
来估算您的每月费用
我还有另一个建议,虽然这不是关于调用函数时的定价,而是关于部署函数时的更多额外费用。来自 GCP docs:
When you deploy your function's source code to Cloud Functions, that source is stored in a Cloud Storage bucket. Cloud Build then automatically builds your code into a container image and pushes that image to Container Registry. Cloud Functions accesses this image when it needs to run the container to execute your function.
这适用于较新的运行时。如果您经常 deploy/update 一个函数,您的账单可能会很明显,因为 Cloud Build 必须重新构建这些图像,并且这些图像必须存储在 Cloud Storage 存储桶中。函数的部署需要时间,因此最好先在本地测试您的函数。一种解决方案是使用 Functions Framework.
我有兴趣在我的 Google 业务资料上发布评论时触发通知进入我的 Salesforce 系统。
使用 this article,它描述了能够通过使用 Google 的 App Engine 执行 Python 代码来调用 Salesforce API,我几乎没有什么可做的我自己编写代码,但我不熟悉 Google 在计费方面的工作方式。
基本上当 topic/subscription 被触发时,Google 将执行一个小的 python 脚本来调用 Salesforce API。我想知道这样做需要多少费用,或者我如何计算这将如何计费?
您一定指的是 Cloud Functions,因为那是本文中使用的产品(另外,Cloud Functions 具有 Pub/Sub 事件触发器)。 App Engine 和 Cloud Functions 都是无服务器产品,但它们有不同的用例。如果你想知道它们之间的区别,这里有一个
根据函数完成所需的时间、调用次数以及函数上配置的资源类型(CPU & 内存越高,成本)。如果您的函数在您调用函数时进行出站数据传输,也会产生额外费用。
您可以通过查看 GCP pricing calculator. Also, there are several products involved on the article (such as Secret Manager and Pub/Sub) so take note of adding these products on your estimate. For additional pricing details, check out the docs: https://cloud.google.com/functions/pricing
来估算您的每月费用我还有另一个建议,虽然这不是关于调用函数时的定价,而是关于部署函数时的更多额外费用。来自 GCP docs:
When you deploy your function's source code to Cloud Functions, that source is stored in a Cloud Storage bucket. Cloud Build then automatically builds your code into a container image and pushes that image to Container Registry. Cloud Functions accesses this image when it needs to run the container to execute your function.
这适用于较新的运行时。如果您经常 deploy/update 一个函数,您的账单可能会很明显,因为 Cloud Build 必须重新构建这些图像,并且这些图像必须存储在 Cloud Storage 存储桶中。函数的部署需要时间,因此最好先在本地测试您的函数。一种解决方案是使用 Functions Framework.