How to Use This Course, and What System Design Is (HLD vs LLD)

System design interviews feel vague because there is no single right answer. This article removes the vagueness. It explains what system design is, how high-level design (HLD) differs from low-level design (LLD), how to talk about trade-offs, and how to use this course in the time you have.

1. What System Design Is

System design is turning a vague business need into an architecture that works at scale, and being able to say what you gave up for each choice. A good design has three qualities:

  • Scalable: it keeps working as users and data grow.
  • Reliable: it keeps working when parts break, because parts always break.
  • Maintainable: people can understand, change and operate it.

It is not a coding puzzle and it has no single correct answer. Two good engineers can design the same system differently. What separates a strong answer from a weak one is that every choice traces back to a requirement, a number or a stated trade-off. The step-by-step method for doing this in an interview is in the interview framework article. Here we only need the vocabulary.

2. HLD vs LLD

The same problem can be designed at two levels. HLD (high-level design, also called system design or architecture) decides the big boxes and how they talk. LLD (low-level design, also called object-oriented design) decides the classes and methods inside one box.

flowchart LR
    R[Requirements] --> H["HLD: services, databases, caches, queues, data flow"]
    H --> L["LLD: classes, interfaces, methods, relationships"]
    L --> C[Code]
Aspect HLD LLD
Main question How do the pieces fit together, and how does it survive scale and failure? How is the code organized so it is clean, correct and easy to extend?
You produce Boxes and arrows, API, data model, numbers, trade-offs Classes, interfaces, relationships, key methods, sometimes working code
Focus Throughput, latency, availability, data placement Correctness, extensibility, design patterns, thread safety
Example prompts Design a news feed, a chat system, a payment system Design a parking lot, an elevator, an LRU cache
Typical rounds 45 to 60 minutes at a whiteboard or diagram tool. Expected at Senior level and above, and the main round for Staff and Principal 45 to 60 minutes, often in an editor. Most common at Senior level and below

2.1 One problem at both levels

Take a URL shortener. At the HLD level you decide: an API to create and resolve links, a database keyed by short code, a cache in front for reads, and a way to generate unique codes across many servers. At the LLD level you decide the code inside the service: a UrlService that calls a CodeGenerator interface (so Base62 or counter-based generators can be swapped), a UrlRepository interface (so storage can be swapped), and a validation step. HLD asks "how does this handle 20,000 reads per second?". LLD asks "how do I add expiry dates without rewriting everything?".

Which round you get depends on the company and level. Most Senior and above loops include at least one HLD round. LLD rounds are common for Senior and below. Staff and Principal rounds are HLD with more scope and more judgment (see the Staff and Principal section). This course covers both.

3. Trade-offs: The Core Skill

Almost every design decision gives something up. Interviewers do not want "the best database". They want "this database, because the workload is X, and I accept Y." A trade-off statement has four parts:

  1. The choice: "I will cache product pages."
  2. What it gives: "Reads get faster and the database load drops."
  3. What it costs: "Users may see data up to 60 seconds old, and we must handle invalidation."
  4. Why it is acceptable here: "Product descriptions seldom change, and freshness matters less than speed."

The trade-offs you will use again and again:

  • Consistency vs availability: reads always see the latest write, or the system stays up during failures.
  • Latency vs throughput: answer one request quickly, or handle many requests per second (batching raises throughput and latency).
  • Latency vs cost: more caches and replicas are faster and more expensive.
  • Simplicity vs flexibility: a monolith is easy to run, microservices let teams move independently.
  • Read speed vs write speed: indexes and denormalization speed up reads and slow down writes.
  • Storage vs compute: store precomputed results, or compute on demand.

If you cannot name what a choice costs, you do not yet understand the choice. In the interview, always say the cost out loud.

4. The Building Blocks

Almost every design is built from the same ten parts. Learn what each one is for, and the case studies become combinations of familiar pieces.

  • Client: a browser or app. It is slow, far away and not trusted.
  • DNS and CDN: DNS turns a name into an address. A CDN serves static files from a place near the user.
  • Load balancer and API gateway: spread requests over many servers, and add checks such as authentication and rate limits.
  • Application servers: run the business logic. Keep them stateless so you can add more.
  • Database: the durable source of truth. The big choice is relational or NoSQL.
  • Cache: fast memory in front of the database, for data that is read often.
  • Message queue or log: lets one part hand work to another without waiting for it.
  • Object storage: cheap, durable storage for large files such as images and video.
  • Search index: answers text and location queries that a normal database does badly.
  • Monitoring: metrics, logs and alerts, so you know when something breaks.

5. Four Moves That Solve Most Scale Problems

Start with one server and one database. Add a piece only when a number forces you to. Then most problems are solved by one of four moves:

  • Replicate: keep copies of servers or data. It gives more read capacity and survives failures. The cost is keeping copies in sync.
  • Partition: split the data so each machine owns a part (sharding). It gives more write capacity and more storage. The cost is that queries across parts get harder.
  • Cache: keep hot results in memory. It lowers latency and database load. The cost is stale data.
  • Go asynchronous: put work on a queue and answer later. It absorbs spikes and decouples parts. The cost is delay and harder error handling.

Every move trades one of the qualities in section 3 for another. When you meet a problem in a case study, ask which move fits, and what it costs.

6. How the Course Is Organized

The course is a series of short lessons in nine groups. They build on each other, so earlier groups explain terms used later.

  • Foundations: the interview method, requirements, estimation, scalability, availability, networking and APIs, load balancers. Start here.
  • Data: databases, indexes, transactions, replication, consistency, sharding, storage, search and data processing.
  • Scale and reliability: caching, CDNs, message queues, Kafka, event-driven design, sagas, resilience patterns, consensus.
  • Architecture and operations: security, cloud infrastructure, observability, releases.
  • Low-level design: object-oriented principles, concurrency, design patterns, and classic LLD problems.
  • HLD case studies: full designs of well-known systems, from a URL shortener to Google Docs. Each uses the interview framework with real numbers.
  • AI systems: LLM serving, RAG, agents, recommendation and ChatGPT-style designs.
  • Staff and Principal: design docs, trade-offs at organization scale, large migrations, and teardowns of real systems.
  • Practice: mock interviews, design critiques and a pacing guide.

Conventions used throughout:

  • All numbers are illustrative (round figures that make the math clear). In a real interview, use the interviewer's numbers and redo the same arithmetic.
  • Capacity numbers state a reference machine, for example an AWS m5.xlarge running Tomcat, so you can see where they come from.
  • Code is Java. SQL, YAML and similar appear where they fit. AI lessons use Python.
  • Estimates start from per-day totals and are then converted to per-second rates.
  • Each lesson is a 10 to 15 minute read, so you can plan your study time.
  • Each concept lesson ends with a pitfalls list and interview questions. Each case study follows the same steps, so the structure becomes automatic.

7. How to Study

Reading alone does not build interview skill. Use a loop for each lesson:

  1. Read once without stopping to memorize.
  2. Close it and explain it out loud in two minutes, as if to a colleague. Where you get stuck is what to re-read.
  3. Redraw the diagram from memory, with the numbers.
  4. Answer the interview questions at the end without looking.

For case studies, do the design yourself on paper first for 30 to 45 minutes using the framework, then read the lesson and compare. The gap between your design and the lesson shows what to learn. Finish with a timed mock where you talk the whole time. Thinking silently in an interview scores poorly even if the design is good.

7.1 Study plans

You do not need every lesson to be ready. The core path is the Foundations and Data groups, the Scale and reliability group, and the HLD case studies, plus the LLD group if you expect an LLD round. That is a little over half of the course by reading time. Practice takes longer than reading, so plan for it.

Time you have Read Practice
1 week Foundations, then caching, replication, sharding, queues, load balancers. Skip the rest for now. Design a URL shortener, news feed, chat and notification system on paper. One timed mock.
4 weeks The core path in order. About 1 to 2 hours of reading a day is enough. One case study every 2 to 3 days, plus a timed mock each weekend.
8 weeks or more The whole course in order, including LLD, AI systems and Staff and Principal if your level needs it. All case studies, the mock interviews and the design critiques, with a friend or recorded.

By background: if you are strong on fundamentals but new to interviews, spend your time on the framework and the HLD case studies. If you design systems at work but freeze in interviews, spend your time on estimation, drawing quickly and talking while you think. If you target an LLD round, add the LLD group, and start with the LLD interview approach lesson. If you target Staff or Principal, add the Staff and Principal group early.

8. Common Pitfalls

  • Looking for the one right answer. Many designs work. Be ready to defend yours.
  • Starting with the technology. "We will use Kafka" before you know the load or the requirement.
  • Over-building. Microservices, sharding and multi-region for 100 requests per second.
  • Naming trade-offs without choosing. "It depends" is a start. Then pick one and say why.
  • Reading without practising. You learn to explain a design by explaining it aloud, not by reading it.

9. Interview Questions This Lesson Prepares You For

  • What is the difference between HLD and LLD? HLD is components, data flow and scale. LLD is the classes and methods inside a component. Use the URL shortener example above.
  • What makes a design good? It is scalable, reliable and maintainable, and every decision is justified by a requirement and an accepted trade-off.
  • Walk me through a trade-off you made. Use the four parts: choice, benefit, cost, why acceptable.
  • A system is slow and the database is the bottleneck. What are your options? Replicate for read capacity, cache hot reads, partition for write capacity, or move slow work to a queue. Say which one fits the numbers and what it costs.
  • How would you prepare for a system design interview in a month? Learn the framework, study the core path, do a timed case study every few days, and do mocks aloud.