title: Using Java in backend of a web application & php in the middleware
body: <p>I am looking forward to developing a social web application using Java in backend (to support operations from Cassandra database) &amp; php in the middleware. Is this kind of approach beneficial ? Any downsides of the above strategy ? </p>
  
  <p>Are there other better options to ensure a scalable architecture ?</p>
  
  <p>Edit : What do you guys think about doing it completely in JAVA (J2EE)?</p>