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.
19 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 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 Price Alert System Track prices for 50M products and 10k stock tickers, keep price history, and match every change against 250M user thresholds so each alert fires once, on time. | 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 Shipment Tracking System Track tens of millions of parcels a day through hubs, trucks and partner carriers, turning out-of-order scan events from many parties into a correct status, location history, ETA and notifications. | 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 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 an IoT Platform Connect 10 million devices over MQTT, ingest a million sensor readings per second, roll them up for dashboards and alerts, and manage device config, commands and firmware. | Hard |
| Design Google Maps Serve map tiles at every zoom level, compute driving routes on a continent-sized road graph with live traffic, take Waze-style incident reports, and plan public transit trips. | Hard |
| Kafka What you need to know about Apache Kafka for system design interviews, including topics and partitions, consumer groups, replication and the ISR, delivery guarantees, retention and compaction, and scaling. | |
| Amazon Kinesis What you need to know about Amazon Kinesis for system design interviews, including shards and their limits, partition keys, consumers and enhanced fan-out, the KCL, resharding, Firehose, and Kinesis vs Kafka. | |
| Apache Flink What you need to know about Apache Flink for system design interviews, including the dataflow model, keyed state, event time and watermarks, windows, checkpoints and exactly-once, scaling, and Flink vs Spark. | |
| Apache Pulsar What you need to know about Apache Pulsar for system design interviews, including stateless brokers over BookKeeper, segments, subscription types, multi-tenancy, geo-replication and tiered storage, vs Kafka. | |
| Apache Spark What you need to know about Apache Spark for system design interviews, including DataFrames, the driver and executors, stages and shuffles, Structured Streaming, deployment modes and Spark vs Flink. | |
| Change Data Capture How to keep search indexes, caches, warehouses and other services in sync with a database by reading its log. Polling vs triggers vs log-based CDC, Debezium, ordering, snapshots and pitfalls. | |
| Stream vs Batch Processing When to compute over data in scheduled batches and when to process it as a stream. Event time, windows, watermarks, state, exactly-once, micro-batching, and Lambda vs Kappa. |