COMPANY_GUIDE

Twitter/X System Design Interview: Complete Preparation Guide

Prepare for Twitter/X system design interviews — format, common questions, evaluation criteria, and a structured preparation roadmap.

22 minUpdated Jan 15, 2025
twitterxsystem-designinterviewpreparation

Interview format

5 rounds total.

System Design60 min

Design a large-scale distributed system. Twitter focuses heavily on real-time data processing, fan-out architectures, and timeline generation at scale.

Coding 145 min

Algorithm and data structure problem. Medium to hard difficulty, emphasis on clean code and optimal solutions.

Coding 245 min

Second coding round, often involving graph problems, string manipulation, or dynamic programming.

Domain Knowledge45 min

Deep dive into your area of expertise. For backend roles, expect questions on distributed systems, caching, and messaging.

Behavioral/Culture Fit45 min

Past experiences, conflict resolution, and alignment with company values. Focus on impact and ownership.

Commonly asked systems

Design Twitter timeline/news feedDesign a tweet search systemDesign trending topics detectionDesign a URL shortener (t.co)Design a real-time notification systemDesign Twitter Spaces (live audio)Design a content recommendation systemDesign a distributed rate limiterDesign an ad serving platformDesign a media upload and processing pipeline

What they evaluate

Scale AwarenessHigh

Can you design for 500M+ tweets/day? Twitter operates at massive scale with strict latency requirements for timeline generation.

Real-time SystemsHigh

Understanding of fan-out on write vs fan-out on read, pub/sub patterns, and real-time data processing pipelines.

Trade-off AnalysisHigh

Ability to articulate trade-offs between consistency and availability, especially for timeline and notification systems.

Data ModelingMedium

How you model tweets, relationships, and interactions. Knowledge of graph-based vs denormalized approaches.

CommunicationMedium

Clear, structured communication. Drive the discussion proactively and respond well to interviewer hints.

Tips

  • Understand fan-out on write vs fan-out on read deeply — this is central to Twitter's architecture
  • Be ready to discuss celebrity/hot-key problems and hybrid fan-out strategies
  • Know real-time stream processing (Kafka, Flink) and how Twitter uses them for trending topics
  • Practice back-of-envelope calculations for tweet volume, storage, and timeline generation latency
  • Discuss caching strategies — Twitter relies heavily on Redis and Memcached for timeline caching
  • Be prepared to discuss content moderation and trust & safety systems at scale

Preparation roadmap

Week 1Fundamentals
  • ·Study fan-out architectures and timeline generation
  • ·Review Twitter's published engineering blog posts
  • ·Practice 2-3 coding problems daily (graphs, strings)
Week 2Core Systems
  • ·Design Twitter timeline from scratch (fan-out on write + read hybrid)
  • ·Design tweet search with inverted index
  • ·Study real-time trending detection algorithms
Week 3Advanced Topics
  • ·Design notification delivery at scale
  • ·Design media processing pipeline
  • ·Practice system design mock interviews
Week 4Polish
  • ·Do 2-3 full mock interviews
  • ·Review behavioral stories (STAR format)
  • ·Refine back-of-envelope estimation skills
PRO

Unlock with Pro

Unlock the full content and everything at this level.

Get Pro — $9/moAlready a member? Log in

GO DEEPER

Master this topic in our 12-week cohort

Our Advanced System Design cohort covers this and 11 other deep-dive topics with live sessions, assignments, and expert feedback.

FREE_COURSES
preview