Design an ad audience targeting system
Advertisers define audiences, including by uploading large lists of users, and campaigns target those audiences. Design the system that ingests audience data at scale and, when an ad is about to be served, decides quickly whether the user is in a campaign's audience. Cover the bulk upload path, storage and indexing of memberships, the low-latency lookup on the serving path, updates and deletions, and privacy constraints.
No answer yet. Write the first one; the best answer gets endorsed.
