title: How to use Nodejs and Ruby on Rails together?
body: <p>I really like Ruby on Rails but I have also developed in node js. Currently I'm making a web app which has chat functionality that could have 30 people in it. For that I want to use node js.</p>
  
  <p>I have never done this,  I'm confused on how's traffic divided between app. How is the state shared between apps for example how would I share the user session will I have to hit the database for every request.</p>