Design an Ad Delivery System

Last updated: June 17, 2026

Quick Overview

Design a personalized ad serving system. Cover ad selection and auction mechanics, real-time bidding, targeting based on user signals, frequency capping, and serving latency requirements under 100ms.

Meta
System Design
Software Engineer
Meta
June 17, 2026
Software Engineer
Onsite
System Design
Hard

63

0

186 solved


Design a personalized ad serving system. Cover ad selection and auction mechanics, real-time bidding, targeting based on user signals, frequency capping, and serving latency requirements under 100ms.

How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • Functional Requirements:
    • Ad Selection: The system must select relevant ads based on user profiles, interests, and behavior.
    • Auction Mechanics: Implement a real-time bidding a...
Capacity Estimation
  • User Base: Assume Meta has approximately 2 billion active users.
  • Ad Requests: If each user generates an average of 10 ad requests per day, that equals 20 billion requests daily, or appro...

Submit Your Answer
Markdown supported

Related Questions