forge-rate-limiting
CommunityShip abuse-proof rate limits for real traffic
Software Engineering#redis#rate limiting#distributed systems#api security#token bucket#retry-after#http 429
Authorf4rkh4d
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents overload, abuse, and thundering herds by ensuring your service rate-limits requests correctly across deployments and replicas rather than using fragile in-memory counters.
Core Features & Use Cases
- Correct identity-based limiting: Choose per-route rate-limit keys (IP, user, token, tenant) so you protect the right actors without locking out legitimate users.
- Right window algorithm by use case: Use token bucket as default, sliding window for per-second precision, and fixed window only for low-volume endpoints.
- Distributed enforcement with Redis: Implement canonical Redis-backed token buckets (Lua-based) so all replicas share the same counters.
- Operationally correct responses: Always emit rate-limit headers on every response and return
429with a properRetry-Afterto enable safe client pacing. - Incident-ready configuration: Keep rate-limit settings hot-reloadable instead of hardcoded so you can tighten limits during an incident.
- Client retry hygiene: Ensure retry behavior honors server-provided
Retry-Afterto avoid synchronized retry storms.
Quick Start
Use forge-rate-limiting to design or audit your serviceās rate limiting so every response includes rate-limit headers and any 429 response includes a correct Retry-After for a Redis-backed token-bucket policy keyed appropriately per endpoint.
Dependency Matrix
Required Modules
None requiredComponents
Standard packageš» Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: forge-rate-limiting Download link: https://github.com/f4rkh4d/forge-skill/archive/main.zip#forge-rate-limiting Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.