What is system design?
System design is the skill of planning how a large software system fits together: which servers, databases, caches and queues it needs, how data moves between them and what happens when parts fail or traffic spikes. Engineers who are good at it are usually called senior, staff or principal engineers.
It is also a standard part of interviews at most mid-sized and large tech companies. You might be asked to design a URL shortener, a chat app or a news feed in 45 minutes, and the interviewer cares more about your reasoning than a perfect answer.
How to use this System Design roadmap
You should already be comfortable building a basic web app and using a database. If not, start with the Backend Developer roadmap.
For every concept, ask two questions: what problem does this solve, and what does it cost? System design is all about trade-offs.
1Step 1: Networking and web basics
How requests travel from a browser to your servers.
What is it?
Before designing big systems, you need to know what happens between a click and a response: DNS, HTTP, TCP, latency and the client-server model.
What to learn
Use your browser’s network tab to watch real requests and see headers, timings and status codes.
Learn each topic here
Client-server model
Clients send requests, servers process them and send responses, often through many layers in between.
DNS
The system that turns domain names into IP addresses, with caching at several levels.
HTTP and HTTPS
Methods, status codes, headers and TLS encryption.
TCP, UDP and latency
Reliable versus fast delivery, and why physical distance affects response times.
Why it matters: Latency numbers drive many design decisions.
REST, WebSockets and gRPC
Different ways for services and clients to talk, from simple requests to live connections.
Example
text
Rough latency numbers:
Memory read ~100 ns
SSD read ~100 µs
Same-datacentre call ~0.5 ms
Cross-continent call ~100-150 msBallpark numbers every engineer should know when estimating performance.
Helpful resource: MDN: How the web works
2Step 2: Databases and storage
Where data lives and how to scale it.
What is it?
Most system design problems are really data problems. This step covers SQL and NoSQL, indexing, replication, sharding and object storage.
What to learn
Learn why an index makes a query fast. It is one of the most useful things you can understand.
Learn each topic here
SQL vs NoSQL
Relational databases for structured data and transactions; document, key-value and wide-column stores for scale and flexibility.
Indexes
Extra data structures that make reads faster at the cost of slower writes and more storage.
Replication
Copying data to several servers for availability and read scaling.
Sharding and partitioning
Splitting data across machines, for example by user ID, when one database is not enough.
Why it matters: Picking a bad shard key is a classic interview trap.
Blob and object storage
Services like Amazon S3 for images, videos and backups.
Example
sql
-- without an index this scans every row
CREATE INDEX idx_orders_user ON orders(user_id);
SELECT * FROM orders WHERE user_id = 42;An index lets the database find one user’s orders quickly.
Helpful resource: Use The Index, Luke
3Step 3: Scaling building blocks
Load balancers, caches, CDNs and queues.
What is it?
These are the parts you will draw in almost every design: load balancers to spread traffic, caches to avoid repeated work, CDNs for static files and queues for background jobs.
What to learn
For each component, learn one way it can fail and how you would handle it.
Learn each topic here
Load balancing
Spreading requests across servers using round robin, least connections or hashing.
Caching
Keeping frequently used data in memory with tools like Redis, plus cache invalidation strategies.
Why it matters: Caching is often the biggest single performance win.
CDNs
Serving images, scripts and videos from servers close to users.
Message queues
Kafka, RabbitMQ or SQS to handle work asynchronously and smooth out traffic spikes.
Rate limiting
Limiting how many requests a client can make to protect the system.
Example
python
def get_user(uid):
user = cache.get(f"user:{uid}")
if user is None:
user = db.query_user(uid)
cache.set(f"user:{uid}", user, ttl=300)
return userThe cache-aside pattern: check the cache first, then the database.
Helpful resource: Redis documentation
4Step 4: Distributed systems concepts
What changes when you have many machines.
What is it?
Once data and work are spread across machines, new problems appear: partial failures, inconsistent data and ordering. This step gives you the core ideas.
What to learn
Don’t memorise theorems. Understand them through examples like a bank balance or a shopping cart.
Learn each topic here
CAP theorem
During a network split you must choose between consistency and availability.
Consistency models
Strong versus eventual consistency, and which products need which.
Consensus and leader election
How systems like etcd or ZooKeeper agree on a single leader.
Idempotency and retries
Designing operations so repeating them is safe, which makes retries possible.
Why it matters: Payments and orders depend on this.
Unique IDs and ordering
Generating IDs across servers and dealing with clocks that disagree.
Example
text
POST /payments
Idempotency-Key: 7f3c9b2e
-> server stores key with result
-> retry with same key returns the same result, no double chargeAn idempotency key prevents duplicate payments when a client retries.
Helpful resource: Designing Data-Intensive Applications (book)
5Step 5: Reliability and observability
Keep big systems running.
What is it?
Large systems fail in small ways all the time. This step covers redundancy, graceful degradation, monitoring and incident response.
What to learn
Read public post-mortems from big companies. They are free lessons in what goes wrong.
Learn each topic here
Redundancy and failover
Running more than one of everything important, across zones or regions.
Circuit breakers and timeouts
Stopping calls to failing services so one problem doesn’t take everything down.
SLIs, SLOs and SLAs
Measuring reliability with clear targets such as 99.9 percent availability.
Monitoring, logs and tracing
Seeing errors, latency and traffic, and following one request across services.
Disaster recovery
Backups, recovery time targets and practising restores.
Why it matters: A backup you have never restored is only a hope.
Example
text
SLO: 99.9% of checkout requests succeed each month
Error budget: ~43 minutes of failure per month
If budget is used up -> freeze risky releasesHow an SLO and error budget guide release decisions.
Helpful resource: Google SRE books (free)
6Step 6: Classic designs and interviews
Put it all together.
What is it?
This step practises full designs of common systems, the way interviews ask for them: clarify requirements, estimate, sketch, deep-dive and discuss trade-offs.
What to learn
Practise out loud with a timer. Explaining your thinking clearly is half of the interview.
Learn each topic here
Interview framework
Requirements, estimates, high-level design, deep dives, bottlenecks and wrap-up.
Back-of-envelope estimates
Rough maths for users, requests per second, storage and bandwidth.
URL shortener and rate limiter
Two common warm-up designs covering hashing, storage and caching.
Chat and notification systems
Real-time messaging with WebSockets, queues and delivery guarantees.
News feed and search
Fan-out strategies, ranking and building indexes for large data sets.
Example
text
URL shortener estimate:
100M new URLs/month -> ~40 writes/sec
Reads 100x writes -> ~4,000 reads/sec
5 years x 1.2B URLs x 500 bytes ≈ 3 TB storageA quick capacity estimate before choosing components.
Helpful resource: System Design Primer (GitHub)
System Design roadmap project ideas
System design projects are a mix of documents and working code. Write a design doc first, then build a small version to test your ideas.
URL shortener
Short links, redirects, click counts and a cache.
Rate limiter
A token-bucket limiter in front of an API.
Real-time chat app
WebSockets, message storage and online status.
Job queue system
Producers, workers, retries and a dashboard.
News feed design doc
Fan-out, ranking, caching and capacity estimates.
Multi-region file storage
Uploads, replication, CDN delivery and failover plan.
Tips to finish this system design roadmap
- Always ask about requirements. Most weak designs come from guessing what the system needs to do.
- Think in trade-offs. For every choice, say what you gain and what you give up.
- Practise estimating. Rough numbers turn vague designs into convincing ones.
- Learn from real systems. Engineering blogs from companies like Netflix, Uber and Discord show how theory works in practice.
Career paths and next steps
Grow into architecture with the Software Architect roadmap, or strengthen operations skills with the DevOps Engineer roadmap.
Pair system design with the Data Structures and Algorithms roadmap if you are preparing for big tech interviews.
Related roadmaps
System Design Roadmap FAQs
When should I learn system design?
Once you can build a working web app with a database. It matters most for mid-level and senior roles and their interviews.
Do junior developers get system design interviews?
Sometimes a light version. Expect deeper system design rounds from mid-level roles upwards.
How long does it take to prepare for system design interviews?
With a solid backend background, 2 to 3 months of regular study and mock interviews is usually enough.
What is the best way to practise system design?
Design common systems on paper with a timer, explain your choices out loud and compare with real engineering blog posts.