Design Daily Call Limits for eBay's Public Developer APIs

Last updated: November 29, 2026

Quick Overview

Design the rate limiting and quota system for eBay's public APIs (such as Browse, Inventory and Fulfillment) that enforces per-application daily call limits and short-term burst limits across many gateway servers.

eBay
System Design
Software Engineer
eBay
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design the rate limiting and quota system for eBay's public APIs (such as Browse, Inventory and Fulfillment) that enforces per-application daily call limits and short-term burst limits across many gateway servers.

Thousands of third-party listing tools, repricers and storefronts call eBay's developer APIs, each with a daily call allowance per application. This lighter design question checks whether you can pick a limiting algorithm, keep counters consistent across a fleet, and give developers clear feedback.

What the Interviewer Expects
  • Distinguish daily quotas from per-second burst limits
  • Pick token bucket or sliding window and explain why
  • Keep shared counters in a fast store with atomic increments
  • Return 429 with limit and reset headers
  • Fail open or closed deliberately when the counter store is down
Key Topics to Cover
rate limiting
token bucket
distributed counters
API gateway
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you let a large partner buy a higher limit without a deploy?
  • How do you stop one app from using many keys to dodge limits?
  • What happens to accuracy if you cache counters locally on each gateway?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Each application (identified by its OAuth client id) has a daily quota per API, for example 5,000 calls per day by default, and a burst limit, for example 50 per second. Limits are configurable per ap...

High-Level Design

Gateways authenticate the token, then call a limiter check before forwarding. Limits config lives in a database cached in each gateway and refreshed every minute. Counters live in an in-memory sto...


Submit Your Answer
Markdown supported