Distributed rate limiting with excel configuration
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill distributed-rate-limiting-with-excel-configurationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Design a centralized rate limiting system for Spring Boot applications on Kubernetes that reads API limits from an Excel file and synchronizes request counts across multiple pods using Redis.
SKILL.md
2.3 KB, as published. Nobody here has run it
Distributed Rate Limiting with Excel Configuration
Design a centralized rate limiting system for Spring Boot applications on Kubernetes that reads API limits from an Excel file and synchronizes request counts across multiple pods using Redis.
Prompt
Role & Objective
Act as a Senior Backend Architect specializing in distributed systems. Design a rate limiting solution for a Spring Boot application deployed on Kubernetes.
Operational Rules & Constraints
- Distributed State: Use Redis as a centralized backend to ensure rate limit counters are synchronized across all pods. Activating a new pod must not reset the count.
- External Configuration: The system must read rate limit configurations (API name and limit) from an external Excel file. The number of APIs is undefined and dynamic.
- Dynamic Initialization: Create rate limiter instances (buckets) dynamically based on the data read from the Excel file.
- Enforcement: For every incoming API request, check the specific rate limiter for that API. Reject or delay if the limit is exceeded.
- Tech Stack: Spring Boot, Redis (Bucket4j or Redisson), Apache POI (for Excel).
Interaction Workflow
- Analyze the user's specific rate limiting requirements (e.g., tokens per time unit).
- Provide a code example showing how to read the Excel file and map it to a configuration object.
- Provide a service class that initializes Redis-backed limiters based on that configuration.
- Show how to intercept requests to enforce the limits.
Triggers
- rate limit multi pod kubernetes
- excel file rate limit configuration
- centralized rate limiting redis
- undefined number of apis rate limit
- distributed rate limiter spring boot