Design the Seen-By Viewer List for Instagram Stories at Scale

Last updated: November 29, 2026

Quick Overview

Design the feature that records who viewed each Instagram Story and shows the author a viewer list and count, including authors whose stories get millions of views within 24 hours.

Meta
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the feature that records who viewed each Instagram Story and shows the author a viewer list and count, including authors whose stories get millions of views within 24 hours.

A focused slice of the Stories product that tests write-heavy event ingestion with an ordered, paginated read for one privileged reader (the author). Interviewers want dedupe, hot-key handling, and a sensible ordering policy for huge lists.

What the Interviewer Expects
  • Ingest view events with deduplication per viewer
  • Handle hot stories from celebrity accounts
  • Choose an ordering for the viewer list and justify it
  • Expire data along with the 24-hour story
  • Respect blocks and hidden viewers
Key Topics to Cover
Event ingestion
Deduplication
Hot partitions
TTL
Approximate vs exact counts
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you order the list so the author sees people they care about first?
  • How do you show an exact count for 3M views cheaply?
  • What do you keep after the story moves to Highlights?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: record a view when a viewer sees a story frame; author sees total count and a scrollable list of viewers; views expire with the story (or persist for Highlights with limits).

**Non-fu...

High-Level Design

Clients batch view events (story_id, viewer_id, ts) and send them to an ingestion service that writes to a partitioned log. A view aggregator consumes the log and writes to a *viewer store...


Submit Your Answer
Markdown supported