What is the difference between Java RMI and RPC?

后端 未结 8 919
-上瘾入骨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:34

    The main difference between RPC and RMI is that RMI involves objects. Instead of calling procedures remotely by use of a proxy function, we instead use a proxy object.

    There is greater transparency with RMI, namely due the exploitation of objects, references, inheritance, polymorphism, and exceptions as the technology is integrated into the language.

    RMI is also more advanced than RPC, allowing for dynamic invocation, where interfaces can change at runtime, and object adaption, which provides an additional layer of abstraction.

提交回复
热议问题