知识卡片

普通读书笔记卡 · 2285.ad

服务自行持久重试

理解等级:高级

远程服务暂时故障时,负责业务结果的服务可持久保存请求并调度重试,而不是让客户记住稍后再试。登机牌生成失败由值机服务负责,恢复后主动交付,能把错误封装在正确边界。重试持续数分钟意味着原请求必须异步返回;是否把失败留给客户,应由业务要求决定。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 工作流引擎与集成挑战 · 查看原书依据

      Whenever a service can resolve failures itself, it encapsulates important behavior. This makes the lives of all clients much easier and the API much cleaner, as Chapter 7 already described. Of course, the behavior of passing errors on to the client can be just fine in some cases—but it should be a conscious decision that

    参考来源

    - 位置:《Practical Process Automation》第9章《工作流引擎与集成挑战》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch09.xhtml) - 结论依据:原文给出的机制、实例与边界支持本卡的解释。 - 原始内容:Whenever a service can resolve failures itself, it encapsulates important behavior. This makes the lives of all clients much easier and the API much cleaner, as Chapter 7 already described. Of course, the behavior of passing errors on to the client can be just fine in some cases—but it should be a conscious decision that