No. 49 · Real-time delivery
Design a live viewer count for a page
OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES
Further reading
At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.
- From Zero to Millions: Designing a Real-Time Active User Counter System
Beginner-friendly walkthrough using connections, Redis atomic updates and pushing counts back, including the multi-tab case. A bit simplistic on failure and cleanup of stale sessions.
Link checked 2026-12-06 (the site blocks automated checks; confirmed manually)
- Now You See Me, Now You Don't: LinkedIn's Real-Time Presence Platform
LinkedIn's real system for deciding who is online: periodic heartbeats, tolerance for flaky connections, and delayed triggers when heartbeats stop. Exactly the expiry logic a viewer count needs.
Link checked 2026-12-06
- Redis sorted sets
Official docs for sorted sets. Scoring viewers by last-seen time and trimming old scores is a common way to count current viewers; the docs teach the commands, not that pattern.
Link checked 2026-12-06
- HyperLogLog
Approximate unique counting in fixed small memory, with merge support across shards. Relevant if you count unique visitors over a window; not for an exact live count.
Link checked 2026-12-06
- Count Unique Active Users Design Deep Dive with Google SWE! | Systems Design Interview Question 26
Related problem (unique active users) walking from sharded sets to HyperLogLog to batch-corrected counts. Good for the approximation trade-off; not about a single page in real time.
Link checked 2026-12-06
Report a bad or misleading link
Reference audit: 2 of 2 links from the audited catalog kept
Every recommended link was kept.
We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.
COMPANY EVIDENCE · NOT A FREQUENCY CLAIM
Where it has been reported
Catalog tags (unverified)
Booking.com
Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.
KEEP GOING