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
Palo Alto Networks
Apple
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late September, 2026
Palo Alto Networks
Staff
Implement Rate Limiter and discuss for production thread safety
Late August, 2026
Senior
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
Hello Interview Premium
Your account is free and you can post anonymously if you choose.