Firebase Cloud代码(后端逻辑) [英] Firebase Cloud Code (backend logic)
问题描述
$ 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屋!