Skip to the content.

How to Learn System Design: A Complete 2027 Roadmap

A free, structured path for learning system design: networking and database fundamentals, scalability building blocks, distributed systems theory, real-world architecture case studies, and the system design interview, with time estimates, best-pick books and courses, practice problems and FAQs.

Last reviewed: December 2026

System design is the skill of deciding how the pieces of a software system fit together so it stays correct, fast, reliable and affordable as it grows. It is what separates writing a feature from building a product that serves millions of users, and it is a core part of senior engineering interviews. This guide shows you how to learn system design step by step: first the fundamentals that every design rests on, then the building blocks (caches, queues, databases, load balancers), then distributed systems theory, then case studies and interview practice. Most resources are free; paid ones are marked (paid).


Table of Contents


What System Design Covers

Area Example questions
High-level architecture Which services exist, and how do they communicate?
Data modeling and storage SQL or NoSQL? How is data partitioned and replicated?
Scalability How does the system handle 10x or 100x traffic?
Reliability What happens when a machine, a disk, or a whole region fails?
Consistency Can two users see different data? Is that acceptable?
Performance Where are the latency bottlenecks? What should be cached?
Operability How is it deployed, monitored and debugged?
Cost What is the cheapest design that meets the requirements?

“System design” in interviews usually means high-level design (HLD) of a distributed service. Low-level design (LLD) means class and API design inside one service; it has its own section below.


Prerequisites

If you have 1-2 years of professional experience, you already have most of what you need to start.


The Roadmap at a Glance

Stage Focus Time at ~6-8 h/week Best pick Milestone
1. Fundamentals Networking, HTTP, databases, OS basics 3-5 weeks High Performance Browser Networking + Use The Index, Luke Explain what happens when you load a URL, down to TCP and DNS
2. Building blocks Load balancing, caching, queues, sharding, replication, CDNs 4-6 weeks System Design Primer Draw and justify a design for a URL shortener
3. Distributed theory Consistency models, consensus, time, transactions 4-8 weeks Designing Data-Intensive Applications, 2nd ed. (paid) + MIT 6.5840 Explain Raft and linearizability without notes
4. Patterns and ops Microservices, event-driven design, observability, SRE 3-5 weeks Google SRE books (free) + microservices.io Define SLOs and alerting for a service
5. Case studies Real architectures and papers ongoing Engineering blogs + classic papers Summarize Dynamo and Spanner trade-offs
6. Interviews Framework, communication, mock practice 3-6 weeks Hello Interview’s free guide + practice Complete 10+ timed mock designs

Total: about 4-6 months part-time for solid interview readiness; a lifetime to master, because the real teacher is production experience.


Stage 1: Fundamentals (3-5 weeks)

Networking

Concept Why it matters
DNS How names become IP addresses; caching and TTLs
TCP vs UDP Reliability vs latency trade-offs
HTTP/1.1, HTTP/2, HTTP/3 Connection reuse, multiplexing, QUIC
TLS Encryption cost, handshakes, termination at the load balancer
REST, gRPC, GraphQL, WebSockets API styles and when to use each

Resources: High Performance Browser Networking (free online), MDN HTTP docs, gRPC introduction, GraphQL learn.

Databases

Concept Why it matters
Relational model, SQL, normalization The default choice for most data
Indexes (B-trees), query plans The number one performance lever
Transactions, ACID, isolation levels Correctness under concurrency
MVCC How Postgres and others allow concurrent reads and writes
Key-value, document, wide-column, graph, time-series stores When NoSQL fits
Storage engines: B-tree vs LSM-tree Read vs write optimization

Resources: Use The Index, Luke (free, SQL indexing), PostgreSQL MVCC docs, PostgreSQL tutorial.

Operating system basics

Processes vs threads, memory and disk latency, file systems, concurrency primitives. Resource: Operating Systems: Three Easy Pieces (free).


Stage 2: Building Blocks (4-6 weeks)

These are the Lego pieces of every design. For each, learn what it does, when to use it, and how it fails.

Building block Learn Key trade-offs
Load balancers L4 vs L7, round robin, least connections, consistent hashing, health checks Stateless servers make balancing easy
Caching Cache-aside, write-through, write-back, TTLs, eviction (LRU), CDN edge caching Freshness vs speed; cache stampedes; invalidation
Message queues and logs Point-to-point queues vs pub/sub vs append-only logs (Kafka) Decoupling and smoothing load vs added latency and complexity
Replication Leader-follower, multi-leader, leaderless; sync vs async Durability and read scaling vs replication lag
Partitioning / sharding Range vs hash partitioning, rebalancing, hot keys Write scaling vs cross-shard queries
Consistent hashing Minimizing data movement as nodes change Virtual nodes for balance
CDNs Serving static and cacheable content near users Cost and invalidation
Rate limiting Token bucket, leaky bucket, sliding window Protecting services fairly
Search indexes Inverted indexes (Elasticsearch/OpenSearch) Eventual consistency with the source of truth
Object storage S3-style blob storage Cheap and durable; not a database
Idempotency and retries Idempotency keys, exponential backoff with jitter Safe retries without duplicate side effects

Best picks:


Stage 3: Distributed Systems Theory (4-8 weeks)

This is what makes designs correct, not just big.

Topic Key ideas
Failure models Crash, omission, network partitions, Byzantine
Time and ordering Clock skew, Lamport clocks, vector clocks, hybrid logical clocks
Consistency models Linearizability, sequential, causal, eventual; read-your-writes
CAP and PACELC During partitions choose C or A; otherwise trade latency vs consistency
Consensus Paxos, Raft; leader election; quorums
Distributed transactions Two-phase commit, sagas, outbox pattern
Replication theory Quorum reads and writes (R + W > N), anti-entropy, CRDTs
Exactly-once myths At-least-once delivery + idempotent processing

Best picks:


Stage 4: Architecture Patterns and Operations (3-5 weeks)

Topic Resource
Monolith vs microservices Martin Fowler: Microservices, microservices.io patterns
Twelve-factor apps 12factor.net
Event-driven architecture, CQRS, event sourcing microservices.io and DDIA chapters on streams
Reliability engineering, SLOs, error budgets Google SRE books (free online)
Cloud architecture frameworks AWS Well-Architected, Azure Architecture Center, Google Cloud Architecture Center
Observability Metrics, logs, traces; the “golden signals” from the SRE book
Security basics AuthN/AuthZ, secrets, least privilege, OWASP Top 10

Best pick: the free Site Reliability Engineering book, chapters on SLOs, monitoring and handling overload.


Stage 5: Case Studies and Classic Papers (ongoing)

Classic papers (read the abstract, intro and design sections first)

Paper Lesson
MapReduce (2004) Simple programming model for massive batch processing
Bigtable (2006) Wide-column storage on top of a distributed file system
Dynamo (2007) Leaderless replication, consistent hashing, sloppy quorums
Cassandra (2009) Dynamo-style distribution with a Bigtable-style data model
Kafka (2011) The log as a messaging abstraction
Spanner (2012) Global consistency with TrueTime
Raft (2014) Understandable consensus
Paxos Made Simple The original consensus idea, short version

Engineering blog case studies

Exercise: for each case study, write a one-page summary: requirements, design, what broke, what they changed, and the trade-off they accepted.


Stage 6: The System Design Interview (3-6 weeks)

A reliable 45-minute framework

Step Time What to do
1. Requirements ~5 min Functional requirements (top 3), non-functional (scale, latency, availability, consistency), out of scope
2. Core entities and API ~5 min Main data objects and the endpoints or events between client and system
3. High-level design ~10-15 min Boxes and arrows that satisfy every functional requirement, simple first
4. Deep dives ~15-20 min Scale, bottlenecks, failure handling, data model details; driven by non-functional requirements
5. Wrap-up ~2-5 min Trade-offs, what you’d monitor, what you’d do next

This mirrors the structure taught in most popular interview guides. Hello Interview’s free delivery framework is a good detailed version.

What interviewers look for

Interview resources

Resource Cost Notes
Hello Interview: System Design in a Hurry Free core guide; premium content (paid) Modern, interview-focused, with worked problems
System Design Primer Free Includes interview-style questions with solutions
interviewing.io system design guide Free Long-form guide from interviewers
System Design Interview: An Insider’s Guide Vol. 1 and 2, Alex Xu (and Sahn Lam for Vol. 2) (paid) Clear worked designs; widely used
ByteByteGo (paid) Online version of the above books plus more
ByteByteGo YouTube Free Short animated explainers
Hello Interview YouTube Free Full mock-interview walkthroughs
Excalidraw Free Practice diagramming the way many virtual interviews work

Best pick: read the System Design Primer for coverage, use Hello Interview’s free guide for the framework, then spend most of your time on timed practice with a partner.


Books Compared

Book Cost Level Best for
Designing Data-Intensive Applications, 2nd ed. (2026) (paid) Intermediate-advanced Deep understanding of data systems; the top pick
System Design Interview Vol. 1 and 2 (paid) Beginner-intermediate Interview preparation with worked examples
Site Reliability Engineering Free online Intermediate Running production systems
The Site Reliability Workbook and Building Secure and Reliable Systems Free online Intermediate Applied SRE and security
High Performance Browser Networking Free online Beginner-intermediate Networking performance
Distributed Systems for Fun and Profit Free online Beginner-intermediate Quick theory overview
Operating Systems: Three Easy Pieces Free online Beginner-intermediate OS fundamentals
Database Internals by Alex Petrov (O’Reilly) (paid) Advanced Storage engines and distributed databases in depth
Understanding Distributed Systems by Roberto Vitillo (paid) Intermediate Concise, practical bridge between theory and practice

Courses and Video Series

Course Cost Level Notes
MIT 6.5840 Distributed Systems Free materials Advanced Labs: MapReduce, key-value server, Raft, sharded KV
Cambridge Distributed Systems lectures Free Intermediate Concise theory with notes
MIT 6.1800 Computer Systems Engineering Free materials Intermediate System design principles through papers
Princeton COS 418 Distributed Systems Free materials Intermediate-advanced Lecture slides and Go assignments
Grokking the System Design Interview (Educative) (paid) Beginner-intermediate Popular interview course

Back-of-the-Envelope Numbers

Use round numbers. The goal is the order of magnitude, not precision.

Quantity Rough value
Seconds in a day ~86,400 (round to 10^5)
1 million requests/day ~12 requests/second average
100 million requests/day ~1,200 requests/second average; peak often 2-5x
Main memory reference ~100 ns
SSD random read ~10s to 100 microseconds
Round trip within a data center ~0.5 ms
Round trip across continents ~100-150 ms
Read 1 MB sequentially from memory ~tens of microseconds
A single well-tuned relational database Thousands to tens of thousands of simple queries/second (hardware dependent)
Characters in a typical tweet-sized post ~300 bytes with metadata
A 1080p image ~hundreds of KB to a few MB

The latency figures are the widely circulated “latency numbers every programmer should know”, which vary with hardware; treat them as orders of magnitude.

Estimation template:

  1. Users: daily active users (DAU) and actions per user per day.
  2. QPS = DAU x actions / 86,400; peak = 2-5x average.
  3. Storage = new items per day x size x retention days (x replication factor).
  4. Bandwidth = QPS x payload size.
  5. Ask: does this fit on one machine? If yes, say so; it simplifies the design.

Trade-off Cheat Sheet

Decision Option A Option B Choose A when…
SQL vs NoSQL Relational (Postgres, MySQL) Key-value / document / wide-column You need joins, transactions, flexible queries; data is relational
Strong vs eventual consistency Linearizable reads/writes Eventually consistent Correctness matters (balances, inventory) more than latency
Push vs pull (feeds) Fan-out on write Fan-out on read Most users have few followers; reads dominate
Sync vs async processing Request/response Queue + workers User needs the result immediately
Monolith vs microservices Single deployable Independent services Small team, early product, unclear boundaries
Cache-aside vs write-through App manages cache Cache updated on write Read-heavy with tolerable staleness
Polling vs WebSockets/SSE Periodic requests Persistent connection Updates are infrequent or clients are many and idle
Vertical vs horizontal scaling Bigger machine More machines Load fits comfortably on one machine with headroom
Normalized vs denormalized Single source of truth Duplicated for read speed Writes are frequent and consistency is critical

Practice Problems by Difficulty

Work through these in order. For each: requirements, API, data model, high-level design, deep dive on two bottlenecks, failure modes.

Level Problem Key concepts
Easy URL shortener ID generation, key-value storage, caching, redirects
Easy Pastebin Object storage, expiration
Easy Rate limiter Token bucket, distributed counters
Medium News feed / timeline Fan-out strategies, ranking, caching
Medium Chat application WebSockets, message ordering, presence, delivery receipts
Medium Notification service Queues, retries, idempotency, multiple channels
Medium Web crawler Politeness, deduplication, frontier queues
Medium Typeahead / autocomplete Tries, precomputation, caching
Medium Ticket booking (e.g., concert seats) Contention, locking, holds with expiry
Hard Video streaming platform Transcoding pipelines, CDNs, adaptive bitrate
Hard Ride-sharing dispatch Geospatial indexing, real-time matching
Hard Distributed key-value store Partitioning, replication, quorums
Hard Payment system Idempotency, ledgers, reconciliation, exactly-once effects
Hard Collaborative document editor Operational transforms or CRDTs, presence
Hard Distributed job scheduler Leader election, at-least-once execution, retries
Hard Metrics / monitoring system Time-series storage, downsampling, alerting

Free worked solutions for many of these: System Design Primer and Hello Interview’s problem breakdowns.


Hands-On Projects

Reading only goes so far. Build small versions to feel the trade-offs.

Project What you learn
URL shortener with Postgres + Redis cache, load-tested with a tool like k6 or wrk Caching effects, connection pools, bottlenecks
Rate limiter middleware (token bucket in Redis) Atomic operations, distributed state
Job queue with workers and retries At-least-once delivery, idempotency
Simple sharded key-value store with consistent hashing Partitioning and rebalancing
MIT 6.5840 labs: MapReduce and Raft in Go Consensus and fault tolerance, for real
Chat server with WebSockets and presence Stateful connections, fan-out
Change data capture pipeline (Postgres -> Kafka -> search index) Event-driven sync, eventual consistency

Document each with an architecture diagram, measured numbers (latency, throughput) and what broke when you pushed it.


Low-Level (Object-Oriented) Design

Some companies also run LLD rounds: design classes and interfaces for a parking lot, elevator, library system, or rate limiter.

Learn Resource
SOLID principles, composition over inheritance Any modern OOP text; practice in code
Design patterns (Strategy, Observer, Factory, State, Decorator) Refactoring.Guru design patterns (free)
Interview approach Hello Interview low-level design guide
Practice problems awesome-low-level-design

Common Mistakes


FAQ

How long does it take to learn system design? For interview readiness, about 2-3 months of focused study at 6-8 hours per week if you already have some backend experience; 4-6 months from a weaker base. Deep expertise comes from years of operating real systems.

Can I learn system design without work experience? Yes, you can learn the concepts and pass interviews, especially at junior and mid levels. Build hands-on projects to make the concepts concrete, and be honest in interviews about where your knowledge comes from.

What is the best book for system design? Designing Data-Intensive Applications for understanding (2nd edition published 2026). For interview-specific practice, System Design Interview by Alex Xu. Both are paid; the System Design Primer and Google SRE books are the best free alternatives.

Is the System Design Primer still relevant? Yes for fundamentals and building blocks. It is less up to date on newer tools and interview formats, so supplement it with a current interview guide.

What is the difference between high-level and low-level design? High-level design covers services, data stores and how they communicate at scale. Low-level design covers classes, interfaces and patterns inside a single component.

Do junior engineers get system design interviews? Often not, or a lighter version. They are standard for mid-level and senior roles at most large tech companies.

What is the CAP theorem in simple terms? When a network partition happens, a distributed data store must choose between staying consistent (refusing some requests) and staying available (answering with possibly stale data). PACELC adds that, even without partitions, there is a trade-off between latency and consistency.

SQL or NoSQL in an interview? Default to a relational database unless the requirements clearly favor something else (massive write throughput with simple access patterns, flexible schemas, or specific data models like graphs or time series). Justify the choice either way.

How do I practice system design? Pick a problem, set a 45-minute timer, talk out loud while drawing, then compare with a reference solution. Do mock interviews with peers. Read one engineering blog case study a week.


Where to Go Next


Contributing

Contributions are welcome via issues and pull requests. Please add a working link, a one-line description of why it is useful, its level, and whether it is paid. Case studies from primary sources (company engineering blogs, papers) are especially welcome. No pirated books.

If this helped you, a star helps others find it.

More free resources

Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.