System Design Question Preview
Design an ad marketplace that connects publisher websites with advertisers or ad providers. When a publisher page loads, it asks the marketplace for an ad to show in a specific placement. The system should select an eligible ad, return the creative and click-tracking URL quickly, and later record impressions, clicks, and advertiser charges.