PracHub
QuestionsPremiumLearningGuidesInterview PrepCoaches
|Home/System Design/Snapchat

Design a streaming ads system

Last updated: Apr 28, 2026

Quick Overview

This question evaluates a candidate's competency in designing low-latency, scalable, and privacy-compliant ad-insertion platforms, encompassing distributed systems, real-time bidding integration, ad format and measurement standards, content and identity signal processing, pacing/frequency control, and multi-region fault tolerance.

  • hard
  • Snapchat
  • System Design
  • Software Engineer

Design a streaming ads system

Company: Snapchat

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Design an ad-insertion platform for a video streaming service that supports live and on-demand content. Gather requirements (e.g., targeting, pacing, frequency capping, brand safety), and design components including the ad decision engine, metadata store, user/segment service, content signals, and delivery through CDNs/players with VAST/VPAID/OMID support. Ensure low-latency ad selection (<100 ms at the edge), fault tolerance, multi-region failover, privacy compliance, and measurement (impressions, quartiles, clicks). Explain how to integrate with RTB exchanges, handle ad podding, dedup across devices, and run A/B experiments on ad policies.

Quick Answer: This question evaluates a candidate's competency in designing low-latency, scalable, and privacy-compliant ad-insertion platforms, encompassing distributed systems, real-time bidding integration, ad format and measurement standards, content and identity signal processing, pacing/frequency control, and multi-region fault tolerance.

Related Interview Questions

  • Design a News Aggregator - Snapchat (hard)
  • Design a device owner lookup service - Snapchat (nan)
  • Design real-time ad impression and spend tracking - Snapchat (nan)
  • Design short URL service with click counting - Snapchat (hard)
  • Design a search-to-ads ranking pipeline - Snapchat (medium)
Snapchat logo
Snapchat
Sep 6, 2025, 12:00 AM
Software Engineer
Onsite
System Design
2
0

System Design: Ad-Insertion Platform for Live and On-Demand Video

Context

You are designing an end-to-end ad-insertion platform for a consumer video streaming app that serves both live and on-demand (VOD) content on mobile and TV clients. The platform must support client-side and server-side ad insertion, integrate with external ad exchanges, and operate globally with strict latency and reliability goals.

Requirements

  • Functional
    1. Targeting: by user segments, device, geo, time, content metadata, context.
    2. Pacing and Budgeting: ensure line items spend smoothly over time and do not overspend.
    3. Frequency Capping: per-user and cross-device caps at creative/line-item/advertiser levels.
    4. Brand Safety: content classification, blocklists/allowlists, competitive separation, IVT/fraud detection.
    5. Ad Formats and Standards: VAST, VPAID, OMID; video/mid-roll/pre-roll/post-roll; skippable or not.
    6. Ad Podding: construct multi-ad breaks with duration constraints and category separation.
    7. RTB Integration: OpenRTB to demand-side platforms (DSPs) with strict timeouts.
    8. Delivery: SSAI for seamless playback and CSAI for interactive units; HLS/DASH manifests through CDNs.
    9. Measurement: impressions, quartiles (25/50/75/100), clicks, viewability (OMID), IVT filtering.
    10. Deduplication: identity across devices for frequency and measurement.
    11. Experimentation: A/B testing of ad policies (e.g., frequency caps, auction rules, pod policies).
  • Non-Functional
    1. Low-latency ad selection: p99 < 100 ms at the edge.
    2. High availability: fault tolerance, multi-region active-active, graceful degradation.
    3. Privacy and Compliance: GDPR/CCPA/COPPA; consent-aware targeting; data minimization, regional data residency.
    4. Scale: tens of millions of DAU, high QPS, live-event spikes.
  • Assumptions
    • Clients support HLS/DASH; mobile/TV SDKs can send OMID signals.
    • For SSAI, we control a stitcher/manifest manipulator; for CSAI, clients can render VAST/VPAID.

Deliverables

Design components including the ad decision engine, metadata store, user/segment service, content signals pipeline, and delivery through CDNs/players with VAST/VPAID/OMID support. Explain:

  • Low-latency selection at the edge (<100 ms), fault tolerance, and multi-region failover.
  • Privacy compliance and measurement (impressions, quartiles, clicks).
  • RTB exchange integration, ad podding, cross-device deduplication, and A/B experimentation on ad policies.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Snapchat•More Software Engineer•Snapchat Software Engineer•Snapchat System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.