Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
55
:
47
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.
...