Code RoomPage view counter
EasyPrep Room Coding #3662

Page view counter

System designDistributed systemsEntry–Mid~25 min

Design a simple analytics counter that tracks page views for a small content site (a few thousand articles). For each article you want a total view count and a daily count, shown to the author on a dashboard. Writes happen on every page load; the dashboard is read occasionally. Describe how you record views and serve the counts without slowing down page loads.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify3:00 left
Estimate3:00 planned
Design8:30 planned
Deep dive6:30 planned
Failure4:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.