InterviewDB
Experience
API Integration: Rate-Limited HTTP Client with Retry and Backoff
Onsite
Interview Experience
Problem Implement a rate-limited API client wrapper. The client must respect a maximum of rate_limit requests per second. If a request fails with a retryable error (HTTP 429 or 5xx), retry up to max_retries times using exponential backoff. Non-retryable errors (4xx except 429) should raise immediately. Follow-ups How would you implement a token bucket or leaky bucket to enforce the rate limit? How does jitter in exponential backoff reduce thundering herd problems? How would you make the client t…
Full Details
🔒
Unlock all Brex questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a brex interview during the onsite round.