
📝 System Design Interview Classics
URL shortener, chat, news feed, ride matching, rate limiter and other interview favourites. Open any template to see the finished diagram, then use it as the starting point for your own in the Studio.
11 templates
The classic interview design for a service like bit.ly: short code generation, fast redirects from a cache, and click analytics processed separately.
How a one-to-one chat message is delivered in a WhatsApp-style system, with sent, delivered and read ticks, and push notifications when the receiver is offline.
How posts reach followers' feeds: fan-out on write for normal users, fan-out on read for celebrities, and a ranked feed built from a cache.
The core of a ride-hailing app: drivers stream their locations, a geo index finds nearby drivers, and a matching service offers the trip to the best one.
How a token bucket rate limiter decides whether to let an API request through, using Redis so all servers share the same counts.
A notification system that sends email, SMS and push messages at scale: one API, a queue per channel, user preferences, and retries.
How search suggestions appear as you type: a prefix index built offline from past searches, served from memory, and refreshed regularly.
How seat booking avoids double-selling: seats are locked for a few minutes during payment, and released if payment fails or times out.
How uploaded videos become streamable: resumable upload, transcoding into several qualities, storage, and delivery through a CDN with adaptive bitrate.
How a distributed cache spreads keys across nodes with consistent hashing, so adding or removing a node moves only a small share of keys.
The states a file goes through in a sync client like Dropbox: detected, chunked, uploaded, synced, and conflict handling when two devices edit the same file.
More System Design Interview Classics templates are being added regularly.