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.
25 write-ups
| Title | Difficulty |
|---|---|
| Design a Distributed Rate Limiter Cap how many requests each user, IP or API key can make, across a fleet of gateways, at a million requests per second, while adding about a millisecond of latency. | Medium |
| Design a Unique ID Generator Hand out unique, roughly time-ordered 64-bit IDs across many machines without coordination, plus strictly ascending sequences and idempotency keys for safe retries. | Easy |
| Design a URL Shortener Turn long URLs into short, unique codes and redirect billions of clicks a day quickly, with custom aliases, expiry, and a Pastebin-style variant for text. | Easy |
| Design a Block Storage Service like EBS Give virtual machines network disks on demand, with sub-millisecond replicated writes, placement that avoids fragmentation, incremental snapshots to object storage and safe failover. | Hard |
| Design a CI/CD System Build and test every push on isolated runners like GitHub Actions or Jenkins, then roll the result out safely to a global server fleet, or over the air to millions of devices. | Hard |
| Design a Configuration Management System Let engineers add, delete and search configuration, and push every change to a hundred thousand running service instances within seconds, safely, with history and rollback. | Medium |
| Design a Distributed Lock Let many service instances agree on who owns a resource right now, with TTLs so crashed holders let go, fencing tokens so paused ones can't do damage, and seat holds as the worked example. | Medium |
| Design a Feature Flag System Turn features on for specific users, segments and percentages across environments and platforms, evaluate a million flags a second in-process, and audit every change. | Medium |
| Design a Large File Distribution System Get a 10 GB binary or model onto 10,000 servers in a few minutes with peer-to-peer piece exchange, locality-aware peers, integrity checks and staged software rollouts. | Medium |
| Design a Load Balancer Spread a million requests per second across a changing pool of servers, with L4 and L7 tiers, health checks, the right algorithm for each workload, and no single box to fail. | 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 API Gateway One front door for hundreds of microservices that routes, authenticates and rate limits 500k requests per second, shapes responses per client with BFFs, and survives slow backends. | Medium |
| Design an Internationalization System Manage UI strings in 50 languages with correct plurals, pronouns and formats, give translators a reviewed and audited workflow, ship updates without app releases, and translate user posts on demand. | Medium |
| Design Shopify A multi-tenant store builder for millions of merchants, covering tenant isolation in pods, Salesforce-style custom fields, custom domains with automatic HTTPS, and one store's flash sale. | Hard |
| AWS Lambda What you need to know about AWS Lambda for system design interviews, including the execution model, invocation types, cold starts, concurrency and scaling, pricing, retries and when serverless fits. | |
| Docker What you need to know about Docker for system design interviews, including images and layers, namespaces and cgroups, the runtime stack, networking, volumes, isolation limits and image distribution. | |
| Kubernetes What you need to know about Kubernetes for system design interviews, including pods, the control plane, reconciliation, scheduling, Services, autoscaling and rollouts, plus when it's worth bringing up. | |
| Nginx What you need to know about Nginx for system design interviews, including its event-driven architecture, reverse proxying, load balancing, TLS termination, caching, rate limiting and where it fits. | |
| Prometheus What you need to know about Prometheus for system design interviews, including its data model, pull-based scraping, TSDB internals, PromQL, alerting, cardinality, scaling, and Grafana and OpenTelemetry. | |
| ZooKeeper and etcd What you need to know about ZooKeeper and etcd for system design interviews, including consensus and quorums, znodes and leases, watches, leader election, distributed locks, fencing tokens and their limits. |