What is the difference between Java RMI and RPC?

后端 未结 8 930
-上瘾入骨i
-上瘾入骨i 2020-12-12 10:00

What is the actual difference between Java RMI and RPC?

I have read in some places that RMI uses Objects?

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 10:43

    RMI or Remote Method Invokation is very similar to RPC or Remote Procedure call in that the client both send proxy objects (or stubs) to the server however the subtle difference is that client side RPC invokes FUNCTIONS through the proxy function and RMI invokes METHODS through the proxy function. RMI is considered slightly superior as it is an object-oriented version of RPC.

    From here.

    For more information and examples, have a look here.

提交回复
热议问题