Design an ad exchange that receives OpenRTB-like bid requests, fans them to DSPs in parallel, runs a second-price auction, and logs outcomes for clearing and fraud analysis.
Functional requirements
- Sub-100ms bid request fan-out and response aggregation
- Seat- and DSP-level throttles, QPS caps, and deal ID routing
- Cookieless or ID graph hooks with privacy constraints
- Win/loss/billing notification callbacks with dedupe
- Supply-path optimization and basic floor enforcement
Non-functional requirements
- Massive horizontal scale during peak QPS
- Strict deadline scheduling—drop slow bidders
- Durable auction logs for disputes
- Isolation so one DSP cannot stall the exchange