This question evaluates a candidate's competency in designing distributed, low-latency stateful systems for ad delivery, including consistency and atomicity reasoning, storage and messaging choices, high-QPS scaling, and operational failure-mode handling; it is in the System Design domain with an ad-tech and distributed-systems focus.
Design a frequency capping system for an ads platform.
Goal: For each (user, campaign) (or (user, ad)), enforce rules like:
Requirements to address:
Produce a clear architecture and justify key trade-offs between strict vs best-effort capping.