System design
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
11 write-ups
| Title | Difficulty |
|---|---|
| Design Top K / Trending Hashtags Find the top K hashtags, posts or products over sliding 10-minute, 1-hour and 24-hour windows, by location and category, with past trends, from a stream of a billion events a day. | Medium |
| Design a Coupon System Promo codes with global, per-user and per-card redemption limits, time windows and referral rewards, enforced exactly under sale-day concurrency and kept in step with orders that fail or get refunded. | Medium |
| Design a Driver Location Heatmap Turn 375k driver location pings per second into a live heatmap of distinct drivers per area over the last 20 minutes in 1-minute buckets, and feed the same counts to surge pricing. | Medium |
| Design a Leaderboard Rank 100 million players in real time, show the global top 100, any player's exact rank and a friends-only board, with sorted sets, tie-breaking and sharding when one node isn't enough. | Medium |
| Design a Likes Counter Count likes, votes and views for billions of posts, where one viral post can take tens of thousands of likes a second, without losing a like or counting one twice. | Medium |
| Design a Live Viewer Count Show "48.2M watching" on a live match, counting unique users across devices from millions of heartbeats a second, and deliver the number to every viewer without melting the origin. | Medium |
| Design a Quota Management Service One storage quota shared by several products, like 15 GB across Drive, Photos and Gmail, checked on every upload and kept accurate as files come and go. | Medium |
| Design a Reviews and Ratings System Let users rate and review items, show an average and star histogram on every listing, keep aggregates right through edits and deletes, and rank items fairly when some have only a handful of ratings. | Medium |
| Design a Subscription Billing System Design billing for recurring subscriptions and pay-as-you-go usage, with exactly-once metering, proration, dunning, and a cost explorer whose estimates match the final invoice. | Medium |
| Design a Tagging Service One tagging service shared by an issue tracker, a wiki and a code host, that shows the tags on any item, lists every item with a tag, and ranks popular tags. | Medium |
| Design Reddit Communities, posts, up and down votes, ranked feeds and deeply nested comment threads, plus how the same design stretches to Quora and Stack Overflow with reputation. | Medium |