← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3333.i.4

列复制换取本地读取

理解等级:高级

把需要的外域列复制到本服务表中,可本地查询、提高读取性能和故障独立性。拥有者更新后必须同步副本,通常异步可减少可用性依赖,却产生一致性窗口;还须防止非拥有者擅改副本形成多写者。它更适合报表、聚合或其他模式受大容量限制的情形,不能只为少一次接口调用而忽视维护成本。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      Whenever a product is created, removed from the catalog, or a product description changed, the Catalog Service must somehow let the Wishlist Service (and any other services replicating the data) know about the change. This is usually done through asynchronous communications using queues, topics, or event streaming. Unless immediate transactional synchronization is required, asynchronous communication is a preferred choice over synchronous communication because it increases responsiveness and reduces the availability dependency between the services.

    参考来源

    - 位置:《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) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:Whenever a product is created, removed from the catalog, or a product description changed, the Catalog Service must somehow let the Wishlist Service (and any other services replicating the data) know about the change. This is usually done through asynchronous communications using queues, topics, or event streaming. Unless immediate transactional synchronization is required, asynchronous communication is a preferred choice over synchronous communication because it increases responsiveness and reduces the availability dependency between the services.