Design an Ad Serving System

Problem Statement

Design a real-time ad serving system.

OR

Develop an Ads Management and Display System for a Social Feed

OR

Design an Ad Click Aggregator

Core Requirements:

  • When a user visits a webpage, the system selects and serves a relevant ad.
  • Ad selection should be based on user demographics, browsing history, and the content of the page.
  • Track ad impressions, clicks, and conversions for analytics and billing.
  • Advertisers can create and manage ad campaigns.

Scale Requirements:

  • Serve 100 billion ad impressions per month.
  • Handle 500,000 ad requests per second.
  • Ad selection and serving latency must be under 100ms.

Additional Considerations:

  1. How would you design the ad selection (targeting) logic?
  2. How would you build the data pipeline for collecting and processing user data for targeting?
  3. How would you handle ad auctions in real-time bidding (RTB) scenarios?
  4. How would you combat click fraud?

PlayGround

Loading...
Loading...