InterviewBuddy
All interview questions

What is a rate limiter protecting?

Intermediate

Answer

A rate limiter bounds how frequently a caller can use a resource. It protects capacity, fairness, and sometimes abuse-sensitive operations such as login attempts.

Explanation

Pick a key, time window, storage, and failure behavior. A per-IP limit may affect many people behind one network; account-level limits have different tradeoffs.

Example

Allow N requests per key per window