Question bank

No. 49 · Real-time delivery

Design a live viewer count for a page

Intermediate30 minCounting & aggregation · Time windows · Hot keys · Failure detection · Caching · Estimation

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough 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.

  1. From Zero to Millions: Designing a Real-Time Active User Counter System

    Medium · Raju MethukuArticleFull walkthroughFreeVetted

    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)

  2. Now You See Me, Now You Don't: LinkedIn's Real-Time Presence Platform

    LinkedIn Engineering · Akhilesh GuptaEngineering blogPartialFreeVetted

    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

  3. Redis sorted sets

    Redis DocumentationDocsBackgroundFreeVetted

    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

  4. HyperLogLog

    Redis DocumentationDocsBackgroundFreeVetted

    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

  5. Count Unique Active Users Design Deep Dive with Google SWE! | Systems Design Interview Question 26

    Jordan has no life (YouTube)VideoPartialFreeVetted

    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.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions