Available question text
Implement a leaky bucket rate limiter with a fixed drain rate and finite capacity, supporting a `try_acquire(n)` method that returns whether a request is allowed or the wait time until it would be. Include unit tests for steady-state, burst, and edge case behavior, and discuss concurrency safety and distributed extension strategies.
Related questions
Continue with questions that share topics or the same question type.
- API Rate Limiter
Coding
- Implement a rate limiter using the sliding window log algorithm
Coding
- Implement a thread-safe rate limiter
Coding
- Logger Rate Limiter
Coding · Data Stream · Design · Hash Table
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Box
Leaky Bucket Rate Limiter
Reported Apr 13, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source