← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4392

CDN更新与故障回源

理解等级:中级

CDN 的有效期需要兼顾新鲜度与回源量。资源更新可主动失效旧对象,或使用带版本的新 URL;边缘服务异常时还要设计客户端回源路径,避免把所有资源交付依赖在单一入口上。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 从单机逐步扩展 · 查看原书依据

      Considerations of using a CDN •Cost: CDNs are run by third-party providers, and you are charged for data transfers in and out of the CDN. Caching infrequently used assets provides no significant benefits so you should consider moving them out of the CDN. •Setting an appropriate cache expiry: For time-sensitive content, setting a cache expiry time is important. The cache expiry time should neither be

    参考来源

    - 位置:《System Design Interview – An insiders guide, Second Edition》第01章《从单机逐步扩展》(来源项目 book-sources;源文件:extracted/System Design Interview – An insiders guide, Second Edition/_epub-src/text/part0004_split_007.html) - 结论依据:原文在该位置给出所述对象、机制或比较,支持本卡的解释;原书未展开的实现不作为已证明结论,算式与一致性边界在正文明确限定。 - 原始内容:Considerations of using a CDN •Cost: CDNs are run by third-party providers, and you are charged for data transfers in and out of the CDN. Caching infrequently used assets provides no significant benefits so you should consider moving them out of the CDN. •Setting an appropriate cache expiry: For time-sensitive content, setting a cache expiry time is important. The cache expiry time should neither be