Design a Per Seller Rate Limiter for Catalog Listing APIs

Last updated: November 29, 2026

Quick Overview

Flipkart sellers and their integration partners update listings, prices and stock through APIs. Design a rate limiter that enforces per seller quotas by plan tier, absorbs short bursts, and protects shared catalog services.

Flipkart
System Design
Software Engineer
Flipkart
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Flipkart sellers and their integration partners update listings, prices and stock through APIs. Design a rate limiter that enforces per seller quotas by plan tier, absorbs short bursts, and protects shared catalog services.

Large sellers push millions of price and stock updates, especially before sale events, while small sellers make a few calls a day. The interviewer checks algorithm choice, distributed counting, and how quotas interact with business priority so a noisy seller cannot starve others.

What the Interviewer Expects
  • Compare fixed window, sliding window and token bucket algorithms
  • Choose token bucket for burst tolerance and justify it
  • Implement distributed counters with Redis and atomic scripts
  • Support tiered limits and per endpoint limits
  • Return useful headers and 429 responses
  • Decide fail open versus fail closed when the limiter store is down
Key Topics to Cover
token bucket
rate limiting
Redis
quotas
multi-tenancy
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 do you keep limits accurate across multiple data centers?
  • How would you prioritize stock updates over description edits during a sale?
  • How do you change a seller's quota without redeploying?
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

Functional: limit calls per seller per API group (price/stock, listing create, reports); tiers like 10, 100, 1000 requests per second; burst allowance; per seller overrides.

Non functional: u...

High-Level Design

Seller API gateway (Envoy or similar) -> rate limit filter -> Redis cluster keyed by rl:{seller_id}:{api_group} -> backend services. Quota config lives in a config service (DB plus cache) and is...


Submit Your Answer
Markdown supported

Related Questions