Skip to content
CommandImported

setup-rate-limiting

Implement comprehensive API rate limiting with advanced algorithms and user-specific policies

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/setup-rate-limiting.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/setup-rate-limiting.zip -d ~/.claude/commands

Instructions

Setup Rate Limiting

Implement comprehensive API rate limiting with advanced control mechanisms: $ARGUMENTS

Current API State

  • Framework detection: @package.json or @requirements.txt (Express, FastAPI, Spring Boot, etc.)
  • Existing rate limiting: !grep -r "rate.limit\|throttle\|rateLimit" src/ 2>/dev/null | wc -l
  • Redis availability: !redis-cli ping 2>/dev/null || echo "Redis not available"
  • API endpoints: !grep -r "route\|endpoint\|@app\\.route" src/ 2>/dev/null | wc -l

Task

Implement production-ready rate limiting system with sophisticated algorithms and user policies:

Rate Limit Type: Use $ARGUMENTS to focus on API rate limiting, authentication limiting, file upload controls, or database access limiting

Rate Limiting Architecture:

  1. Algorithm Implementation - Token bucket, sliding window, fixed window, leaky bucket algorithms
  2. User Policies - Tier-based limits, authenticated vs anonymous, user-specific quotas, IP-based controls
  3. Storage Backend - Redis integration, distributed rate limiting, persistence strategies, failover mechanisms
  4. Endpoint Configuration - Per-route limits, method-specific rules, dynamic configuration, A/B testing
  5. Monitoring & Analytics - Usage tracking, abuse detection, performance metrics, alerting systems
  6. Bypass Mechanisms - Whitelist management, internal request handling, emergency overrides

Advanced Features: Adaptive rate limiting, geo-based controls, API key management, quota systems, abuse prevention.

Production Readiness: High availability, performance optimization, security controls, comprehensive monitoring.

Output: Complete rate limiting system with intelligent policies, comprehensive monitoring, and advanced abuse prevention capabilities.

Files

  • LICENSE1 KB
  • setup-rate-limiting.md2 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookAllowed tools with no limits

    In file cli-tool/components/commands/setup/setup-rate-limiting.md

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    api-mock

    Build realistic API mock servers with request stubbing, dynamic data, test scenarios, and contract testing

    MITFiles: 1

  • CommandImported

    design-rest-api

    Design RESTful API architecture with comprehensive endpoints, authentication, and documentation

    MITFiles: 1

  • CommandImported

    doc-api

    Generate comprehensive API documentation from code with interactive examples and testing capabilities

    MITFiles: 1

  • CommandImported

    feature-development

    Orchestrate end-to-end feature development from requirements to deployment

    MITFiles: 1

  • CommandImported

    generate-api-documentation

    Auto-generate API reference documentation with multiple output formats and automated deployment

    MITFiles: 1

  • CommandImported

    implement-caching-strategy

    Design and implement comprehensive caching solutions for improved performance and scalability

    MITFiles: 1