Rate Limiting
Design and implement API throttling — algorithm choice (token bucket, GCRA, sliding window), Redis atomic implementations, limit keys and tiers, 429 semantics, proxy-aware client IPs, abuse endpoints and client backoff.
What it does
Design and implement API throttling — algorithm choice (token bucket, GCRA, sliding window), Redis atomic implementations, limit keys and tiers, 429 semantics, proxy-aware client IPs, abuse endpoints and client backoff.
- Category
- backendsecurityreliability
- Platforms
- backend
- Frameworks and tools
- redisnginxexpressfastapi
- Capabilities
- architecturecode-generationreview
Example tasks
- “Add per-API-key and per-IP rate limits to a public API using Redis.”
- “Protect login and password-reset endpoints from credential stuffing without locking out real users.”
- “Design tiered quotas (free, pro) with burst allowance and clear 429 responses.”
Works with
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (80 lines in total).
- 01Rate Limiting
- 021. Where to limit (layered)
- 032. Algorithm choice
- 043. Choosing the key
- 054. Redis implementation (atomic)
- 065. Failure mode
- 076. Rejection response
- 087. Client IPs behind proxies
- 098. Clients and operations
- 10Common mistakes
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Rate Limiting
1.0.0
- Initial release.