Skip to content

Latest commit

 

History

History
76 lines (59 loc) · 2.85 KB

File metadata and controls

76 lines (59 loc) · 2.85 KB

System Design Problems

This document serves as an index to common HLD interview problems. Each problem includes a comprehensive design walkthrough.

GeeksforGeeks Articles

Videos

Hindi

English




Problem Index

Entry Level

Problem Difficulty Key Concepts
URL Shortener Easy Hashing, Database, Base62
Pastebin Easy Similar to URL Shortener
Rate Limiter Easy Token Bucket, Redis

Medium Level

Problem Difficulty Key Concepts
Twitter/X Medium Fan-out, Timeline, Caching
Instagram Medium CDN, Image Storage, Feed
Notification System Medium Pub/Sub, Push, WebSockets
Chat Application Medium WebSockets, Message Queue
Search Autocomplete Medium Trie, Caching

Advanced Level

Problem Difficulty Key Concepts
YouTube/Netflix Hard CDN, Video Encoding, HLS
Uber/Lyft Hard Geospatial, Real-time, Matching
WhatsApp/Messenger Hard E2E Encryption, Delivery Status
Google Docs Hard CRDT, Operational Transform
Distributed Cache Hard Consistent Hashing, Eviction

Problem-Solving Framework

1. Requirements Clarification (5 min)

  • Functional: What should the system do?
  • Non-Functional: Scale, latency, availability
  • Out of Scope: What we won't cover

2. Estimation (5 min)

  • Users: DAU, MAU
  • Traffic: QPS, read/write ratio
  • Storage: Data size, growth rate
  • Bandwidth: Upload/download needs

3. High-Level Design (10 min)

  • Draw major components
  • Show data flow
  • Identify key decisions

4. Deep Dive (15 min)

  • Database schema
  • API design
  • Critical algorithms
  • Caching strategy

5. Bottlenecks & Trade-offs (5 min)

  • Identify potential issues
  • Scaling strategies
  • Single points of failure