← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3267

限流与过载拒绝依据不同

理解等级:高级

限流按用户、客户端或来源在一定时间内的请求量拒绝流量;过载拒绝按数据库容量、工作线程等系统实时状态拒绝请求。两者都保护可用性,却触发条件不同。应通过负载测试确认阈值、拒绝响应和故障时的安全策略。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Rate limiting, as the name suggests, limits the number of requests that can be made to your API over a period of time.10 The use of rate limiting typically refers to rejecting traffic based on properties of individual requests (too many from a given user, client application, or location). Load shedding refers to rejecting requests based on the overall state of the system (database at capacity, no more worker threads available).

    参考来源

    - 位置:《Mastering API Architecture》第6章《Operational Security: Threat Modeling for APIs》之《Step 4: Identify Threats—Taking This in Your STRIDE》(源文件:_epub-src/OEBPS/ch06.xhtml) - 结论依据:原文分别定义 rate limiting 和 load shedding,并建议负载测试了解系统极限与失败行为。 - 原始内容:Rate limiting, as the name suggests, limits the number of requests that can be made to your API over a period of time. 10 The use of rate limiting typically refers to rejecting traffic based on properties of individual requests (too many from a given user, client application, or location). Load shedding refers to rejecting requests based on the overall state of the system (database at capacity, no more worker threads available).