Java RMI和RPC有什么区别? [英] What is the difference between Java RMI and RPC?

查看:125
本文介绍了Java RMI和RPC有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java RMI和RPC之间的实际区别是什么?

What is the actual difference between Java RMI and RPC?

我在某些地方读过RMI使用对象?

I have read in some places that RMI uses Objects?

推荐答案

RPC是基于C的,因此它具有结构化编程语义,另一方面,RMI是基于Java的技术,它是面向对象的。

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.

使用RPC,你可以只需调用导出到服务器的远程函数,在RMI中,您可以引用远程对象并调用它们的方法,还可以传递和返回可以分布在许多JVM实例中的更多远程对象引用,因此功能更强大。

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.

当需要开发比纯客户端 - 服务器架构更复杂的东西时,RMI脱颖而出。通过网络展开对象非常容易,使所有客户端无需明确地建立单独的连接即可进行通信。

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.

这篇关于Java RMI和RPC有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆