rate-limiting
✓使用令牌桶、滑动窗口和 Redis 分布式模式限制 API 速率。在实施速率限制、限制请求、处理 429 Too Many Requests、防止 API 滥用或使用 Redis 配置 SlowAPI 时使用。
SKILL.md
Protect APIs with distributed rate limiting using Redis and modern algorithms.
| Token Bucket | General API, allows bursts | Excellent | | Sliding Window | Precise, no burst spikes | Good | | Leaky Bucket | Steady rate, queue excess | None | | Fixed Window | Simple, some edge issues | Moderate |
| Storage | Redis (distributed, atomic) | | Algorithm | Token bucket for most APIs | | Key | User ID if auth, else IP + fingerprint | | Auth endpoints | 10/min (strict) | | Read endpoints | 100-1000/min (based on tier) | | Write endpoints | 20-100/min (moderate) |
使用令牌桶、滑动窗口和 Redis 分布式模式限制 API 速率。在实施速率限制、限制请求、处理 429 Too Many Requests、防止 API 滥用或使用 Redis 配置 SlowAPI 时使用。 来源:yonatangross/orchestkit。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/yonatangross/orchestkit --skill rate-limiting- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 rate-limiting?
使用令牌桶、滑动窗口和 Redis 分布式模式限制 API 速率。在实施速率限制、限制请求、处理 429 Too Many Requests、防止 API 滥用或使用 Redis 配置 SlowAPI 时使用。 来源:yonatangross/orchestkit。
如何安装 rate-limiting?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/yonatangross/orchestkit --skill rate-limiting 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/yonatangross/orchestkit
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01