What is the difference between Java RMI and RPC?

后端 未结 8 909
-上瘾入骨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.

    0 讨论(0)
  • 2020-12-12 10:44

    The difference between RMI and RPC is that:

    • RMI as the name indicates Remote Method Invoking: it invokes a method or an object. And
    • RPC it invokes a function.
    0 讨论(0)
提交回复
热议问题