Description / 描述
English:
Add rate limiting to prevent API abuse:
- Implement request rate limiting per access token
- Use sliding window algorithm
- Add configurable limits (requests per minute/hour)
- Return proper 429 status codes
- Add rate limit headers to responses
中文:
添加速率限制以防止 API 滥用:
- 为每个访问令牌实现请求速率限制
- 使用滑动窗口算法
- 添加可配置的限制(每分钟/小时的请求数)
- 返回正确的 429 状态码
- 向响应添加速率限制头
Difficulty / 难度
Medium / 中等
Estimated Time / 预计时间
4-5 hours
Acceptance Criteria / 验收标准
Before starting, please comment on this issue to let us know you're working on it!
开始前请在此 issue 下评论,让我们知道你正在处理它!
See CONTRIBUTING.md for contribution guidelines.
Description / 描述
English:
Add rate limiting to prevent API abuse:
中文:
添加速率限制以防止 API 滥用:
Difficulty / 难度
Medium / 中等
Estimated Time / 预计时间
4-5 hours
Acceptance Criteria / 验收标准
Program.csX-RateLimit-*)Before starting, please comment on this issue to let us know you're working on it!
开始前请在此 issue 下评论,让我们知道你正在处理它!
See CONTRIBUTING.md for contribution guidelines.