LeetDesign
← All problems
Easy

Design a View Counter

Count page views across customer sites and serve the totals back to dashboards.

Design a service that counts page views. Customer sites fire a hit on every page load, and dashboards read the totals back.

A hit only ever adds one to a counter; nothing is computed for the visitor who caused it.