google-app-engine - 谷歌 channel API 定价如何运作?

标签 google-app-engine channel-api

关闭。这个问题是off-topic .它目前不接受答案。












想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。


9年前关闭。







Improve this question




我在官方文档上读到,打开一个新 channel 将花费 0.01 美元。它将持续2个小时。

因此,如果我有 1000 个并发用户每天使用我的网站 2 小时。

总费用为每天 1000*$0.01 = 10$。

  • 带宽成本 + CPU 成本。正确的 ?

  • 他们也按小时收费吗?

    即如果并发用户每天使用站点 4 小时,则总成本将为 1000*0.01*2=$20 ?

    最佳答案

    每 100 个 channel 只需 0.01 美元,相当于每个 channel 0.0001 美元。您还可以将 channel token 的生命周期从 2 小时更改为 2 小时(您可以使其更大或更小),因此您可以有效地重用 channel token ,具体取决于它们在您的应用程序中的使用方式。

    因此,如果您将 channel token 的生命周期设置为 2 小时,则为
    '1000 * $0.0001 * 2 = $0.2` 仅用于创建 channel token 的成本。

    正如您在此处所指出的,其余成本将取决于您的带宽、CPU 和其他服务器端使用成本。

    看起来像 https://developers.google.com/appengine/docs/billing 中显示的计算也是错误的。

    关于google-app-engine - 谷歌 channel API 定价如何运作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12135744/

    相关文章:

    python - 防止在 GAE/memcache 上丢失更新/竞争条件的策略/模式

    google-app-engine - 通过减小实体大小来提高 App Engine 性能

    ajax - Wicket 是否会妨碍 SEO 或搜索引擎的抓取能力?

    java - 黑客使 ReflectionFactory 工作(重新打包)

    java - onmessage Google App Engine (Java) channel API

    javascript - RTCDataChannel 与 Google Channel API

    java - 读取远程文件的内容

    google-app-engine - 使用高复制数据存储 + NDB 进行写入/读取

    google-app-engine - channel api : persistent disconnections and connections

    javascript - 适用于 Android 和 iOS 的 Google channel API