AutoSkill 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.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/distributed-api-rate-limiting-with-external-configuration" ~/.claude/skills/ecnu-icalk-autoskill-distributed-api-rate-limiting-with-external-configuration && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/distributed-api-rate-limiting-with-external-configuration/SKILL.mdsource content
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
- Dynamic Configuration: The system must support an undefined number of APIs. Rate limit configurations must be read from an external file (e.g., Excel).
- Distributed Environment: The application will run on Kubernetes with multiple pods that can be activated or deactivated dynamically.
- 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.
- 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