Skip to content
Tech Intuition
Tech Intuition

Appearance

Theme

Signal · Dark with amber

Background

Slow stars and the odd comet

Connect

Track · 44 lessons

System design

Walk into a system design round with a repeatable method, fluent vocabulary for the core components, the performance toolkit senior rounds expect, and fully worked designs.

  • 44 lessons, about 1160 minutes
  • 167 self-check questions with answers
  • 75 diagrams
  • 227 code samples, compiled and tested
  • Interactive companion
  • Free, no sign-up

Course content

Read the lessons in order. Each one builds on the one before.

Section 01 of 05

Framework

The method: run a design interview from the first question to the last follow-up.

Section 02 of 05

Core concepts

The building blocks every design reuses: load balancing, caching, sharding, queues and more.

  1. Concept11 minLoad balancingHow traffic is spread across servers, the difference between layer 4 and layer 7, the main algorithms, and why the balancer itself must not become the single point of failure.LLDSenior depth1 architecture diagram1 sequence flow2 code samples5 interviewer follow-ups
  2. Concept12 minCachingWhere to cache, the four read and write patterns, how eviction works, and the failure modes (stale data, stampedes, hot keys) that interviewers love to probe.HLDLLDSenior depth1 architecture diagram2 sequence flows2 code samples5 interviewer follow-ups
  3. Concept25 minCache consistency, stampedes and hot keysHow a cache fails at scale: the invalidation race, checked over every interleaving, and what deletes, leases and versions fix; stampedes when a popular key expires; and hot keys that placement cannot spread.HLDLLDSenior depth1 sequence flow5 code samples8 interviewer follow-ups
  4. Concept14 minReplication and shardingHow a database scales past one machine. Replicas for reads and failover, shards for writes and size, and the shard-key decisions that are very hard to undo.HLDLLDSenior depth2 architecture diagrams1 sequence flow1 data model2 code samples6 interviewer follow-ups1 decision checkpoint1 capacity calculator
  5. Concept11 minQueues and asynchronous workWhy you decouple slow or bursty work with a queue, what at-least-once delivery really means, and how idempotency, retries and backpressure keep it safe.HLDLLDSenior depth1 architecture diagram2 sequence flows2 code samples5 interviewer follow-ups
  6. Concept11 minConsistency and availabilityWhat the CAP theorem actually says, the consistency models you can choose between, how quorums work, and how to decide which trade-off fits which feature.HLDLLDSenior depth1 architecture diagram1 sequence flow2 code samples5 interviewer follow-ups
  7. Concept13 minRate limitingThe classic algorithms, why a per-server counter breaks the moment you have more than one server, and how shared state, and a decision about failure, fix it. With an interactive 3D system you can break yourself.LLDSenior depth1 architecture diagram1 sequence flow1 data model1 API design2 code samples5 interviewer follow-ups
  8. Concept33 minAPI designDesigning an API that survives retries, concurrent edits and years of change: status codes, offset against cursor pagination, idempotency keys, ETags, errors and a breaking-change checker, with REST compared to gRPC and GraphQL.HLDLLDSenior depth4 API designs9 code samples7 interviewer follow-ups
  9. Concept26 minDNS, CDNs and the edgeHow a request finds your servers and how content gets close to users: DNS resolution, TTLs and failover timelines, anycast, CDN cache keys and headers, origin shields and invalidation, with simulations of failover time and hit ratio.HLDLLDSenior depth4 code samples6 interviewer follow-ups
  10. Concept23 minMulti-region designRunning a system in several regions: disaster recovery strategies with their RPO and RTO, replication choices and what each costs in latency and lost writes, quorum latency across regions, routing, failover headroom, and data residency.HLDLLDSenior depth3 code samples6 interviewer follow-ups
  11. Concept27 minAuthentication and authorizationWho is calling and what may they do: password storage and MFA, sessions against tokens, OAuth 2.0 and OpenID Connect, JWT validation attacks shown in C#, RBAC and relationship-based permissions, tenant isolation and service identity.HLDLLDSenior depth1 sequence flow6 code samples7 interviewer follow-ups
  12. Concept25 minEncryption, secrets and abuseWhat encryption in transit, at rest and in the application each stops, envelope encryption with a key service built in C#, secrets and rotation, signed webhooks, the attacks to close, abuse and DoS, and audit and privacy.HLDLLDSenior depth4 code samples6 interviewer follow-ups
Section 03 of 05

Performance engineering

Measure before you tune: latency and queues, load testing, profiling, observability and SLOs, and how systems behave at the edge of capacity.

  1. Concept28 minLatency, throughput and queuesThe vocabulary and the math behind every performance conversation: percentiles, Little's Law, why latency climbs steeply near saturation, why scaling stops being linear, and how to find the resource that caps throughput.HLDLLDSenior depth1 architecture diagram1 sequence flow10 code samples6 interviewer follow-ups
  2. Guide24 minLoad testing and benchmarkingHow to build a load test or benchmark that survives scrutiny: the question first, open versus closed workloads, coordinated omission, realistic data, warm-up, noise, and the statistics to compare two builds, with tested C#.HLDLLDSenior depth1 sequence flow6 code samples6 interviewer follow-ups
  3. Guide21 minProfiling and finding the bottleneckA method for "the service is slow": narrow from the outside in, check every resource with the USE method, read flame graphs, find waiting time that a CPU profile cannot see, and recognize the usual culprits, with tested C#.HLDSenior depth6 code samples7 interviewer follow-ups
  4. Concept19 minTail latency and overloadWhy p99 decides the experience at scale, how to tolerate slow replicas with hedged requests, and how to survive demand beyond capacity with bounded queues, load shedding, retry budgets, adaptive limits and an eye on metastable failures.HLDSenior depth8 code samples7 interviewer follow-ups
  5. Concept18 minNetwork performance for system designersWhy distance sets a latency floor, how round trips and handshakes dominate short requests, what the bandwidth-delay product, TCP windows and loss do to throughput, and how Nagle, MTU and buffers add surprises, with tested C# arithmetic.HLDSenior depth6 code samples7 interviewer follow-ups
  6. Concept23 minObservability: metrics, logs and tracesWhat metrics, logs and traces are each for and how a trace id joins them, the golden signals, the cost of a label, W3C trace context and head versus tail sampling tested in C#, logs that help, and how telemetry fails.HLDLLDSenior depth1 architecture diagram1 sequence flow3 code samples5 interviewer follow-ups
  7. Concept27 minSLOs, error budgets and alertingSLIs, SLOs and error budgets with the arithmetic (nines in minutes, dependencies in series), burn-rate alerts with several windows tested on a simulated bad month, then pages, incidents and the ways alerts fail.HLDLLDSenior depth4 code samples5 interviewer follow-ups
  8. Guide15 minPerformance engineering cheat sheetOne page for the day before a performance interview: the formulas with worked numbers, the figures worth knowing, method checklists for the common prompts, and twenty-four questions with short answers that point to the lessons.
Section 04 of 05

Case studies

Full designs that combine the concepts, with numbers, diagrams, code and follow-ups.

Open the gallery, with filters
  • Search and the web16 min

    Design a URL shortener

    A senior-level walkthrough: requirements, estimates, API and data model, the high-level design, low-level ID generation in C#, the redirect path, scale, abuse and the follow-ups interviewers use to push.

    4 diagrams1 C#7 follow-ups

  • Social and messaging37 min

    Design a news feed

    A senior-level walkthrough of a social feed: estimates that expose the fan-out problem, push versus pull versus hybrid with a cost rule, a merge that paginates without repeats, ranking with a fallback, and fan-out lag as a queue.

    3 diagrams10 C#8 follow-ups

    Video
  • Social and messaging33 min

    Design a chat system

    A senior-level walkthrough of a messenger: connections as the unit of capacity, one writer per conversation, idempotent sends and gap repair, receipts as watermarks, group fan-out by size, reconnect storms and storage, with tested C#.

    3 diagrams10 C#8 follow-ups

    Video
  • Search and the web32 min

    Design search autocomplete

    A senior-level walkthrough of typeahead: the numbers behind a request per keystroke, a trie against a sorted array with range top-k, trending queries with decayed counts and heavy hitters, client and edge caching, and abuse, with tested C#.

    2 diagrams7 C#8 follow-ups

    Video
  • Social and messaging54 min

    Design a notification service

    A senior-level walkthrough of a notification platform: duplicates and the ledger, consent and quiet hours, priority lanes, provider failover, digests, and the traffic a campaign sends back to your own API, with tested C#.

    3 diagrams11 C#9 follow-ups

    Video
  • Maps and rides50 min

    Design a proximity service

    A senior-level walkthrough of a nearby-places service: why two indexes fail, geohash cells and the boundary problem, the search cover, quadtrees for uneven density, S2 and H3, serving from memory and caching by cell, with tested C#.

    2 diagrams10 C#10 follow-ups

    Video
  • Maps and rides44 min

    Design a ride-hailing service

    A senior-level walkthrough of a ride-hailing service: a driver index that takes 250,000 reports a second, batched matching, reservations that prevent double booking, road ETAs, surge pricing and failure modes, with tested C#.

    2 diagrams8 C#10 follow-ups

    Video
  • Files and media42 min

    Design a video streaming service

    A senior-level walkthrough of video streaming in the YouTube and Netflix style: resumable uploads, chunked parallel transcoding with backups for stragglers, bitrate ladders and manifests, adaptive players and CDN delivery, with tested C#.

    2 diagrams8 C#10 follow-ups

    Video
  • Money and tickets33 min

    Design a payment system

    A senior-level walkthrough of a payment system: how card payments really flow, tokens and PCI scope, idempotency and the unknown outcome, order-independent webhooks, reconciliation, provider routing and failure modes, with tested C#.

    2 diagrams5 C#10 follow-ups

  • Money and tickets36 min

    Design a ledger and a wallet

    A senior-level walkthrough of a ledger and a digital wallet: double-entry bookkeeping, immutable entries and audits, exact money arithmetic, overdraft races, hot accounts and cross-shard sagas with crash recovery, with tested C#.

    2 diagrams7 C#10 follow-ups

  • Infrastructure34 min

    Design a distributed cache

    A senior-level walkthrough of a Memcached or Redis-style cache cluster: sizing it, a node's memory and expiry, placement that survives adding a node, and what a lost node does to the database, with tested C#.

    1 diagram4 C#7 follow-ups

    Video
  • Money and tickets38 min

    Design a ticket booking system

    A senior-level walkthrough of ticket and seat booking: atomic seat holds, all-or-nothing party holds without deadlocks, choosing the hold time, the on-sale surge and the waiting room, and live availability, with tested C#.

    2 diagrams9 C#10 follow-ups

    Video
  • Search and the web40 minNew

    Design a web crawler

    A senior-level walkthrough of a web crawler: the URL frontier and politeness, robots.txt, URL normalization and the seen set, partitioning by host, duplicates and revisits, traps and failures, with tested C#.

    2 diagrams6 C#8 follow-ups

  • Files and media39 minNew

    Design a collaborative editor

    A senior-level walkthrough of a collaborative editor such as Google Docs: why positions break, operational transformation, a sequence CRDT, a room per document, logs, snapshots, retries and crashes, in tested C# with an interactive story.

    2 diagrams11 C#8 follow-ups

  • Files and media50 minNew

    Design a file sync service

    A senior-level walkthrough of a file sync service such as Dropbox: blocks cut by content, one stored copy of each, a change journal with cursors, conflicts and garbage collection, in tested C# with an interactive story.

    2 diagrams11 C#9 follow-ups

  • Files and media27 min

    Design object storage

    A senior-level walkthrough of an S3-style object store: metadata apart from data, an atomic PUT checked over every crash and interleaving, listing over a flat key space, durability and repair, and tail latency.

    2 diagrams4 C#7 follow-ups

  • Infrastructure32 min

    Design a metrics monitoring system

    A senior-level walkthrough of a metrics and alerting system for a large fleet: sizing from series, zone-aware sharded ingestion with idempotent appends, the query path, histogram error, alert grouping and inhibition, and cardinality.

    1 diagram5 C#6 follow-ups

  • Infrastructure23 min

    Design a performance testing platform

    Design the system that runs benchmarks on every change, tells a real regression from noise, finds the commit and routes it to an owner: tiers, noise control, change-point detection, bisecting, hardware pools and cost, with tested C#.

    2 diagrams4 C#7 follow-ups

  • Infrastructure24 min

    Design a traffic inspection gateway

    Design an inline, firewall-style gateway that inspects traffic at line rate: packet budgets, per-core flow tables with symmetric hashing, fast and slow paths, kernel bypass, TLS cost, overload, and how to benchmark it, with tested C#.

    2 diagrams8 C#7 follow-ups

Section 05 of 05

Company guides

Design rounds for one employer, built from what it publishes and what candidates report.

  1. GuideMicrosoft guide18 minMicrosoft system design questions: what candidates report and how to answerThe design prompts candidates report for Microsoft, a worked Teams-style chat design with ordering and fan-out, a tested C# cache with a swappable eviction policy, and the senior follow-ups.HLDLLDSenior depth1 architecture diagram1 sequence flow2 data models2 API designs4 code samples6 interviewer follow-ups
  2. GuideAmazon guide22 minAmazon system design interview: what Amazon publishes and how to answerWhat Amazon says it evaluates in a design round, the techniques its engineers publish, the prompts candidates report, a worked checkout design, a tested C# stock ledger and an Amazon Locker design, and the senior follow-ups.HLDLLDSenior depth1 architecture diagram1 sequence flow3 data models1 API design4 code samples6 interviewer follow-ups
  3. GuideMeta guide12 minMeta system design interview: systems design and product architectureWhat Meta's own interview guide says about its two design interviews, the four focus areas the interviewer scores, the example questions Meta lists, and a worked feed API for the product architecture interview.HLDLLDSenior depth1 architecture diagram2 data models1 API design5 interviewer follow-ups
  4. GuideAtlassian guide12 minAtlassian system design interview: what Atlassian publishes and how to answerWhat Atlassian says about its 60-minute system design interview, how laddered follow-ups work, and a worked design that stops one customer's traffic slowing everyone else in a multi-tenant product.HLDLLDSenior depth1 architecture diagram1 sequence flow2 data models1 API design5 interviewer follow-ups
How it is ordered

Start with the interview method, then the building blocks: load balancing, caching (and what goes wrong with a cache at scale: stale data, stampedes, hot keys), replication and sharding, queues, consistency, rate limiting, API design (retries, pagination, concurrent edits, change over time), DNS and CDNs, multi-region design (recovery objectives, replication across regions, failover capacity), and security (authentication, tokens and permissions; encryption, secrets and abuse). Performance engineering comes next (how to reason about latency and queues, test a system under load, find a bottleneck, keep it fast under overload, and know it is healthy with metrics, traces, SLOs and burn-rate alerts, plus a one-page cheat sheet for revision), because every large design is also a performance argument. The case studies then apply everything end to end: seventeen classic designs (a URL shortener, a news feed, a chat system, search autocomplete, a notification service, a proximity service, a ride-hailing service, a video streaming service, a payment system, a ledger and wallet, a ticket booking system, a distributed cache, object storage, a metrics monitoring system, a web crawler, a collaborative editor and a file sync service, the last two of which also come as interactive stories) and two performance-engineering designs (a performance testing platform and a traffic inspection gateway). The company guides work each employer's design round: Microsoft and Amazon from the prompts candidates report, Meta and Atlassian from what each company publishes about its own interview.

How to practise

After each lesson, close it and explain the idea aloud in two minutes, including one trade-off and one failure mode. Interviews reward explanation, not recall.

What is not here

No memorised answers and no invented benchmarks. Numbers are labelled as rules of thumb, so you reason from them instead of reciting them. The theory under these building blocks (storage engines, transactions, clocks, agreement between machines) is in the Distributed systems track.

Send a message

It goes straight to my inbox. I usually reply within a few days.