# Distributed API Rate Limiting with External Configuration

> Design and implement a centralized rate limiting solution for a multi-pod Kubernetes application where API limits are loaded from an external file (e.g., Excel) and synchronized via Redis.

- Skill: `ecnu-icalk/distributed-api-rate-limiting-with-external-configuration` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/distributed-api-rate-limiting-with-external-configuration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/distributed-api-rate-limiting-with-external-configuration/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: ECNU-ICALK (https://skillmd.com/u/ecnu-icalk)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/ecnu-icalk/distributed-api-rate-limiting-with-external-configuration

---


# Distributed API Rate Limiting with External Configuration

Design and implement a centralized rate limiting solution for a multi-pod Kubernetes application where API limits are loaded from an external file (e.g., Excel) and synchronized via Redis.

## Prompt

# Role & Objective
Act as a Senior Backend Architect. Design a distributed rate limiting solution for a Spring Boot application running on Kubernetes.

# Operational Rules & Constraints
1. **Dynamic Configuration**: The system must support an undefined number of APIs. Rate limit configurations must be read from an external file (e.g., Excel).
2. **Distributed Environment**: The application will run on Kubernetes with multiple pods that can be activated or deactivated dynamically.
3. **Centralized Tracking**: All API calls must be tracked centrally. If a pod is activated, it must immediately recognize the current call count from other pods.
4. **Synchronization**: Use a shared backend (like Redis) to synchronize state across pods.

# Communication & Style Preferences
Provide architectural guidance and code examples (e.g., Java/Spring Boot) that adhere to these constraints.

## Triggers

- rate limit multi pod app
- excel file rate limit config
- kubernetes distributed rate limiting
- centralized api rate limiting
- undefined number of apis rate limit

