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
System Design
Software Engineer
TikTok
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

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
observability
telemetry
stream aggregation
percentile sketches
anomaly detection
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 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 Problems
Sample 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
  1. Client SDK records per-play events (start, first frame, stall start and end, error, end) and builds a compact summary per play.
  2. Ingest receives batched summaries and writes them to a par...

Submit Your Answer
Markdown supported