Firebase AfterSave function like Parse.com -
so using parse.com aftersave cloud code function keep list of recent posts relating specific location. reason recent post location without having search , order entire list of posts locations.
this nicely done in parse aftersave because didnt have worry clients exectuing command, made sense run in cloud. parse shutting down, i've decided migrate on firebase. there equivilant functionality in firebase or clients need maintaining list of recent posts?
thanks
original question re parse get latest record per field in parse.com js query
there no way run code on firebase's servers. have come less-direct mapping of cloud code new solution. running functionality on each client 1 option, running on cheap "bot"/server one.
i'll find few questions has been covered before , link them here:
- firebase , backend logic (recent question covers using nodejs server)
- how run server-side code in firebase?
- how use firebase handle automatic server-side calculations?
- firebase , indexing/search
- server side calculation using firebase (which leads 4 more questions this)
one thing keep in mind running server not type of "writing server" you're thinking of. of these act more "bot" interacts firebase in same way client-side code does. difference in case runs on environment control, can run elevated credentials.
Comments
Post a Comment