← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4927.a.1

客户端绑定稳定抽象

理解等级:中级

客户端与服务必须共享某些稳定规则。直接绑定URL和内部对象结构能快速生成专用客户端,却容易随服务变化失效;绑定协议和消息格式,则能把地址与内容留给消息表达。协议、格式、语义profile共同提供较稳定的边界,但客户端仍须实现这些边界并理解业务词汇。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 用超媒体思考与设计 · 查看原书依据

      That is to say, protocol is the higher abstraction of URLs, and message formats (or media types on the web) are the higher abstraction of object schema. Because they are more universal and less likely to change, protocol and format make for good binding agents.

    参考来源

    - 位置:《RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)》第02章《用超媒体思考与设计》(来源项目 book-sources;源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/ch02.xhtml;小节:韧性客户端) - 结论依据:原文以客户端与服务必须共享某些稳定规则的机制或场景为依据;同小节余文补充本卡所列条件,按2022年原书语境整理。 - 原始内容:That is to say, protocol is the higher abstraction of URLs, and message formats (or media types on the web) are the higher abstraction of object schema. Because they are more universal and less likely to change, protocol and format make for good binding agents.