API Gateway & Rate Limiting

Implement API Gateways with Kong and Nginx rate limiting strategies.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/vertivolatam/monorepo --skill api-gateway-rate-limiting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: API Gateway & Rate Limiting
Source: https://github.com/vertivolatam/monorepo/tree/main/skills/system-reliability-engineering/api-gateway-rate-limiting
Command: npx skills add https://github.com/vertivolatam/monorepo --skill api-gateway-rate-limiting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fastapi, uvicorn[standard], and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need to manage and secure access to APIs by implementing an API Gateway with robust rate-limiting capabilities, preventing abuse and ensuring service stability.

Core Features & Use Cases

  • API Gateway Implementation: Set up Kong or Nginx as a central entry point for your APIs.
  • Rate Limiting Strategies: Implement various algorithms like Token Bucket and Sliding Window to control request frequency.
  • Authentication: Secure endpoints using API keys.
  • Use Case: Protect your public APIs from being overwhelmed by implementing rate limits per IP address and per authenticated user tier, ensuring fair usage and preventing denial-of-service attacks.

Quick Start

Implement an API Gateway using Kong with custom rate limiting configurations.

Frequently Asked Questions about API Gateway & Rate Limiting

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

FAQPage Schema
How do I set up an API Gateway with rate limiting in FastAPI?

To set up an API Gateway with rate limiting in FastAPI, use the provided middleware to enforce tiered request throttling and API key authentication, controlling access frequency per user.

What is the difference between Token Bucket and Sliding Window rate limiting algorithms?

Token Bucket allows bursts of traffic by accumulating tokens over time, whereas Sliding Window rate limiting calculates request frequency over a precise rolling timeframe to smooth out traffic spikes.

Can I configure Kong and Nginx for API authentication and throttling?

Yes, you can configure Kong and Nginx for API authentication and throttling by utilizing custom Lua plugins and gateway configurations to secure endpoints and prevent API abuse.

What is the best way to protect public APIs from denial-of-service attacks?

The best way to protect public APIs from denial-of-service attacks is enforcing tiered rate limits per IP address and authenticated user, ensuring fair usage and preventing traffic overwhelming.

Do I need Uvicorn to run Python-based API Gateway scripts?

Yes, you need Uvicorn installed as a standard ASGI server dependency to run the Python-based FastAPI middleware scripts that execute the API Gateway and request throttling logic.