Design the Who Viewed Your Profile Service

Last updated: November 29, 2026

Quick Overview

Design the backend for LinkedIn's "Who viewed your profile" feature: record profile views, show members a deduplicated list of recent viewers and a 90-day count, and respect viewer privacy settings.

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

0

0

0 solved


Design the backend for LinkedIn's "Who viewed your profile" feature: record profile views, show members a deduplicated list of recent viewers and a 90-day count, and respect viewer privacy settings.

This feature is a core Premium hook at LinkedIn, so the design must support a free tier preview and a richer Premium view. Interviewers look for a clean event pipeline, a storage model built for per-member reads, and correct handling of privacy modes like private browsing.

What the Interviewer Expects
  • Captures requirements including privacy modes and Premium versus free views
  • Uses an event stream to decouple page views from writes
  • Designs a per-viewee storage layout with deduplication
  • Handles hot profiles and high write fan-in
  • Applies privacy at write and read time correctly
  • Estimates scale with rough numbers
Key Topics to Cover
event streaming
wide-column storage
deduplication
privacy controls
Kafka
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 do you handle a viewer who changes privacy settings after viewing?
  • How would you compute trends like views by company or title?
  • How do you stop scrapers from flooding someone's viewer list?
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 logged-in member opens another profile; show the viewee a list of recent viewers (name, headline, time), deduplicated per viewer per day; show counts for the last ...

High-Level Design
  1. Profile page service emits a ProfileViewEvent (viewer id, viewee id, timestamp, viewer privacy mode at view time, source) to Kafka.
  2. A stream processor filters bots and self-views, deduplicates...

Submit Your Answer
Markdown supported