Design a Distributed Ad Serving and Targeting Platform
Last updated: March 3, 2025
Quick Overview
Design real-time bidding infrastructure with user targeting, ad auction logic, impression tracking, and fraud detection under 10ms latency.
ByteDance
System Design
Software Engineer
ByteDance
March 3, 2025Software Engineer
System Design Round
System Design
Hard
7
7
3,811 solved
Design real-time bidding infrastructure with user targeting, ad auction logic, impression tracking, and fraud detection under 10ms latency.
Advertising is ByteDance's primary revenue source. This tests ad tech system design with strict latency constraints.
What the Interviewer Expects
- Design real-time bidding with sub-10ms latency
- Implement user targeting with interest graphs
- Build ad auction logic with fairness constraints
- Design impression and click tracking pipeline
- Address ad fraud detection
Key Topics to Cover
Ad serving
Real-time bidding
User targeting
Auction design
Fraud detection
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 balance ad relevance with advertiser bid amounts?
- How do you handle frequency capping across devices?
- What is your approach to measuring ad attribution?
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 Requirements
- Real-Time Bidding: Support high-frequency ad auctions with a bid request-response cycle under 10ms.
- User Targeting: Implement user interest graphs to deliver ...
Capacity Estimation
Assuming ByteDance has approximately 1 billion active users:
- Ad Requests Per User: Estimate 100 ad requests per user per day. This leads to about 100 billion ad requests daily.
- *Peak Traffic...
Submit Your Answer
Markdown supported