知识卡片
限流把过载变成明确拒绝
误配置客户端和误发压测也能耗尽服务资源,入口代理可按路径、身份或来源限制请求。匿名额度较小、认证额度较大有助于追踪负载责任;达到额度时返回429并给出剩余信息,便于客户端调节。基础限流不能等同充分DDoS防护,超出入口容量的流量需要更外层承载。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 6. Replicated Load-Balanced Services · 查看原书依据
a denial of service can come simply from a developer misconfiguring a client or a site-reliability engineer accidentally running a load test against a production installation. Thus, it makes sense to add general denial-of-service defense via rate limiting to the caching layer. Most HTTP reverse proxies like Varnish
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第06章《Chapter 6. Replicated Load-Balanced Services》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch06.html)
- 结论依据:原文将非恶意过载与限流、身份审计和429响应联系,并说明基础防护局限。
- 原始内容:a denial of service can come simply from a developer misconfiguring a client or a site-reliability engineer accidentally running a load test against a production installation. Thus, it makes sense to add general denial-of-service defense via rate limiting to the caching layer. Most HTTP reverse proxies like Varnish