知识卡片
时序耦合使服务共同可用
时序耦合是一次业务请求必须按时等到多个服务同步成功。服务拥有独立数据库和契约,仍可能因调用链任一环失败而让整体流程不可用;评估服务独立性要检查调用时序和可替代路径。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第3章《Anti-Patterns: Distributed Monoliths》(源文件:`_epub-src/OPS/ch03.xhtml`,归一化正文 [12558:16784))
- 结论依据:原文定义 temporal coupling 并用酒店、机票、租车串行预订例子指出独立服务仍因同步链而形成分布式单体。
- 原始内容:Temporal coupling 31 describes when there are dependencies between one or more systems that involve time, often observed in synchronous programming. Temporal coupling is like any other form of coupling; in some scenarios, it’s difficult to get rid of it but important that you do because it affects availability.