← 返回刚才阅读的位置

知识卡片

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

客户端掌握工作流目标

理解等级:中级

把业务步骤硬编码到客户端,会使步骤增删和顺序变化成为客户端变更。另一种方式是读取服务返回动作并逐项执行;当流程跨多个独立服务时,还可由客户端持有声明式步骤和起始地址,通过各服务运行期动作完成任务。此时业务应用存在于客户端的组合与完成目标中,单个服务无需知道全流程。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      In this latest example, the source of the choreography comes from the client application. It is also up to the client application to decide when it has completed its work. This is a kind of client-centric goal setting (see Recipe 4.16) that is not very hard to support when you already have a foundation of stable, flexible binding agents relying on protocols, formats, and profiles.

    参考来源

    - 位置:《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年原书语境整理。 - 原始内容:In this latest example, the source of the choreography comes from the client application. It is also up to the client application to decide when it has completed its work. This is a kind of client-centric goal setting (see Recipe 4.16) that is not very hard to support when you already have a foundation of stable, flexible binding agents relying on protocols, formats, and profiles.