Question bank

No. 33 · Storage & data modeling

Design like counts for very popular posts

Intermediate35 minCounting & aggregation · Hot keys · Idempotency · Sharding & partitioning · Caching · Consistency models

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. Distributed Counter System Design

    systemdesign.one · Neo KimArticleFull walkthroughFreeVetted

    Long, thorough treatment of counter options: SQL row, sharded rows, Redis, stream aggregation and CRDT counters, plus cross-region concerns. Best single read for the counting core; wordy in places.

    Link checked 2026-12-06

  2. Distributed counters

    Firebase DocumentationDocsBackgroundFreeVetted

    Official explanation of the sharded-counter pattern: split one hot counter into N shards, write one at random, sum on read. Small, concrete, and the exact trick for very popular posts.

    Link checked 2026-12-06

  3. System Design Question: How does FB/Insta store/retrieve likes

    BlindDiscussionBackgroundFreeVetted

    Engineers debating denormalised counts versus stream aggregation and handling unlikes. Useful for the trade-off conversation; it is informal discussion, not a design.

    Link checked 2026-12-06

  4. 18. System Design Example (Realtime Like Counter) | Welcome to the Coding Interview: You Suck

    EChanTech (YouTube)VideoFull walkthroughFreeVetted

    Builds a near-real-time like counter with batching and sharded pipelines, then critiques its own answer. Leans more toward live updates than toward storage correctness.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 2 of 3 links from the audited catalog kept
  • blog.interviewcamp.io/live-design-facebook-likes-distributed-counter Lands on a generic index of class recordings rather than the specific lesson; the underlying video was not reviewed.

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)

Meta (Facebook)AmazonX (Twitter)

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