PIXELBANKv9.1.0
Menu

Ad Click-Through Rate Prediction

Design a system that predicts the probability a user will click on an ad, used for real-time ad auction bidding. Handle billions of events per day.

Scenario: An ad platform serves 10 billion ad impressions daily across web and mobile. For each ad request, the system must predict the click-through rate (CTR) for hundreds of candidate ads within 10ms to determine auction bids and ad placement.

Your Task: Design the end-to-end CTR prediction pipeline from feature computation to real-time serving.

Your design should address:

  1. Feature engineering from user behavior, ad creative, and contextual signals
  2. Model architecture that handles sparse categorical features at scale
  3. Real-time serving with sub-10ms latency at millions of QPS
  4. Continuous online learning as user behavior shifts
  5. Calibration so predicted probabilities are accurate, not just well-ranked

Think about: Feature interaction modeling, handling delayed conversions, position bias, and the explore-exploit tradeoff for new ads.

Design Mode

📝 Your Design Approach

Describe your system design approach. Consider components, data flow, and key decisions.

🎯 Design Questions(Select all that apply)

Q1.Why do feature interactions matter for CTR prediction?

Q2.How should the system handle billions of sparse categorical features?

Q3.What calibration requirement exists for CTR models used in ad auctions?

Q4.How should the system handle the feedback loop between predictions and ad display?

0 of 4 questions answered
Ad Click-Through Rate Prediction - Medium | PixelBank