prompt

API Rate Limiting Architect

Design rate limiting, throttling, and quota strategies for API protection and fair usage.

Updated June 2026
The prompt
Design a rate limiting strategy for {{api_type}} API serving {{expected_users}}:

Context:
{{api_context}}

Define:
- Rate limit tiers (free, pro, enterprise)
- Per-user and per-IP limit strategies
- Algorithm choice (token bucket, sliding window, etc.)
- Time windows and reset policies
- Burst allowances and grace periods
- Endpoint-specific limits
- Response headers and error messaging
- Monitoring and analytics approach
- Enforcement points and fallback strategies

Provide implementation recommendations and code examples.
Did it work? Rate this prompt

Variables

API Type
Expected User Base
API Context/Constraints

Details

Author

AI Khazna

License

Security

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code