title: Integrating a Thrift ruby server and a Ruby on Rails web app
body: <p>In my free time, I'm currently working on a web app written with Rails, and planning on writing "thick" clients for the desktop and various mobile platforms (who doesn't ?).</p>
  
  <p>I like the concept of Thrift for its multi-language support, and the concept of having one IDL file generating appropriate code for clients (DRY !)</p>
  
  <p>I was wondering what would be the best way / architecture to integrate the Thrift server and Rails.</p>
  
  <p>The only options that come to mind seems sup-optimal :</p>
  
  <ul>
  <li>call the wepapp APIs from the Thrift server to return data to the thick clients</li>
  <li>plug the thrift server to the DB of the Rails app and do its thing.</li>
  </ul>
  
  <p>For obvious reasons, this seems overkill, redundant and not flexible.</p>
  
  <p>Any suggestion ?</p>
  
  <p>thanks !</p>