知识卡片

普通读书笔记卡 · 2313.e.5.q.4.b.1

缓存命中率决定后端余量

理解等级:高级

缓存命中率h下,忽略其他瓶颈时后端流量约为总请求乘以(1-h)。后端最多1000RPS、命中率50%时可承接约2000RPS,但全缓存失效会让该流量压垮后端。应测量失效、冷启动和滚动升级时的后端压力,保留余量、限制流量或提供降级;正常命中率不能当作永久容量。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 7. Sharded Services · 查看原书依据

      if the cache were to fail, what would the impact be for your users and your service? When we discussed the replicated cache, this question was less relevant because the cache itself was horizontally scalable, and failures of specific replicas would only lead to transient failures. Likewise, the

    参考来源

    - 位置:《Designing Distributed Systems, 2nd Edition》第07章《Chapter 7. Sharded Services》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch07.html) - 结论依据:原文分析缓存失效与升级冷启动怎样改变RPS和延迟。 - 原始内容:if the cache were to fail, what would the impact be for your users and your service? When we discussed the replicated cache, this question was less relevant because the cache itself was horizontally scalable, and failures of specific replicas would only lead to transient failures. Likewise, the