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

Using Node.js and Ruby on Rails for uber productivity

Using Node.js and Ruby on Rails for uber productivity

A lightning talk given at London Node.js User Group about using node.js and ruby on rails to build http://live.mpora.com in 6 days

Andrew Nesbitt

April 26, 2012
Tweet

More Decks by Andrew Nesbitt

Other Decks in Technology

Transcript

  1. OR

  2. OR

  3. THE TASK LIVE CHAT AND POLL WEB APP 6 DAYS

    3000 CONCURRENT USERS EC2 HOSTED
  4. PROXY ALL THE THINGS if process.env.NODE_ENV isnt 'production' http =

    require 'http' util = require 'util' app.use express.logger() app.all '/*', (req, res) -> options = { host: 'localhost', port: 3000, path: req.url headers: req.headers method: req.method } request = http.request options, (htmls) -> res.writeHead htmls.statusCode, htmls.headers util.pump htmls, res, (err) -> res.end() request.end(querystring.stringify(req.body))