知识卡片

普通读书笔记卡 · 1976.ah.7

数据互赖会约束服务粒度

理解等级:高级

服务B每次要读C的表、C每次又要读B的表时,保持独立所有权就需不断往返调用;直接跨库读取又破坏变更隔离。若数据关系难以重组,合并这两块能减少延迟、故障和容量协调。服务边界应连同数据关系检查,不能代码拆完才发现数据无法独立。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 服务粒度 · 查看原书依据

      Based on the dependency of the data between services B and C, it would be wise to consolidate those services into a single service to avoid the latency, fault tolerance, and scalability issues associated with the interservice communication between these services, demonstrating that relationships between tables can influence service granularity.

    参考来源

    - 位置:《Software Architecture: The Hard Parts》第07章《服务粒度》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch07.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:Based on the dependency of the data between services B and C, it would be wise to consolidate those services into a single service to avoid the latency, fault tolerance, and scalability issues associated with the interservice communication between these services, demonstrating that relationships between tables can influence service granularity.