知识卡片

普通读书笔记卡 · 4927.c

消息隔离本地模型

理解等级:中级

网络间传递通用消息,而不是直接暴露本地对象或函数,可以把通信规则与实现方式分离。格式和协议构成稳定外壳,内部功能与内容可以持续变化;即使某种承载格式退出生态,也无需因此重做整个通信协议。这里的收益来自封装边界,并不表示消息里的业务含义自然就能被理解。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • RESTful Web API导论 · 查看原书依据

      By creating a protocol and format for passing generalized messages (rather than for passing localized objects or functions), the future of the web was established. This message-centric approach is easier to constrain, easier to modify over time, and offers a more reliable platform for future enhancements, such as entirely new formats (XML, JSON, etc.) and modified usage of the protocol (documents, websites, web apps, etc.).

    参考来源

    - 位置:《RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)》第01章《RESTful Web API导论》(来源项目 book-sources;源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/ch01.xhtml;小节:消息与超媒体) - 结论依据:原文以网络间传递通用消息,而不是直接暴露本地对象或函数,可以把通信规则与实现方式分离的机制或场景为依据;同小节余文补充本卡所列条件,按2022年原书语境整理。 - 原始内容:By creating a protocol and format for passing generalized messages (rather than for passing localized objects or functions), the future of the web was established. This message-centric approach is easier to constrain, easier to modify over time, and offers a more reliable platform for future enhancements, such as entirely new formats (XML, JSON, etc.) and modified usage of the protocol (documents, websites, web apps, etc.).