InterviewLegend

Design a Rate Limiter

Commonly asked
Alex Chen24 min readGuide updated

Two Visa candidates have written about getting this prompt. A Senior engineer writing in April 2026 had it in their second round, straight after a discussion of their own project's architecture. In 2024 a Senior engineer in Poland got it as their third round, after an earlier round on a distributed counter for views, likes and transactions. Neither one wrote down the follow-ups, so this lesson covers the depth a rate limiter round usually reaches.

Counting each client's requests and saying no past a limit takes a few lines of code. The interview lives in the details around that count. Fifty servers each see a slice of one client's traffic, so where does the count live? Two servers can read the same count at the same moment and both say yes. And the counter store can go down. Every answer has to stay cheap, because this check runs before every single API call.

The Visa angle
The 2026 loop had already covered load balancing techniques and API protocols in round one, then opened round two on the candidate's own project. So the limiter may land inside a system you just described. Say where it sits in your project's request path before drawing anything new.

VisaPremium lesson · System design round

The Visa design, worked end to end.

  1. Requirements and scopeSystem design
  2. The API and data model
  3. The design, drawn out1 diagram
  4. 5 deep divesWith the tradeoffs
Get the Visa questions

$49 a year · all 107 companies · instant access

20,000+ candidate reports

Visa interview guide

Know what Visa asks before you walk in.

30 coding · 8 system design · 20 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Visa interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.