Interview practice question
Rate limiting by cost, not count
System Design · Reliability · Experienced
Some API calls cost the backend 100 times more than others, so simple request-count limits are unfair and ineffective. How would you design rate limiting?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Assign cost units per operation.
- Token bucket deducts cost.
- Measure actual resource use.
- Separate quotas for expensive endpoints.
- Communicate cost model to clients.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.