← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4359.g.1.b.1

长流程需要持久执行状态

理解等级:高级

工作流引擎以流程语言表达协调,把长时间运行、步骤状态保存、故障恢复及补偿作为能力。适合跨天甚至更长的过程;简单短流程则可能承担过重的运行、学习和费用成本。它与优化异步调用的集成总线目标不同,不能因两者都“协调”就当成同一种产品。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 宏观架构中的协调 · 查看原书依据

      They also support efficient nonblocking service invocations and are specifically designed for long-running coordinations that might run for days or years. Workflows can recover from failures because they save their state at each step of the execution and will reverse the flow and call compensation operations if failures happen. They support compensation as first-class entities, where we can provide undo operations.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第06章《宏观架构中的协调》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch06.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:They also support efficient nonblocking service invocations and are specifically designed for long-running coordinations that might run for days or years. Workflows can recover from failures because they save their state at each step of the execution and will reverse the flow and call compensation operations if failures happen. They support compensation as first-class entities, where we can provide undo operations.