Design a Rate Limiter for the Marketplace Seller API

Last updated: November 29, 2026

Quick Overview

Design rate limiting for the public API that third-party Marketplace sellers use to update prices, inventory and orders. Limits differ by seller tier and endpoint, and one aggressive seller must not degrade service for others.

Walmart Labs
System Design
Software Engineer
Walmart Labs
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design rate limiting for the public API that third-party Marketplace sellers use to update prices, inventory and orders. Limits differ by seller tier and endpoint, and one aggressive seller must not degrade service for others.

Walmart Marketplace exposes APIs to many thousands of sellers and integrators who often sync full catalogs in bursts. This is a common early design question to check that a candidate knows the standard algorithms, where to enforce them, and how to communicate limits back to clients.

What the Interviewer Expects
  • Pick an algorithm (token bucket or sliding window) and explain why
  • Key limits by seller and endpoint with tier-based configs
  • Enforce at the gateway with a shared fast store
  • Return 429 with Retry-After and limit headers
  • Discuss failure behavior when the limiter store is unavailable
Key Topics to Cover
Token bucket
Redis atomic operations
API gateway
Multi-tenant fairness
HTTP 429 semantics
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 give bulk feed uploads a different limit than single item updates?
  • What if one seller uses many API keys to evade limits?
  • Should the limiter fail open or closed?
  • How do you change a seller's limit without a deploy?
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

Per seller and endpoint group limits, for example price updates 10 requests per second with bursts to 50 for standard sellers, higher for top sellers. Limit check adds under 2 ms. Around 100k requests...

High-Level Design

Requests hit the API gateway, which authenticates the token and resolves seller_id and tier. A rate limit filter computes the key rl:{seller_id}:{endpoint_group} and checks a token bucket stored i...


Submit Your Answer
Markdown supported