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.
17 write-ups
| Title | Difficulty |
|---|---|
| Design an Ad Click Aggregator Record a billion ad clicks a day, redirect users instantly, and give advertisers minute-level, near real-time reports that are accurate enough to bill on, even when one ad goes viral. | Hard |
| 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 Donation App Take donations for charities during a time-limited fundraising event, charge every donor exactly once, show a live running total to a million viewers, and pay the money out to the right charities. | Easy |
| 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 Real-Time Analytics Platform Build an Amplitude-style clickstream platform that ingests a million events a second from SDKs that go offline, updates dashboards within seconds and answers funnel and retention queries fast. | Hard |
| Design a Real-Time Fraud Detection System Score every card transaction for fraud within 100 ms using streaming window rules like "five countries in one minute", ML scores from a model API, and per-bank rules for many banks. | Hard |
| 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 an A/B Testing Platform Run a thousand concurrent experiments: assign users consistently, log exposures, turn 50 billion events a day into per-variant metrics, and report results you can trust. | Hard |
| Design an Ad Serving System Choose and serve an ad in under 500 ms, mixing direct campaigns with real-time bids from outside buyers, while pacing budgets, counting impressions for billing and filling ad breaks in streaming video. | Hard |
| 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 |