PHP-Java Bridge与RESTful WebService:关于性能,哪个更好? [英] PHP-Java Bridge vs RESTful WebService : With regards to performance which is better?

查看:105
本文介绍了PHP-Java Bridge与RESTful WebService:关于性能,哪个更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个drupal(PHP)CMS系统,该系统很快就超出了其原始要求.此后已构建了Java后端,该后端现在可以执行许多功能.这两个使用RESTful WS的通讯.两个系统都在同一台服务器上运行,因此这是一个本地WS调用.即使这是本地电话,也感觉很笨拙,我觉得我们不应该真正使用Web服务进行这种集成.

We have a drupal (PHP) CMS system, which quickly out grew its original requirements. A Java backend has since been built, which now does much of the functionality. These two comms using RESTful WS. Both systems run on the same server, so this is a local WS call. Even though this is a local call, it feels too clunky, and I feel that we shouldn't really be using web services for this integration.

我相信php-java桥的性能会更好(http://php-java-bridge.sourceforge.net/pjb/),因为它们声称比通过SOAP进行本地RPC调用快50倍.我看到php-java桥使用XML流,所以我认为性能将类似于XML-RPC.

I believe a php-java bridge would be better performing (http://php-java-bridge.sourceforge.net/pjb/) as they claim to be 50 times faster than a local RPC call via SOAP. I see that the php-java bridge uses XML streaming so I would have thought that the performance would be similar to XML-RPC.

我知道回答这个问题的最佳方法是编写POC,但是由于时间限制(紧迫的期限),这是不可能的.所以我的问题是,是否有人对这些技术进行了基准测试,或者有人可以提供有关其在这两种技术方面的经验的见解.特别是与性能有关的信息.

I know the best way to answer this would be to write a POC, but this is not possible due to time constraints (tight deadlines). So my question is, has anyone benchmarked these or can anyone provide an insight about their experience relating to the two technologies. In particular, information relating to performance.

谢谢.

推荐答案

我也遇到过类似的情况,但是最终决定使用JSON和REST而不是php-java桥来实现. REST所带来的降低的复杂性和对服务的更多重用超过了对获得更好性能的需求.

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.

这篇关于PHP-Java Bridge与RESTful WebService:关于性能,哪个更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆