3 ms·
I think it's perfectly doable - but it will require custom validation to run on the server. I like that Meteor embraces that reality, although their implementat
by shykes 15y ago
I think it's perfectly doable - but it will require custom validation to run on the server. I like that Meteor embraces that reality, although their implementation is not complete nor documented.
The Firebase/Parse/Stackmob approach of API-driven ACLs and "zero code in the backend" adequately covers certain common use cases, but completely breaks down when you need something more custom - and, inevitably, you will. Sooner or later these guys will need to run your code on their servers (or their API will expose a dsl for querying/transformation/acl complex enough to be called "code").
I do like that mayop100 mentions they'll "make it easy to hook up your own servers too", although I'm not sure what that means in practice?
- mayop100 15y agoThe basic idea for hooking up a server, is that the server will act like any other client, except it will authenticate with an API key and have full read / write access. This server can perform data validation for you. All you need to do is have a "unvalidated" bucket where clients put their data, and then have your server have callbacks that validate that data and copy it over into the "validated" bucket (where clients do not have write access) when everything checks out. This would need to be in concert with ACL's to prevent clients from writing in each other's buckets. Note that you still get the major advantages of Firebase -- simpler code, easy scaling, data accessibility, and real-time, even though you're running a server.
- jamroom 15y agoCheck out Trestle: https://www.trestleapp.com/services/custom https://www.trestleapp.com/services/custom we're already running custom NodeJS code for our customers - along with the 14 other API services we have (including our Chain server) you can do a ton. It all is tied in to our ACL's too, so your custom service works the same as any other API service. We're also super happy to run it on DotCloud too ;)
- shykes 15y agoNice! I'll check it out.