Design Real-Time Playback Quality Monitoring for TikTok Video
Last updated: November 29, 2026
Quick Overview
Design a system that collects video playback quality metrics from TikTok clients, such as startup time and rebuffering, and shows real-time dashboards and alerts by region, network, CDN and app version.
TikTok
November 29, 20260
0
0 solved
Design a system that collects video playback quality metrics from TikTok clients, such as startup time and rebuffering, and shows real-time dashboards and alerts by region, network, CDN and app version.
Playback quality directly affects watch time, and problems are often local: one CDN in one country, or one Android app version. The interviewer checks client telemetry design, high-cardinality aggregation, percentile computation at scale, and alerting that pinpoints the cause.
What the Interviewer Expects
- Defines the key quality metrics and how the client measures them
- Designs a telemetry pipeline that tolerates huge volume via sampling and batching
- Aggregates by many dimensions while controlling cardinality
- Computes percentiles correctly in a distributed way
- Builds alerts that localize problems quickly
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you compute p95 startup time across many servers?
- How do you avoid alert floods when a whole region degrades?
- How would you detect a regression caused by a new app version during a staged rollout?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Metrics: time to first frame, rebuffer ratio (stall time divided by watch time), stall count per play, playback failure rate, average bitrate.
Functional: dashboards with one-minute granulari...
High-Level Design
- Client SDK records per-play events (start, first frame, stall start and end, error, end) and builds a compact summary per play.
- Ingest receives batched summaries and writes them to a par...