java - 求推荐分布式方案
大家讲道理
大家讲道理 2017-04-17 17:07:45
0
1
624

网站和APP dao和service层都一样,只是controller层不一样。
求推荐分布式技术解决方案;
我知道的有
1、jdk自带的 RMI, 麻烦的就是要写接口和bean生成jar包给客户端再调用
2、用rest http相当于再写一个接口,所有接口都需要修改也有点麻烦,

有其他更好的方案么?或者框架?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
PHPzhong

You can look at Facebook’s thrift or Taobao’s dubbo, which are of course similar to rmi.
If you don’t have to pursue distribution, the simplest thing is to provide the service as a separate jar package to different web projects.

In fact, no matter how you do it in the controller, you only need to do the operations of verifying parameters and combining/encapsulating results

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template