Design Selling Partner API Quotas With Burst and Restore Rates

Last updated: November 29, 2026

Quick Overview

Design the quota system for Amazon's Selling Partner API where each seller application gets per-operation rate limits defined by a restore rate and a burst, and limits can scale with the seller's business size.

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

0

0

0 solved


Design the quota system for Amazon's Selling Partner API where each seller application gets per-operation rate limits defined by a restore rate and a burst, and limits can scale with the seller's business size.

Seller tools and third-party integrators hammer seller APIs, and Amazon publishes limits as restore rate plus burst. The interviewer checks that you map that contract to a token bucket, decide what the key is (seller, application, operation), and design dynamic limits and clear client feedback.

What the Interviewer Expects
  • Translate restore rate and burst into a token bucket
  • Pick the right key: selling partner, application, operation
  • Store bucket state in a low-latency shared store
  • Support usage-based dynamic quotas for large sellers
  • Return headers that tell clients their current limit
Key Topics to Cover
Token Bucket
Redis
API Gateway
Dynamic 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 would you prevent one integrator serving 10,000 sellers from starving the backend?
  • How would you implement this with Redis atomically?
  • What changes for batch operations like submitting a feed with 50,000 items?
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: each operation (getOrders, updateListings, getReports) has a default restore rate (say 0.5 requests per second) and burst (say 20); limits apply per seller per application; some operations...

High-Level Design

An API Gateway layer authenticates the caller (application id plus seller authorization), resolves the operation, and calls a Quota service before routing to backends. Quota rules live in a config tab...


Submit Your Answer
Markdown supported