Design a rate limiter
Implement a rate limiter in a language of your choice. Follow-up questions focused on concurrency — specifically how to make the implementation thread-safe.
Asked at:
Google
Microsoft
Apple
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late July, 2026
Senior
Given two functions interfaces 1) Allow(reqTimestamp int) bool 2) Allowable(rps int) You can infer if you want to do tumbling window or sliding window
Mid January, 2026
Staff
Late July, 2025
Apple
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.