【问题标题】:Using firebase cloud functions vs. GCP Cloud functions for a firestore trigger将 firebase 云函数与 GCP 云函数用于 Firestore 触发器
【发布时间】:2021-02-13 05:11:09
【问题描述】:

我正在 React 中构建一个使用 Firebase Auth 和 Firestore 的应用程序。我现在需要开始使用条带处理付款。我想用云功能和 Firestore 来做到这一点。我的问题来了,我想在哪里得到一些建议。

我有使用 Google Cloud Platform 云功能的经验,但没有使用 Firebase 云功能。

我正在研究学习 Firebase 云函数 - 但是我刚刚看到 GCP 函数也支持 Firestore 触发器(在 BETA 版本中)。我见过类似的线程询问这是否可能,我知道这是可能的,但我只是想知道仅使用 GCP 云函数而不是 firebase 云函数的缺点是什么?

【问题讨论】:

    标签: firebase google-cloud-platform google-cloud-firestore google-cloud-functions stripe-payments


    【解决方案1】:

    它们本质上是相同的产品,具有相同的性能和功能。 Firebase 只是在 Google Cloud Functions 之上添加了 SDK 和 API,使移动应用程序开发人员更容易使用。您可以选择您喜欢的工具集。这将是一个实验和研究的问题,以确定最适合您的情况。许多人更喜欢 Firebase 工具,因为它们为您提供了已更改文档的强类型 API 描述,但它并没有真正为核心 Cloud Functions 产品添加任何额外功能。

    如果您想详细了解 Firebase 和 Google Cloud 之间关于 Cloud Functions 主题的关系,read this post

    【讨论】:

    猜你喜欢
    • 2018-09-14
    • 2018-06-01
    • 2020-01-20
    • 1970-01-01
    • 2019-08-28
    • 1970-01-01
    • 1970-01-01
    • 2023-03-31
    • 2019-01-18
    相关资源
    最近更新 更多