Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rails Vs. The Client

Rails Vs. The Client

Two completely different ways have emerged for using Rails as the back end to a rich client-side JavaScript application.
* The 37Signals "Russian Doll" approach, where the server generally returns HTML to the client. This approach uses aggressive caching and a little bit of JavaScript glue to keep the application fast.
* The "Rails API" approach, where the server generally returns JSON to the client, and a JavaScript MVC framework handles the actual display.
Which of these will work for you?

Noel Rappin

April 30, 2013
Tweet

More Decks by Noel Rappin

Other Decks in Technology

Transcript

  1. 1. Key based cache expiration 2. Russian doll nested caching

    3. JavaScript decoration of shared caches 4. Turbolinks 5. Polling for JS Updates Wednesday, May 1, 13
  2. Build HTML in the browser using HTML Avoid ad-hoc JavaScript

    Avoid Backbone Stop hiding from JavaScript Wednesday, May 1, 13
  3. logging params parsing reloading security sessions sending files thread safety

    caching cookies url writing redirection renderers callbacks active record layouts Wednesday, May 1, 13
  4. You can make things more complex, you can't make them

    less complex Wednesday, May 1, 13