1000 loop test:

testDirectAccountService:10     ---direct java call
testDirectAccountServiceR:20
testAccountService:40  ---factory.getBean(xxx)
testAccountServiceR:40
testRMIAccountService:7711 ---normal object's rmi service
testRMIAccountServiceR:1402  ---Remote object's rmi service
testAccountServiceHessian:4637 ---normal object's hessian service
testAccountServiceBurlap:3726 ---normal object's hessian service
testAccountServiceHttpinvoker:16744 ---normal object's hessian service

rev:1.1rc2
cpu:赛扬450
ram:312M

传统的Remote接口RMI Servie最快,也比较麻烦,需要stub.重大优点:支持回调
新推出的http invoker令人失望.
RMI包装调用普通对象成了鸡肋.
基于http+xml的burlap出人意料的比http+序列化的hessian要快.

看样,如果Romote接口被频繁调用推荐用传统RMI
如果希望基于http,不需要实现remote接口,推荐用caucho的burlap.

测试代码:
https://files.cnblogs.com/steeven/spring-remoting-test.rar

相关文章:

  • 2021-12-10
  • 2021-11-18
  • 2021-09-21
  • 2021-09-13
  • 2023-03-07
  • 2021-11-19
  • 2021-06-12
  • 2021-12-02
猜你喜欢
  • 2021-06-22
  • 2021-10-02
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-09-21
相关资源
相似解决方案