返回主题:数据集成与分拆:一份真源与多份衍生

知识卡片

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

三种缓存共享方式

理解等级:中级

单服务内存缓存只加速本服务,实例间没有同步;集中分布式缓存把数据放到外部服务器,能共享却仍有网络和服务器可用性依赖;复制式缓存让每个服务本地保有同一数据集并同步更新。三者名称相近,却在数据放置、共享方式与失败范围上不同,选型不能只问“是否用了缓存”。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      With replicated caching, each service has its own in-memory data that is kept in sync between the services, allowing the same data to be shared across multiple services. Notice in Figure 10-6 that there is no external cache dependency. Each cache instance communicates with another so that when an update is made to a cache, that update is immediately (behind the scenes) asynchronously propagated to other services using 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) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:With replicated caching, each service has its own in-memory data that is kept in sync between the services, allowing the same data to be shared across multiple services. Notice in Figure 10-6 that there is no external cache dependency. Each cache instance communicates with another so that when an update is made to a cache, that update is immediately (behind the scenes) asynchronously propagated to other services using the same cache.