Design the Video View Event Pipeline Behind Creator Analytics
Last updated: November 29, 2026
Quick Overview
Design the pipeline that ingests video view and engagement events from TikTok clients and serves accurate per-video and per-creator analytics to creators within minutes.
TikTok
November 29, 20260
0
0 solved
Design the pipeline that ingests video view and engagement events from TikTok clients and serves accurate per-video and per-creator analytics to creators within minutes.
Creators check TikTok Studio analytics constantly after posting, and the numbers also feed monetization programs. The interviewer checks event ingestion at scale, deduplication, streaming versus batch correctness, and serving fast dashboards.
What the Interviewer Expects
- Designs client event collection with batching and idempotent ids
- Uses a streaming path for freshness and a batch path for correctness
- Handles late, duplicate and invalid events
- Chooses a serving store suited to per-video time series queries
- Explains how analytics and payout numbers stay consistent
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 prevent bot views from inflating creator analytics?
- How do you backfill after a bug in the streaming job?
- How would you support a new metric like average watch percentage?
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
Functional: creators see views, likes, shares, watch time, traffic sources and audience demographics per video and over time; data appears within about 5 minutes; daily numbers are final and consi...
High-Level Design
- Clients batch events with a unique event id, user id, video id and client timestamp, and send them to collection endpoints.
- Collectors validate and write to a partitioned log (Kafka-styl...