HLD track
System Design
Design systems that scale, survive failure, and hold up under an interviewer's follow-ups.
A path from networking fundamentals to multi-region architecture, written for engineers aiming at senior system-design rounds. Each lesson builds the vocabulary and trade-off instincts you need to drive a 45-minute design discussion with confidence.
Foundations
How requests actually travel, how clients talk to servers, and how to put numbers on a design before you draw a single box.
How the Web Works
Trace a request from a browser to a server and explain where DNS, TCP, TLS, and HTTP each add latency.
- ✓DNS: The Internet's Phone BookHow a hostname becomes an IP address, and how DNS doubles as a traffic-steering tool.8m
- ✓HTTP, HTTPS, and TLSRequest/response semantics, HTTP/1.1 vs 2 vs 3, and what the TLS handshake costs you.10m
- ✓TCP vs UDPReliable ordered streams versus fire-and-forget datagrams, and when each one wins.8m
Client-Server Communication & APIs
Choose between REST, gRPC, GraphQL, and push-style protocols, and justify the choice for a given client.
- ✓REST API DesignResources, verbs, status codes, pagination, and versioning for APIs that age well.10m
- ✓gRPC and GraphQLBinary RPC for service-to-service calls and flexible queries for client-facing aggregation.9m
- ✓WebSockets, SSE, and Long PollingThree ways to push data to clients and the operational cost of each.9m
Estimation, Performance & Availability
Do quick capacity math, reason about latency and concurrency with Little's law, and translate nines into downtime budgets.
- ✓Back-of-the-Envelope EstimationTurn user counts into QPS, storage, and bandwidth with the numbers every engineer should know.12m
- ✓Latency, Throughput & Little's LawWhy percentiles matter and how concurrency, rate, and wait time are tied together.9m
- ✓Availability & SLA MathWhat each extra nine costs, and how availability composes in series and in parallel.9m
Core System Design
The building blocks that show up in nearly every design: load balancers, caches, databases, queues, and storage.
Load Balancing
Place L4 and L7 load balancers correctly and pick an algorithm that matches the workload.
Caching
Design a cache layer with the right write strategy, eviction policy, and protections against stampedes and hot keys.
- ✓Caching StrategiesCache-aside, read-through, write-through, write-behind, and where each one fits.10m
- ✓Eviction & InvalidationLRU, LFU, TTLs, and the hard problem of keeping a cache honest.9m
- ✓Cache Stampedes & Hot KeysWhat happens when a popular key expires or one key gets all the traffic.9m
- ✓CDNs & Edge CachingServing bytes close to users and controlling what the edge keeps.8m
Databases
Pick a data store, design indexes, and scale it with replication, sharding, and consistent hashing.
- ✓SQL vs NoSQLRelational, key-value, document, wide-column, and graph stores compared on real criteria.10m
- ✓Indexing: B-Trees vs LSM TreesHow storage engines organize data on disk and why that shapes read and write costs.11m
- ✓ReplicationLeader-follower, multi-leader, and leaderless replication, plus replication lag pitfalls.10m
- ✓Partitioning & ShardingSplitting data across machines by range or hash, and handling hot partitions.10m
- ✓Consistent HashingPlacing keys on a ring so adding a node moves only a small slice of data.9m
Message Queues & Streams
Choose between Kafka, RabbitMQ, and SQS and build consumers that are safe under redelivery.
Storage Systems
Decide between object, block, and file storage and design large-file upload paths.
Production Systems
What changes when a design has to run for years: consistency trade-offs, traffic control, operability, resilience, and security.
Distributed Systems Trade-offs
Explain CAP and PACELC precisely and pick the consistency model a feature actually needs.
Traffic Management
Implement rate limiting and route traffic through gateways and service discovery.
Architecture & Observability
Argue for the right service granularity and instrument a system so you can tell when it is unhealthy.
Resilience & Security
Contain failures with timeouts, retries, circuit breakers, and bulkheads, and secure APIs with OAuth2 and JWTs.
- ✓Timeouts, Retries, Backoff & JitterRetrying without turning a blip into an outage.9m
- ✓Circuit Breakers & BulkheadsFailing fast and isolating resources so one bad dependency cannot sink everything.9m
- ✓AuthN, AuthZ, OAuth2 & JWTIdentity versus permission, delegated access, and the trade-offs of stateless tokens.11m
Advanced System Design
Coordination, specialized data systems, global deployments, and a repeatable framework for the interview itself.
Transactions, Consensus & IDs
Keep data consistent across services, explain how Raft elects leaders, and generate unique IDs at scale.
- ✓Distributed Transactions & 2PCAtomic commit across nodes, and why two-phase commit is rarely used across services.9m
- ✓Sagas & the Transactional OutboxLong-running workflows with compensations, and publishing events without dual writes.11m
- ✓Consensus & RaftHow a cluster agrees on an ordered log even when nodes crash.11m
- ✓Leader Election & CoordinationLeases, fencing tokens, and coordination services like ZooKeeper and etcd.9m
- ✓Distributed ID GenerationUUIDs, ticket servers, and Snowflake-style time-ordered IDs.8m
Search, Real-time & Geo
Design search indexes, real-time fan-out with presence, and location queries with geohashes or quadtrees.
- ✓Search & Inverted IndexesTokenizing, posting lists, ranking, and sharding a search cluster.10m
- ✓Real-time Fan-out, Pub/Sub & PresenceDelivering events to millions of connected clients and tracking who is online.10m
- ✓Geohash & QuadtreesTurning 2D location queries into something a normal index can answer.10m
Data Pipelines & Global Scale
Build batch and streaming pipelines fed by CDC, and design for regional failure with clear RPO/RTO targets.
The System Design Interview
Run a 45-minute design round end to end, with clear time boxes and well-argued trade-offs.
Then practise
Design Problems
Classic system-design questions worked end to end, from requirements and estimates to deep dives. Try each one on a whiteboard first, then compare your design against the walkthrough.