Design Per-App Request Quotas for TikTok Developer APIs

Last updated: November 29, 2026

Quick Overview

Design the system that enforces per-app and per-endpoint request quotas for third-party developers using TikTok's public APIs, such as login, content posting and research access.

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

0

0

0 solved


Design the system that enforces per-app and per-endpoint request quotas for third-party developers using TikTok's public APIs, such as login, content posting and research access.

TikTok exposes developer APIs for login, video posting and research, and partners range from tiny apps to large schedulers. The interviewer checks quota models, distributed counting, low-latency enforcement at the gateway, and a clear developer experience.

What the Interviewer Expects
  • Distinguishes short-term rate limits from daily or monthly quotas
  • Chooses a counting algorithm and explains its accuracy trade-off
  • Enforces limits at the API gateway with low added latency
  • Handles distributed counting across regions
  • Gives developers clear headers, errors and a usage dashboard
Key Topics to Cover
rate limiting
token bucket
quotas
API gateway
distributed counters
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 handle a developer who is approved for a higher tier mid-day?
  • How precise does the count need to be across regions?
  • How do you protect TikTok's backend if many apps spike at once even within their quotas?
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 app has per-endpoint limits: a burst rate (requests per second) and a quota (requests per day); some limits are per user token too (for example video posts per creator per day); d...

High-Level Design
  • API gateway authenticates the app, finds its policy, and calls a local rate limiter before routing to the backend.
  • Policy service stores tiers and per-app overrides; gateways cache policie...

Submit Your Answer
Markdown supported