Design Tubi's Ad Decisioning Service for Video Breaks

Last updated: November 29, 2026

Quick Overview

Design the service that, when a viewer reaches an ad break, chooses which ads fill the pod within a tight latency budget, honoring campaign targeting, budgets with even pacing, frequency caps, and competitive separation.

Tubi
System Design
Software Engineer
Tubi
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the service that, when a viewer reaches an ad break, chooses which ads fill the pod within a tight latency budget, honoring campaign targeting, budgets with even pacing, frequency caps, and competitive separation.

Tubi runs its own ad server, publicly described as built on Scala and Akka Streams, because every free minute is paid for by ads. The design round checks whether the candidate can hold a sub-100ms decision path while keeping budget, pacing and frequency state roughly consistent across a fleet.

What the Interviewer Expects
  • Separates the hot decision path from campaign management and reporting
  • Keeps targeting indexes in memory and refreshes them asynchronously
  • Explains budget pacing and how distributed servers share spend without a lock per request
  • Places frequency cap state in a low-latency store with TTLs
  • Covers impression beacons, reconciliation and fallbacks to backfill
Key Topics to Cover
Ad serving
Budget pacing
Frequency capping
Low latency
Event pipelines
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.
Possible Follow-up Questions
  • How would you integrate external demand such as programmatic bids while keeping the latency budget?
  • What happens to pacing if a large region goes offline for 20 minutes then returns?
  • How do you avoid overspending a campaign that is almost out of budget across 200 servers?
  • How would you support server-side ad insertion for live channels?
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: given a request (viewer id, device, geo, content id and genre, break position, pod length), return an ordered list of ads that fit the pod. Respect targeting, campaign flight dates, daily ...

High-Level Design

Ad request flows from the player or SSAI stitcher to a stateless decision service. Each instance holds an in-memory campaign index (inverted index from targeting attributes to eligible line items) bui...


Submit Your Answer
Markdown supported

Related Questions