Friday, April 14, 2017

What is difference between JavaScript Remoting and Remote Objects

JavaScript Remoting and Remote Objects offer similar features, and both are useful tools for creating dynamic, responsive pages. They have some important differences that you should consider before choosing which to use.

In general, Remote Objects is well-suited to pages that need to perform only simple Create-Read-Update-Delete, or “CRUD”, object access. JavaScript Remoting is better suited to pages that access higher-level server actions. Remote Objects lets you get up and running quickly without a lot of ceremony, while JavaScript Remoting is suited for more complex applications that require some up front API-style design work.

Visualforce Remote Objects:

1. Makes basic “CRUD” object access easy
2. Doesn’t require any Apex code
3. Supports minimal server-side application logic
4. Doesn’t provide automatic relationship traversals; you must look up related objects yourself

JavaScript Remoting:

1. Requires both JavaScript and Apex code
2. Supports complex server-side application logic
3. Handles complex object relationships better
4. Uses network connections (even) more efficiently

1 comment:

  1. Pinning of the Triple Spinning Double Edge Safety Razor - Titanium
    Pinning of titanium quartz meaning the 2021 ford escape titanium hybrid Triple Spinning Double Edge Safety Razor from Titanium Art for sale in Silver Dragon Online. 5.2 oz, 5.0 oz,  winnerwell titanium stove Rating: 4.6 · babyliss pro nano titanium ‎5 reviews · ‎$28.99 · ‎In stock ray ban titanium

    ReplyDelete