【问题标题】:Can I create triggers with Admin SDK in my own backend?我可以在自己的后端使用 Admin SDK 创建触发器吗?
【发布时间】:2020-11-11 07:21:10
【问题描述】:

我是 Firebase 的新手,正在学习它。使用 Cloud Functions,您可以为 Firestore (firestore events) 或身份验证 (auth events) 中发生的事件创建触发器侦听器。我可以在我自己的 nodejs 环境中使用 Firestore 或 Authentication 的 Admin SDK 类似地创建侦听器吗?

【问题讨论】:

    标签: firebase google-cloud-firestore firebase-authentication google-cloud-functions


    【解决方案1】:

    不,Cloud Functions 触发器仅适用于 Cloud Functions 后端,因为它们严重依赖 Google Cloud 基础架构才能高效工作。其他环境没有完全等价的。您当然可以使用提供的 nodejs Firestore SDK 来设置文档或查询侦听器,就像 Web 和移动客户端一样,但它的行为不像 Cloud Functions 触发器。

    【讨论】:

    • 非常感谢!
    猜你喜欢
    • 2012-06-10
    • 2011-10-13
    • 1970-01-01
    • 2013-01-26
    • 1970-01-01
    • 2011-08-26
    • 2011-04-08
    • 1970-01-01
    • 2020-08-09
    相关资源
    最近更新 更多