Firebase Cloud代码(后端逻辑) [英] Firebase Cloud Code (backend logic)

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

问题描述

我正在考虑使用Firebase,而不是Parse(因为它正在关闭),以满足我未来的移动后端需求。我真的很喜欢它的实时数据库方面,但它没有像Parse那样用Cloud Code轻松集成后端逻辑。有没有什么简单的方法来实现这个功能,或者即将推出?感谢。

:Firebase刚刚发布 Firebase云端函数,它允许您在Google服务器上运行JavaScript函数以响应Firebase事件(例如数据库更改,用户登录等等)。此外,Zapier不会与Firebase一起发挥出色,所以现在有更好的解决方案,并且可以使用 Firebase存储,Firebase现在为数据库,存储和推送需求提供单一解决方案。
$ b


Firebase不直接支持推送。但是,Firebase是一个动态的实时数据库,可以在数据发生变化时通知您的应用程序:添加,编辑或删除可能需要推送的应用程序。 直接支持推送数据(而不是内置功能),您可以使用 Zapier.com (或其他)来提供该功能。



限制对Firebase中数据的访问是通过 Firebase Rules ,它可以提供谁可以访问数据的灵活性(也可以保证数据的存储方式和数据存储方式)

与S3(文件存储)的接口也可以通过Zapier轻松完成,根据您的文件大小(<10M),您也可以将文件保存在Firebase中。


I am thinking about using Firebase instead of Parse (as that is shutting down) for my future mobile backend needs. I really like the realtime database aspect of it, but it doesn't have backend logic easily integrated like Parse did with Cloud Code. Is there any easy way to achieve this functionality, or will it be coming soon? Thanks.

解决方案

Update (March 10, 2017): Firebase just released Cloud Functions for Firebase, which allows you to run JavaScript functions on Google's servers in response to Firebase events (such as database changes, users signing in and much more). Additionally Zapier doesn't play all that nice with Firebase so there are better solutions at this point and with Firebase Storage, Firebase now offers a single solution for database, storage and push needs.


Firebase doesn't directly support push's. However, Firebase is a live and dynamic database that notifies your application whenever data changes: added, edited or removed which may address the need for push.

Additionally, if you need to directly support pushing of data (instead of or in addition to the built-in functionality) you can leverage Zapier.com (or others) to provide that functionality.

Restricting access to data in Firebase is done with Firebase Rules which offer flexibility in who can access data (and can also guarantee how and what data is stored

Interfacing with S3 (file storage) can also be pretty easily done through Zapier, and depending on your file size (<10M) you could also save files in Firebase.

这篇关于Firebase Cloud代码(后端逻辑)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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