知识卡片
复制缓存保留单一写者
拥有者维护可写缓存,其他服务只读本地副本;变化由缓存机制传播。读取不必每次调用拥有者,已有副本时可在拥有者故障后继续运行,并独立扩展。由于更新传播通常异步,“本地有数据”不代表任何时刻都即时强一致;只适合能够接受传播时间的数据,不适合据此直接共享高变化库存计数。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 分布式数据访问 · 查看原书依据
In Figure 10-7, the Catalog Service owns an in-memory cache of product descriptions (meaning it is the only service that can modify the cache), and the Wishlist Service contains a read-only in-memory replica of the same cache.
参考来源
- 位置:《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)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:In Figure 10-7, the Catalog Service owns an in-memory cache of product descriptions (meaning it is the only service that can modify the cache), and the Wishlist Service contains a read-only in-memory replica of the same cache.