PHP-Java Bridge vs RESTful WebService : With regards to performance which is better?

↘锁芯ラ 提交于 2019-12-06 13:57:06

I have had a similar situation, but ultimately decided to implement with JSON and REST rather than the php-java bridge. The reduced complexity and greater re-use of services exposed as REST outweighed the need for better performance.

Yair Zaslavsky

Some thoughts

  1. Does your RESTFul WS expose resources in JSON format? JSon format is lighter and faster to process than XML
  2. Bare in mind that SOAP undergoes validation via a given XSD, maybe this framework is not using XSD to perform validation (which might be risky)
  3. The solution above conforms to JSR 223 which is the Script Engine JSR - this is good - as if needed you will be able to replace it with other vendors
  4. I see that it uses a fast CGI HTTP server - from what I know this is a highly scalable with very good performance of CGI.

Sounds like this can be a good candidate - the protocol is optimized comparing with SOAP (I have experience with SOAP).

To conclude - if your RESTFul web service cannot expose SOAP - I would consider this approach, however you need to verify that drupal works with FastCGI.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!