← Questions

Design a distributed rate limiter

0
AppleGoogleMeta+2System designLast asked Aug 2026

A system design interview question asked in Meta's system design round and at Apple, OpenAI and 2 more companies, last asked Aug 2026. It tests rate limiting, token bucket and distributed systems.

Design a rate limiter that enforces a token-bucket limit per client across a fleet of API servers. Each client (an API key or user) has a bucket with a capacity and a refill rate; a request spends one token or is rejected.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Meta · System design · Last asked Aug 202645 min · Design discussion; either an LLM-agent system or a classic product system · Nominally AI-enabled, but the assistant is often not used
  • Apple · System design · Last asked Aug 2026
  • OpenAI · Technical screen: coding · Last asked May 202660 min · One problem in three to five growing parts filling the hour, usually in CoderPad; ML roles get a Colab notebook with autocomplete off · No AI assistants or autocomplete; documentation is fine
  • Microsoft · System design · Last asked Feb 202660 min · Design discussion
  • Google · System design · Last asked Jan 202645 min · Whiteboard for the diagram, a doc for requirements and capacity math

What it tests

rate limiting · token bucket · distributed systems

Your canvas and the AI tutor open when you unlock this question.