v9.1.1
Menu

Ad Click-Through Rate Prediction

mediumPROSystem ArchitectureML System DesignML System Design 2

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.

Learn this in

More from ML System Design 2

Design mode

Your design approach

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

Design questions(Select all that apply)

Q1Why do feature interactions matter for CTR prediction?

Q2How should the system handle billions of sparse categorical features?

Q3What calibration requirement exists for CTR models used in ad auctions?

Q4How should the system handle the feedback loop between predictions and ad display?

0 of 4 questions answered