Design an Edge Cache for Public LinkedIn Profile Pages

Last updated: November 29, 2026

Quick Overview

Public profile pages (viewed by logged-out visitors and search engine crawlers) receive huge traffic. Design a CDN and caching layer that serves them quickly while keeping content fresh after profile edits.

LinkedIn
System Design
Software Engineer
LinkedIn
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

0

0 solved


Public profile pages (viewed by logged-out visitors and search engine crawlers) receive huge traffic. Design a CDN and caching layer that serves them quickly while keeping content fresh after profile edits.

Public profiles are a major source of search traffic to LinkedIn and are frequently scraped, so caching and protection matter. The interviewer checks whether you know what is cacheable, how to invalidate, and how logged-in and logged-out views differ.

What the Interviewer Expects
  • Separates logged-out public pages from personalized logged-in pages
  • Uses a CDN with cache keys and TTLs
  • Designs invalidation on profile edits
  • Respects member visibility settings
  • Mentions bot protection at the edge
  • Estimates hit rate benefits
Key Topics to Cover
CDN
cache invalidation
TTL
edge caching
bot mitigation
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 member who switches their profile to private?
  • How would you prevent scrapers from using the cache to harvest profiles?
  • Should crawlers see a different version than browsers?
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: serve public profile HTML to logged-out visitors; respect each member's public visibility settings (some sections hidden); reflect edits within minutes; logged-in views are personalize...

High-Level Design
  • CDN in front of the public profile service.
  • Cache key: URL (vanity name) plus locale and device class. Cookies stripped for logged-out requests so they share cache entries.
  • Logged-in requests by...

Submit Your Answer
Markdown supported