远程过程调用和 Web 服务有什么区别? [英] What is the difference between remote procedure call and web service?

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

问题描述

RPC 和 Web Service 有明确的定义吗?快速维基百科搜索显示:

Is there any clear definition of RPC and Web Service? A quick wikipedia search shows:

RPC:远程过程调用 (RPC) 是一个进程间通信技术允许计算机程序导致子程序或过程在另一个地址空间执行(通常在另一台计算机上共享网络)没有程序员为此明确编码细节远程交互.

RPC: Remote procedure call (RPC) is an Inter-process communication technology that allows a computer program to cause a subroutine or procedure to execute in another address space (commonly on another computer on a shared network) without the programmer explicitly coding the details for this remote interaction.

Web 服务:Web 服务是典型的应用程序设计接口 (API) 或 Web API通过超文本传输​​访问协议并在远程执行托管所请求服务的系统.Web 服务往往属于两大阵营:大型网络服务[1]和RESTful 网络服务.

Web Service: Web services are typically application programming interfaces (API) or web APIs that are accessed via Hypertext Transfer Protocol and executed on a remote system hosting the requested services. Web services tend to fall into one of two camps: Big Web Services[1] and RESTful Web Services.

我不太清楚这两件事之间的真正区别是什么.似乎一件事可以属于 RPC,同时也是一种 Web 服务.

I am not quite clear what the real difference between the two things. It seems that one thing could belong to RPC and is kind of web service at the same time.

Web Service 是 RPC 的更高级别表示吗?

Is Web Service a higher level representation of RPC?

推荐答案

Web Service 是不是更高级别的RPC 的表示?

Is Web Service a higher level representation of RPC?

是的,是的.Web 服务是 RPC 的特定实现.在最底层,Web Service 使用 HTTP 协议连接到 Socket,以协商发送在远程空间(远程空间可以是同一台计算机)中执行的有效负载.所有这些远程调用抽象的核心都是 RPC.

Yes, it is. A web service is a specific implementation of RPC. At its lowest level, Web Service connects to the Socket, using the HTTP protocol, to negotiate sending a payload that is executed in a remote space (remote space can be the same computer). All these remote call abstractions, at its core, are RPCs.

这篇关于远程过程调用和 Web 服务有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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