Code Room
System designEasysd-g553
Subject AnalyticsLevel Entry–Mid~25 minCommon in Distributed systems interviewsIndustries Technology, Software development

Question

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.

Narrate your design
Loading whiteboard…
Run or narrate your approach, then ask the coach.