July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
27
:
40
Back to Dashboard
Design Rate Limiter
Medium
Design Rate Limiter
Design a rate limiter system that controls the number of requests allowed within a specified time window. The rate limiter is initialized with a time-to-live (TTL) window in milliseconds and a maximum request limit. When a new request arrives, return true if it can be accepted under the current limit, otherwise return false.
...