← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 5366.a.3.a

共享数据域以表为契约

理解等级:高级

若远程访问太慢、复制一致性不足、缓存又太大,可把双方表置于共享数据域,直接联表读取并保留外键、视图和触发器。无需同步副本,但表结构变成跨服务契约,任何变化都可能波及多个服务,还需治理访问权限。它消除服务间读取依赖,未消除共享数据库的故障与容量边界。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 分布式数据访问 · 查看原书依据

      The contracts used with the interservice communication pattern and the Replicated Cache pattern form an abstraction layer over the table schema, allowing changes to the table structures to remain within a tight bounded context and not impact other services. However, this pattern forms a broader bounded context, requiring multiple services to possibly change when the structure to any of the tables in the data domain changes.

    参考来源

    - 位置:《Software Architecture: The Hard Parts》第10章《分布式数据访问》(来源项目: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/ch10.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:The contracts used with the interservice communication pattern and the Replicated Cache pattern form an abstraction layer over the table schema, allowing changes to the table structures to remain within a tight bounded context and not impact other services. However, this pattern forms a broader bounded context, requiring multiple services to possibly change when the structure to any of the tables in the data domain changes.