rmi rpc restful soa 區別

rmi rpc restful soa 區別 java

   

rmi vs rpc

   

參考文檔:http://stackoverflow.com/questions/2728495/what-is-the-difference-between-java-rmi-and-rpc restful

RPC is C based, and as such it has structured programming semantics, on the other side, RMI is a Java based technology and it's object oriented. ide

With RPC you can just call remote functions exported into a server, in RMI you can have references to remote objects and invoke their methods, and also pass and return more remote object references that can be distributed among many JVM instances, so it's much more powerful. spa

RMI stands out when the need to develop something more complex than a pure client-server architecture arises. It's very easy to spread out objects over a network enabling all the clients to communicate without having to stablish individual connections explicitly. .net

RMI as the name indicates Remote Method Invoking: it invokes a method or an object. And rest

RPC it invokes a function. server

   

rmi vs restful

參考文檔http://blog.csdn.net/shan9liang/article/details/8995023blog

http://blog.csdn.net/tekkenvs11/article/details/6280896ci

soap vs rest

   

參考文檔:http://stackoverflow.com/questions/19884295/soap-vs-rest-differences rem

SOAP and REST can't be compared directly, since the first is a protocol (or at least tries to be) and the second is an architectural style. This is probably one of the sources of confusion around it, since people tend to call REST any HTTP API that isn't SOAP.

相關文章
相關標籤/搜索