However, it looks like ForceTK just uses the REST API. Is there a similar library that transparently integrates Backbone.js with VisualForce Remote Objects instead of using the REST API (which consumes API calls against your limit)?
It seems fairly trivial to build this, but I just don't want to re-invent the wheel in case this has already been done. I can't seem to find anything though.
How will this be used?
We're using mostly default layouts and views for most objects now and want to rebuild optimized custom views and workflows, while leveraging our team's existing Backbone Marionette skills. A lot of our Salesforce code is rarely touched outside big changes, so using a familiar technology makes more sense.
- Don't consume API limits (unlike REST)
Best possible performance and data consistency
Not specific to VisualForce Remote Objects, but the app will eventually need to be as fast as possible and do multi-object changes transactionally. Maybe this means I'll end up writing a
@RemoteActionwith custom SOQL when I need to get nested objects in a single round trip or if I need to save all those objects at once, transactionally.
For complex multi-object scenarios, add CRUD would need to be re-implemented with a RemoteAction override anyways, but VisualForce Remote Objects still seems convenient for simpler single-object scenarios.