【问题标题】:Do I get billed for each http polling request when using ApolloServer on Firebase Cloud Functions?在 Firebase Cloud Functions 上使用 ApolloServer 时,是否会为每个 http 轮询请求付费?
【发布时间】:2022-02-14 23:05:25
【问题描述】:

我想将 GraphQL 服务器 (ApolloServer) 实例部署到 GCP/Firebase Cloud Functions。 使用 Firebase Functions Emulator 在本地测试我的函数时 我注意到每次打开 GraphiQL 界面时,我的终端都会开始记录 函数执行 - 我猜这完全是因为 GraphQL 中的轮询机制。

有谁知道这是否也意味着我要为每个轮询请求支付 1 次函数执行费用?

【问题讨论】:

    标签: firebase graphql google-cloud-functions apollo-server


    【解决方案1】:

    如果您的 GraphQL 实施轮询 Cloud Functions,那么在部署 Cloud Functions 后,您确实需要为每次调用 Cloud Functions 付费。调用 Cloud Functions 模拟器永远不会收费。

    【讨论】:

      猜你喜欢
      • 2021-09-03
      • 2019-05-16
      • 1970-01-01
      • 2020-10-30
      • 2017-09-15
      • 2018-02-17
      • 1970-01-01
      • 2018-08-13
      • 1970-01-01
      相关资源
      最近更新 更多