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

Realtime apps - using Node.js with Rails

Realtime apps - using Node.js with Rails

Paweł Smoczyk

August 05, 2013
Tweet

Other Decks in Programming

Transcript

  1. Agenda • What we needed? • Our chosen stack (frameworks)

    • How it works • Why we did it this way? • Demo • Other simpler solutions
  2. What we needed? • Gameplay backend for realtime communication (sockets)

    • Admin interface for prizes management, reports, users etc. • Gameplay editor • Gameplay player (for browsers) • Mobile clients (not relevant)
  3. Why we did it this way? • Rails is GREAT!

    (crud, gems, reports, stats) • Writing everything in Node.js would be an asynchronous hell... • Node.js has great integration with Socket.IO • Almost no code reuse in EventMachine (asynchronous vs synchronous) • Node.js seems to be more reliable when it comes to sockets • Asynchronous code is cleaner in Node.js (with CoffeeScript)
  4. Other solutions • Faye (+ private pub) • Juggernaut •

    Slanger (self hosted Pusher) • 3rd party services (Pusher, PubNub and more...) • Meteor, Derby ???