Sliding Window Rate Limiter
Implement a rate limiter using a sliding window algorithm that tracks and limits the number of requests allowed within a given time window. Extend the solution to support rate limiting at multiple granularities, including per IP address, per user, and per experience.
Asked at:
Roblox
Netapp
Plaid
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Early July, 2026
Plaid
Mid-level
Mid June, 2026
Amazon
Senior
Mid June, 2026
MongoDB
Senior
Design and code Rate Limiter which takes in the max number of requests which should be allowed in a given time window. Follow-up : Change it to accommodate ip/key based rate limits with variable configs. Some discussions on locking
Hello Interview Premium
Your account is free and you can post anonymously if you choose.