14 lines
594 B
Markdown
14 lines
594 B
Markdown
# 03c: Rate Limiting Middleware
|
|
|
|
**What to build:** Token-based rate limiting middleware in FastAPI, extensible to Redis or Traefik later.
|
|
|
|
**Blocked by:** 03b (JWT Authentication Middleware)
|
|
|
|
**Status:** ready-for-agent
|
|
|
|
- [ ] Rate limiting middleware implemented (per-token limits)
|
|
- [ ] Default rate limit configured (e.g., 100 requests/minute per token)
|
|
- [ ] Rate limit headers exposed in responses (`X-RateLimit-Limit`, `X-RateLimit-Remaining`)
|
|
- [ ] Rate limit exceeded response returns `429 Too Many Requests`
|
|
- [ ] Rate limiting tests written (test client simulates multiple requests)
|