rate-limiting
Purpose
Comprehensive description for rate-limiting providing detailed architectures and best practices.
Core Principles
- First principle - Reliability
- Second principle - Scalability
- Third principle - Maintainability
- Fourth principle - Security
- Fifth principle - Observability
Agent Protocol
Triggers: Code execution Input Context Required: Repository context Output Artifact: System design document Response Formats:
{ "status": "ok", "action": "completed" }
Decision Matrix
[Start] -> (Condition Check) -> [End]
|
v
[Alternative]
Detailed Architectural Overview
[Client] ---> [API Gateway] ---> [Microservice]
|
v
[Database]
Workflow Steps
Phase 1
- Initialization step 1
- Initialization step 2
- Initialization step 3
- Initialization step 4 Phase 2
- Processing step 1
- Processing step 2
- Processing step 3
- Processing step 4 Phase 3
- Storage step 1
- Storage step 2
- Storage step 3
- Storage step 4 Phase 4
- Retrieval step 1
- Retrieval step 2
- Retrieval step 3
- Retrieval step 4 Phase 5
- Optimization step 1
- Optimization step 2
- Optimization step 3
- Optimization step 4 Phase 6
- Cleanup step 1
- Cleanup step 2
- Cleanup step 3
- Cleanup step 4
Extended Troubleshooting Guide
| Symptom | Primary Cause | Mitigation Action |
|---|---|---|
| High Latency | Network Congestion | Scale up resources |
| Data Loss | Database Failure | Restore from backup |
| Connection Refused | Service Down | Restart service |
| Unauthorized Access | Invalid Token | Renew token |
| Out of Memory | Memory Leak | Optimize code |
| Disk Full | Log Overload | Rotate logs |
Complete Execution Scenario
[Trigger] -> [Analysis] -> [Action] -> [Result Verification]
Rules and Guidelines
- Always validate inputs.
- Ensure backward compatibility.
- Keep logs structured.
- Fail gracefully.
- Apply rate limiting where appropriate.
Reference Guides
- Reference 0
- Reference 1
- Reference 2
- Reference 3
- Reference 4
- Reference 5
- Reference 6
- Reference 7
Handoff
Refer to other standard skills if specialized logic is required.