System Design · Snapchat · Medium
Problem Design a service for a shopping platform that records which users click which advertisements. Each click must associate the advertisement with the user and update the number of times that association has occurred. The service must also provide a real-time view of the most frequently clicked advertisements. API Implement an in-memory component with the following interface: recordClick registers one click for the specified advertisement and user. getUserAdClickCount…
Checking your access…