gpt4 book ai didi

wcf - RPC vs REST vs WCF?

转载 作者:行者123 更新时间:2023-12-04 14:44:35 26 4
gpt4 key购买 nike

您好,我目前正在开发一个 Web 应用程序,我希望您能帮助我使用正确的方法来实现我的 API。

RPC 是我开始实现它的方式,因为作为一个新的 Web 开发人员,这是最合乎逻辑的事情,但我一直在关注 RESTful 和 WCF,因为它们在我的研究中被多次提及。

为更复杂的业务逻辑密集型数据操作提供 RPC 接口(interface)和为“休息”提供类似 REST 的接口(interface)是否很常见。

最佳答案

RPC is the way I've started implementing it because that was the most logical thing to do as a new web developer but I've been eyeing RESTful and WCF because they have been mentioned so many times in my research.



让我们解开一点:
  • RPC 是一种 Web 服务组合方式。
  • REST 是一种 Web 服务组合方式
  • WCF 是一个同时支持 RPC 和 REST 样式的技术栈

  • Is it common to have a RPC interface for more complex business logic intensive data manipulation and a REST like interface for the "rest".



    充其量,您可能会争辩说,使复杂且长时间运行的流程脱机是很常见的。无论您是使用 RPC 还是 REST 执行此操作,都没有区别。但是,Web 服务通常是一种同步技术——尽管支持调用的一种方式是这种语义由真正的异步传输(如消息队列)更好地服务(WCF 也支持)。

    关于wcf - RPC vs REST vs WCF?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25254999/

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