ad_id, user_id (cookie), timestamp, and click metadata (IP, browser, referrer).A good framing for the interview: high write throughput + near-real-time reads + a handful of aggregation dimensions is what drives most of your later design decisions.
Want to paste that into the Requirements panel and I'll review it, or would you like to go deeper on one of these (e.g., why eventual consistency is the right call here)?
POST - Generate Events
/api/v1/event
GET - Get statistics by time/url
/api/v1/stats/uid|tid
Describe the overall system architecture. Identify the main components needed to solve the problem end-to-end. Use the diagramming tool to create a block diagram.
Define the data model. Identify the main entities, their attributes, and relationships. Consider the choice of database type (SQL vs NoSQL) and justify your decision based on access patterns...
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.