Six guides, in the order to read them
Each one takes 25 to 40 minutes. Read them in order the first time; after that, jump straight to what your interview needs.
All 6 guides
- 01
Load Balancing
Why one server is never enough, and how traffic is spread across many.
L4 vs L7Round robinLeast connectionsHealth checksSticky sessions - 02
API Gateway
One front door for routing, auth, throttling and aggregation across services.
RoutingAuthBFFAggregationCircuit breaker - 03
Rate Limiting
Protect the system from spikes and abuse, and answer with HTTP 429.
Token bucketLeaky bucketSliding windowRedis429 - 04
Caching
Make reads fast and cheap without serving wrong data.
Cache-asideWrite-throughTTLStampedeRedis - 05
Database Design
Choose the store, then replicate and shard it as data grows.
SQL vs NoSQLIndexingReplicationShardingConsistency - 06
Message Queues
Move slow work off the request path, safely and in order.
KafkaRabbitMQConsumer groupsRetriesDLQ
Every design answer is judged on four things
Scalability
Keep working as traffic grows 10× and 100×.
Data
Store, replicate and partition data correctly.
Distributed systems
Coordinate services that fail independently.
Reliability
Stay available and correct when parts break.
How to answer any system design question in 45 minutes
Use the same seven steps every time. Interviewers grade the process as much as the final diagram.
- 015 min
Clarify functional requirements
What must the system do? Pin down the 3–5 core use cases and say what's out of scope.
- 023 min
Non-functional requirements
Scale, latency targets, availability, consistency and durability. These drive every later choice.
- 035 min
Estimate traffic and storage
Requests per second (peak, not average), read/write ratio, data per day and per year.
- 045 min
Define APIs and data model
The main endpoints and the core entities with their keys. This exposes access patterns early.
- 0510 min
Draw the high-level architecture
Client → load balancer → gateway → services → cache → database → queue. Walk one request through it.
- 0610 min
Find bottlenecks and scale
Where does it break at 10× traffic? Cache, replicate, shard, queue and say why for each.
- 077 min
Failures and trade-offs
What happens when a node, a zone or the cache dies? What did you trade for what?
More guides on the way
CDN
Edge locations, origin shielding, cache keys and invalidation for global users.
Consistent hashing
Hash rings, virtual nodes and moving the fewest keys when nodes change.
Database sharding
Shard keys, routing, hot partitions and resharding without downtime.
Distributed locking
Leases, fencing tokens and why Redis locks need a backstop.
CAP theorem
Consistency vs availability when the network splits, in practice.
Idempotency
Idempotency keys and safe retries for payments and bookings.
Service discovery
Registries, DNS discovery and health-checked endpoints.
Microservices
Service boundaries, data ownership and when not to split.
Distributed transactions
Two-phase commit, sagas and compensating actions.
System design questions, answered
Short answers to what people ask most before their first design round.
What is high level design (HLD) in software engineering?
High level design describes the major components of a system and how they interact: clients, load balancers, API gateways, services, caches, databases and message queues, plus the request and data flows between them. Low level design (LLD) then goes inside one component: classes, interfaces and algorithms.
What should I study for a system design interview?
Learn the core building blocks first: load balancing, API gateways, rate limiting, caching, databases (replication, sharding, consistency) and message queues. Then practise a repeatable framework (requirements, estimates, APIs, architecture, scaling, failures) on full problems like a URL shortener, chat app or ticket booking system.
In what order should I learn system design topics?
Follow a request from the edge to the data: load balancing, then API gateway, rate limiting, caching, database design and finally message queues for asynchronous work. That is also the order most interviewers probe in.
How should I approach an HLD interview question?
Clarify functional and non-functional requirements, estimate traffic and storage, define the APIs and data model, draw the high-level architecture and walk one request through it, then scale the bottlenecks and discuss failures and trade-offs. Budget roughly 45 minutes across those seven steps.
Is HLD asked for freshers?
Usually lightly. Freshers and juniors mostly face DSA and LLD, but many product companies include a basic design discussion. From about two to three years of experience, a dedicated system design round is standard.
Are these system design guides free?
Yes. Every guide is free to read with no sign-up. The Mastering System Design (HLD) book is optional and adds complete end-to-end interview designs.
Ready for full problems? Design them end to end.
Mastering System Design (HLD) walks through complete interview designs, from requirements and estimates to APIs, data, scaling, concurrency and failures.