System Design NotesRohit’s interview study guide

Interview study guide

System design, reasoned out.

Both rounds: the classic backend design interview and the frontend system design interview. Every building block comes with a small model you can run, every estimate is calculated, and every case study follows the same shape from requirements to trade-offs.

Chapters
15
Topics
118
Code samples
642
Added beyond the doc
118
01The System Design InterviewWhat the round measures, a framework you can run every time, requirements that drive the design, estimates calculated in code, the latency and availability numbers to defend them, and how to draw and talk through it all.8 topics02Scaling FundamentalsGetting from one server to many: scaling up vs out, stateless services, load balancers and their algorithms, failover, DNS and CDNs, gateways, autoscaling and running in several regions.10 topics03CachingWhere copies of answers live, from the browser to the database: how they're filled, evicted and invalidated, and how a cache cluster survives hot keys, stampedes and lost nodes, decided at the design level with runnable models.7 topics04Data StorageChoosing and shaping the data layer at the design level: access patterns, replication, sharding and hot keys, secondary indexes across shards, object storage, search indexes and the specialised stores.9 topics05Distributed Systems EssentialsPartial failure, CAP and PACELC, consistency models, quorums, clocks, consensus, distributed transactions, idempotency and CRDTs: the ideas behind every "what happens when this node dies?" question, each with a small model you can run.9 topics06Messaging and Async ProcessingQueues, logs and pub/sub at the design level: what each buys you, how ordering, retries and overload behave, and how events, streams and scheduled jobs fit into a system.9 topics07APIs and Real-Time CommunicationHow the boxes talk: writing the API section, pagination, REST vs GraphQL vs gRPC, pushing data with polling, SSE and WebSockets, scaling connection servers, webhooks, rate limiting, idempotency keys and versioning.9 topics08Building Blocks: IDs, Hashing and Probabilistic StructuresThe small parts that case studies keep reaching for: unique IDs, short codes, Bloom filters, HyperLogLog, count-min sketches, geohashes, quadtrees, tries and Merkle trees, each as a model you can run and defend.7 topics09Reliability, Security and OperationsDesigning for the bad day: limiting blast radius, surviving slow and failing dependencies, degrading gracefully, seeing what is happening, shipping safely, recovering data, and the security questions every design review asks.7 topics10Case Studies: Core ServicesSix classic backend prompts worked end to end, each in the same shape from requirements to trade-offs, with the numbers that drive every decision calculated and the core mechanism built as a model you can run.6 topics11Case Studies: Social and Real-TimeFive designs where many people read and write the same things at once — a news feed, chat, search autocomplete, likes and comments, and a leaderboard — each worked from requirements to trade-offs, with the numbers that decide it computed in code.5 topics12Case Studies: Media, Location and MoneySix full case studies, each in the 45-minute shape: video streaming, file sync, ride-hailing, nearby search, payments and ticket booking, with the numbers that drive every decision calculated in code.6 topics13Frontend System Design: FoundationsThe frontend round from requirements to optimisations: rendering strategies, component and state architecture, client caching, virtual lists, real-time updates, Core Web Vitals, loading, offline, accessibility, security and micro-frontends, with the logic run in Node and the numbers calculated.13 topics14Frontend Case StudiesEight frontend system design rounds worked end to end (autocomplete, news feed, carousel, chat, collaborative editor, product page and checkout, data table, design system), each with the logic at its heart run in Node, the numbers calculated, and the trade-offs you say out loud.8 topics15Review QuestionsRapid revision before an interview: short questions with model answers you can say out loud in a minute, each linked to the topic that explains it in depth.5 topics

Added marks topics that weren’t in my original doc. Tick Learned on a topic to track what you’ve revised.

Sync progress across devices

Type the same private phrase on your Mac and your phone, and your Learned ticks follow you between them — on every study site.

The phrase never leaves this device: only a fingerprint of it is sent, and the server stores a fingerprint of that. Anyone who knows the phrase could see or change your ticks, so pick something you don’t use elsewhere.

Sync is on in this browser.

Sync ID

This ID must be the same on every device. If another device shows a different one, its phrase is different (capital letters count): tap “Turn off here” on it and type the phrase again exactly.