GCRA 限流算法


在看一个 Python 限流库(throttled-py)的仓库的时候,注意到了一个之前没有听说过的限流算法 GCRA(Generic Cell Rate Algorithm,通用信元速率算法)。

顺带一提,Let’s Encrypt 用的也是 GCRA(底层状态存储在 Redis 里)。

blog: https://leungyukshing.cn/archives/Rate-Limit-Algorithm.html

via: https://github.com/ZhuoZhuoCrayon/throttled-py/tree/main/docs/basic

lets-encrypt: https://letsencrypt.org/2025/01/30/scaling-rate-limits/