知识卡片
复制缓存有启动容量边界
首个消费者实例需要从拥有者或已有副本取得初始缓存;数据一旦填充,拥有者停机不再意味着读停机。内存预算是每份大小乘所有服务实例数,500MB复制五份就是2.5GB,书中500MB只是示例而非硬阈值。更新率太高可能追不上同步,动态容器IP也使发现配置更复杂。应同时评估启动、容量、变化率与部署环境。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 分布式数据访问 · 查看原书依据
Each service instance has its own replicated cache, meaning that if the cache size of 500 MB and 5 instances of a service are required, the total memory used is 2.5 GB. Architects must analyze both the size of the cache and the total number of services instances needing the cached data to determine the total memory requirements for the replicated 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)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:Each service instance has its own replicated cache, meaning that if the cache size of 500 MB and 5 instances of a service are required, the total memory used is 2.5 GB. Architects must analyze both the size of the cache and the total number of services instances needing the cached data to determine the total memory requirements for the replicated cache.