title: Which is better Thrift vs RESTful services?
body: <p>I am in a juncture to decide between Thrift and using plain RESTful services between client and server. Moreover I am stuck with whether to use socket for communication or just go with webservice as is considering its long and proven track record. Thrift on the other hand is unknown with less documentation and moreover port is needed to be opened. Kind of app I am having is a website wih php(client) and java (service layer) and for this integration I am trying to assess Thrift/REST.</p>
  
  <ol>
  <li><p>What would be challenge in using socket/ports vs 8080?</p></li>
  <li><p>Will there be any performance benefit in any of the approaches?</p></li>
  <li><p>Is  there be any other option also?</p></li>
  </ol>
  
  <p>Thanks</p>