知识卡片
事件编舞以可观测性换解耦
编舞让每个参与者订阅事件、执行本职再发出下游事件,不由一个中心逐步指挥。独立事件可并行,新增参与者也可减少对其他参与者的修改。但整体是否结束、停滞或失败不再由单个调用栈直接揭示,需要贯穿流程的监控和恢复安排。选它是接受跟踪复杂度换松耦合,并非免除协调责任。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 宏观架构中的协调 · 查看原书依据
A typical choreography implementation includes an event-driven system, where each participant in the process listens to different events and carries out their individual part. Each action generates asynchronous events, which trigger participants downstream. We can use programming environments like RxJava or Node.js to build event-driven systems.
参考来源
- 位置:《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)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:A typical choreography implementation includes an event-driven system, where each participant in the process listens to different events and carries out their individual part. Each action generates asynchronous events, which trigger participants downstream. We can use programming environments like RxJava or Node.js to build event-driven systems.