← Questions

Design an ad audience targeting system

0
NetflixSystem designLast asked Jan 2026

A system design interview question asked in Netflix's technical phone screen, last asked Jan 2026. It tests ads, targeting and batch ingestion.

Design an ad audience targeting system. Advertisers define audiences, including by uploading very large lists of users, and campaigns target those audiences. When an ad is about to be served, the system must decide within a few milliseconds whether the current user belongs to the audiences of the candidate campaigns.

Requirements

  • Functional: create audiences from uploads (hashed emails or device ids) and from rules; add and remove members; attach audiences to campaigns; answer "which of these audiences contain this user" on the serving path; delete audiences and honour user opt-outs.
  • Non-functional: uploads of tens of millions of ids; billions of memberships overall; lookups in single-digit milliseconds at very high QPS; isolation between advertisers; privacy and compliance.

Clarifying questions

  • How many audiences exist, how large are they, and how many does one request check?
  • How fresh must membership be after an upload or a removal?
  • Are uploaded identifiers hashed, and how are they matched to our users?
  • Are false positives tolerable (approximate structures), or must lookups be exact?
  • What are the privacy rules: minimum audience size, retention, opt-out deadlines?

What a strong answer covers

  • The bulk ingestion path: upload, validation, identifier matching, deduplication and a batch pipeline that writes memberships, with progress and error reporting.
  • Storage keyed by user: user id to a set of audience ids (sorted lists or bitmaps) so one lookup answers all candidates, versus audience-keyed storage for building and deleting.
  • The serving lookup: a sharded low-latency key-value store with a local cache, timeouts and a safe default when the lookup fails.
  • Updates and deletions, versioning of large audience rebuilds so they swap in atomically.
  • Privacy: hashed identifiers, minimum audience sizes, opt-outs applied quickly, per-advertiser isolation and access control.
  • Capacity estimates and monitoring of match rates, lookup latency and ingestion lag.

Follow-ups

  • An advertiser uploads a 100-million-user list. Walk through it until it serves.
  • A user opts out of targeting: how quickly does every audience forget them?
  • Support audiences defined by rules on recent behaviour (watched a genre in the last 7 days).

Where it's asked

  • Netflix · Technical phone screen · Last asked Jan 202660 min · Coding, practical problem solving, or SQL and pipeline design, depending on the org

What it tests

ads · targeting · batch ingestion · low latency

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing