使用Firebase时如何编写自定义代码(逻辑) [英] How to write custom code (logic) when using firebase

查看:120
本文介绍了使用Firebase时如何编写自定义代码(逻辑)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有类似于Firebase的解析云代码?

Is there is something similar to Parse Cloud Code for firebase?

推荐答案

如今没有.

但是他们正在开发Firebase触发器,它将满足需要,应该尽快发布. (尚无发布日期.)

But they are working on Firebase Triggers that will supply that need and should be released soon. (There is no release date yet).

您可以做的是创建一个运行后台任务并处理队列的nodejs服务器.为此,您可以使用 https://github.com/firebase/firebase-queue .它已经准备好与许多工人"一起工作,因此如果需要,可以轻松扩展. (创建更多的nodejs服务器).

What you can do, is create a nodejs server running a background task that process a queue. You can use https://github.com/firebase/firebase-queue for that. It is already prepared to work with many "workers" so it is easy to scale if you need. (Creating more nodejs servers).

这篇关于使用Firebase时如何编写自定义代码(逻辑)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆