{}DSA Atlas

System Design (High-Level)

The system design interview framework and back-of-the-envelope estimation, scalability, caching, queues and streams, handling load (backpressure, shedding, autoscaling), data at scale, distributed-systems theory (consensus, clocks, quorums), probabilistic data structures and geo-indexing, microservices and infrastructure, reliability engineering, security at scale, and AI/LLM systems.

12 chapters73 interview questionsPractice this track’s questions →

High-level design interviews give you a vague prompt — design Instagram — and 45–60 minutes. You're evaluated on structured thinking: clarifying requirements, estimating scale, proposing a clean architecture, choosing data stores deliberately, identifying bottlenecks and failure modes, and articulating trade-offs. This track teaches the building blocks; the Case Studies track applies them to full problems.

Chapters

  1. The interview framework & estimation — the step-by-step method, numbers every engineer should know, capacity math.
  2. Scalability fundamentals — vertical vs horizontal, statelessness, load balancing, autoscaling, the journey from one server to millions of users.
  3. Caching — layers, cache-aside/read-through/write-through/write-back, eviction, invalidation, stampedes, hot keys, Redis.
  4. Queues, streams & event-driven design — message queues vs logs, Kafka internals, delivery semantics, ordering, DLQs, outbox, event sourcing, CQRS.
  5. Handling load — backpressure, load shedding, queue-based load levelling, autoscaling, thundering herds, cell-based architecture.
  6. Data at scale — choosing stores, replication and sharding in practice, search, blob storage, CDNs, multi-region designs.
  7. Distributed systems theory — failure models, time and clocks, consensus (Raft/Paxos), leader election, quorums, gossip, consistency.
  8. Probabilistic structures & geo-indexing — Bloom filters, HyperLogLog, count-min sketch, top-K, consistent hashing, geohash, quadtrees, Merkle trees.
  9. Microservices & infrastructure — monolith vs microservices, API gateway, service discovery, service mesh, containers and Kubernetes, serverless.
  10. Reliability engineering — SLIs/SLOs/SLAs, availability math, redundancy, failover, disaster recovery, chaos engineering, incident response.
  11. Security at scale — defence in depth for whole systems, encryption, secrets, DDoS, abuse prevention, compliance.
  12. AI & LLM systems — model serving, RAG and vector search, caching and cost control, evaluation and guardrails.

Chapters

In recommended order
A minute-by-minute framework for 45–60 minute system design interviews, how to gather functional and non-functional requirements, latency numbers and powers of two, QPS/storage/bandwidth/server estimation with fully worked examples, and what interviewers look for at each level.
5 Q
Performance vs scalability, latency vs throughput, vertical vs horizontal scaling, stateless services, load balancing recap, autoscaling, Little's Law and queueing intuition, and the classic journey from a single server to millions of users.
5 Q
Where caches live (client, CDN, gateway, application, distributed, database), read and write strategies (cache-aside, read-through, write-through, write-behind, write-around, refresh-ahead), eviction policies, TTLs and invalidation, consistency races, stampedes and hot keys, Redis vs Memcached, sizing and metrics.
6 Q
Why asynchrony, message queues vs pub/sub vs logs, Kafka internals (topics, partitions, offsets, consumer groups, replication), RabbitMQ and SQS, delivery semantics and exactly-once, ordering, retries and dead-letter queues, backpressure, the outbox pattern, event sourcing, CQRS, and stream processing.
7 Q
How systems survive overload and partial failure — queueing theory basics (Little's law, utilisation vs latency), timeouts, retries with backoff and jitter, retry budgets, circuit breakers, bulkheads, backpressure, load shedding and prioritisation, queue-based load levelling, autoscaling, thundering herds, graceful degradation, and cell-based architecture.
6 Q
A decision guide for picking data stores, replication and sharding in practice (resharding, hot partitions, cross-shard queries), full-text search with inverted indexes, object storage and large uploads, CDNs, data pipelines and CDC, and multi-region active-passive vs active-active designs.
6 Q
The fallacies of distributed computing, failure models, time and clocks (NTP, Lamport and vector clocks, hybrid logical clocks, TrueTime), consensus with Raft and Paxos, leader election and fencing tokens, quorums, gossip and failure detection, consistency models from linearizable to eventual, CRDTs, and distributed transactions (2PC vs sagas).
7 Q
The clever data structures behind large-scale systems — consistent hashing with virtual nodes and rendezvous hashing, Bloom and cuckoo filters, HyperLogLog, count-min sketch, heavy hitters and top-K, reservoir sampling, Merkle trees, skip lists and LSM trees, and geospatial indexing with geohash, quadtrees, S2 and H3.
6 Q
Monolith vs modular monolith vs microservices, service boundaries with domain-driven design, synchronous vs asynchronous communication, API gateway and BFF, service discovery, service mesh and sidecars, containers and Kubernetes essentials, serverless, deployment strategies (blue-green, canary, feature flags), configuration, and data ownership.
7 Q
SLIs, SLOs, SLAs and error budgets, availability math for serial and parallel components, redundancy and failover, health checks, disaster recovery with RPO/RTO, backups, observability (metrics, logs, traces, RED/USE methods), alerting on symptoms and burn rates, chaos engineering, incident response and blameless postmortems.
6 Q
Security as a system-design concern — threat modelling (STRIDE), defence in depth, zero trust and service identity, encryption in transit and at rest with envelope encryption and KMS, secrets management, DDoS protection, bot and abuse prevention, fraud signals, multi-tenancy isolation, data privacy (PII, GDPR deletion, data residency), audit logging and supply-chain security.
6 Q
Designing products around large language models — inference serving (batching, KV cache, quantisation, GPU economics), latency metrics (TTFT, tokens/s), streaming, retrieval-augmented generation end to end, embeddings and vector search (HNSW, IVF, hybrid search, re-ranking), agents and tool calling, caching and cost control, evaluation, guardrails and prompt injection, and ML system basics (feature stores, training vs serving).
6 Q