using-redis-token-buckets
Claude Code skill by @PostHog
Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. `posthog/token_bucket.py` provides an atomic Lua token bucket (`consume`, `refund`, `peek`) over `posthog.redis.get_client()`. Choose it over DRF `SimpleRateThrottle`/fixed-window cache counters when boundary bursts, top-of-window lockouts, or charge-then-refund semantics matter. Trigger terms: token bucket, rate limit, burst, refill, quota, Retry-After, fixed window, throttle.
- Price: Free
- Signal index: 0/100
- Source: posthog/posthog
- Updated:
Related topics
- Finance skills
- Redis skills
- Deep research skills
- shadcn/ui skills
- Kubernetes skills
- Go skills
- Animation skills
- Performance skills
- Planning skills
- E-commerce skills
- Music skills
- Sales skills
- Tailwind CSS skills
- API design skills
- 3D and Three.js skills
- Google Workspace skills
- Next.js skills
- Node.js skills
- App Store skills
- UI design skills
- WordPress skills
- Data analysis skills
- Documentation skills
- TypeScript skills
- Agent memory skills
- Flutter skills
- Content marketing skills
- iOS and Swift skills
- Firebase skills
- Customer support skills
Create a free account to install this skill or run it from Claude Code or Codex.