rate-limiting

Implement rate limiting algorithms to manage traffic and prevent service overload.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/hung-phan/system-skills --skill rate-limiting-hung-phan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rate-limiting
Source: https://github.com/hung-phan/system-skills/tree/main/skills/system-review/references/reliability/rate-limiting
Command: npx skills add https://github.com/hung-phan/system-skills --skill rate-limiting-hung-phan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive understanding and implementation guide for rate limiting algorithms, ensuring service responsiveness and security against traffic spikes and misbehaving clients.

Core Features & Use Cases

  • Algorithm Overview: Offers detailed explanations and diagrams of various rate limiting algorithms like token bucket, leaky bucket, fixed window, sliding window log, and sliding window counter.
  • Policy Configuration: Helps define per-user, per-tenant, and per-route policies to maintain fairness and prevent overloading of shared resources.
  • Distributed Enforcement: Covers single-node and distributed enforcement strategies, including Redis-based and circuit breaker approaches.
  • Operational Practices: Provides guidance on rolling out limits, monitoring, and documentation best practices for effective rate limiting in production environments.

Quick Start

Analyze and apply the rate limiting guidance in the skill for your application to protect against traffic spikes and improve service responsiveness.

Frequently Asked Questions about rate-limiting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best rate limiting algorithm to prevent service overload?

Token bucket and leaky bucket algorithms are ideal for preventing service overload. This Skill details these alongside fixed window, sliding window log, and sliding window counter algorithms, providing diagrams to manage traffic spikes.

How do I configure rate limiting policies for per-user and per-tenant fairness?

You configure rate limiting policies by defining per-user, per-tenant, and per-route limits. This Skill helps establish these policies to maintain fairness and prevent overloading of shared resources across various system design scenarios.

Does distributed rate limiting work with Redis and circuit breakers?

Yes, distributed rate limiting is supported through Redis-based and circuit breaker approaches. This Skill covers single-node and distributed enforcement strategies to manage traffic and resource allocation across your system.

How do I roll out and monitor rate limits in production environments?

You roll out and monitor rate limits by following operational best practices. This Skill provides guidance on rolling out limits, monitoring performance, and documentation to ensure effective rate limiting in production environments.

What are the limitations of single-node rate limiting enforcement?

Single-node rate limiting limitations include inconsistent traffic control across multiple instances. This Skill addresses these constraints by contrasting single-node approaches with distributed enforcement strategies like Redis-based coordination.