gpt4 book ai didi

web-services - 远程过程调用和 Web 服务有什么区别?

转载 作者:行者123 更新时间:2023-12-03 05:19:41 25 4
gpt4 key购买 nike

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

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 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 服务。

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

最佳答案

Is Web Service a higher level representation of RPC?

是的,确实如此。 Web服务是RPC的具体实现。在最低级别,Web 服务使用 HTTP 协议(protocol)连接到 Socket,以协商发送在远程空间(远程空间可以是同一台计算机)中执行的有效负载。所有这些远程调用抽象的核心都是 RPC。

关于web-services - 远程过程调用和 Web 服务有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3028899/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com