System design case studies
9 worked system design walkthroughs: requirements, capacity estimates, APIs, data models, deep dives and trade-offs.
- URL Shortener: Turn a long URL into a short code that redirects back to it. The classic first system design question.
- Instagram: Design a photo-sharing network where users post images, follow others, and see a feed of posts from people they follow.
- Twitter / X: Design a microblogging platform where users post short messages ('tweets'), follow others, and see a timeline of tweets from people they follow.
- WhatsApp: Design real-time messaging: one-to-one and group chats with reliable delivery, read receipts, and end-to-end encryption.
- Uber: Design ride-hailing: riders request a trip, get matched with a nearby driver in real time, and both track the trip's location and price live.
- YouTube: Design a video platform where anyone can upload a video and anyone can watch it instantly, at the quality their connection supports.
- Google Drive: Design cloud file storage and sync: upload any file, access it from any device, share it, and keep edits consistent even when made offline or from several places at once.
- E-commerce Platform: Design an online store: browse and search a catalog, keep items in a cart, and check out reliably without overselling stock or charging twice.
- Netflix: Design a subscription streaming service: a fixed, licensed catalog watched by tens of millions at once, on any device, resuming exactly where you left off.