Design Twitter in 45 minutes: an interview script
Kabir ShahFeatured AuthorPosted · 1 min read
An interview is a time-boxed conversation, not an essay. Here is how I split 45 minutes.
- Requirements (5 min). Post, follow, home timeline. Ask about scale.
- Estimates (5 min). Writes per second, reads per second, storage per year.
- API and data model (10 min).
POST /tweets,GET /timeline, tweets and follows tables. - High-level design (15 min). Fan-out on write, then raise the celebrity problem yourself.
- Deep dive (10 min). Whatever the interviewer cares about: caching, IDs or search.
Leave the last minute to summarise the trade-offs you made.
Comments