Dev Skills
Start from scratch·Interview guide

System design vs LLD vs HLD: what each one means

System design is the umbrella term. High-level design (HLD) decides which services exist, where data lives and how the system copes with load and failure. Low-level design (LLD) decides the classes, interfaces and data structures inside one of those services. In interviews, "system design" usually means the HLD round.

By devskills editorial team · Last updated

What is high-level design (HLD)?

High-level design is the view from above. You decide what the separate parts of a system are, how they talk to each other, where each piece of data is stored, and what happens when traffic grows or a machine fails. The output is a diagram of boxes and arrows, plus a list of decisions and what each one costs.

Typical HLD questions: should this be one database or several? Do we need a cache, and what happens when it is stale? How do we split data across machines? What if a whole region goes down? Most of the concepts on this site are HLD concepts, and every practice problem is an HLD problem.

What is low-level design (LLD)?

Low-level design zooms into one component and decides how its code is organised. You pick the classes or types, what each one is responsible for, the interfaces between them, and the data structures they use. The output is a class diagram or actual code, often with a few design patterns where they help.

Typical LLD questions: design a parking lot, an elevator controller or a library system as classes. How do you add a new vehicle type without editing old code? Which object owns this state? Where would a test plug in a fake? LLD is closer to everyday programming, and you are judged partly on whether the code would be easy to change.

This site focuses on HLD. For the code-structure side in Go, the lessons on interfaces and backend design interview questions cover the parts that overlap with LLD.

How do system design, HLD and LLD compare?

The table compares HLD and LLD side by side. "System design" on its own can mean either, or both, depending on who is using it.

High-level design (HLD)Low-level design (LLD)
Main questionWhat are the parts, and how do they work together at scale?How is the code inside one part organised?
Unit you designServices, databases, caches, queuesClasses, interfaces, functions, data structures
What you drawBoxes and arrows, data flow, regionsClass diagrams, method signatures, sometimes code
What drives decisionsLoad, latency, storage size, failure, costReadability, change, testability, correctness
Typical trade-offConsistency vs availability, cost vs speedFlexibility vs simplicity, inheritance vs composition
Numbers involvedRequests per second, terabytes, millisecondsRarely any; sometimes time and space complexity
Example questionDesign a link shortener for millions of usersDesign the classes for a parking lot
Good answer showsEach component has a reason and a named costEach class has one clear job and is easy to extend
HLD and LLD answer different questions about the same product.

Is "system design" the same as HLD?

In interview talk, usually yes. When a recruiter says "a system design round", they almost always mean an HLD-style question: a vague product prompt, about 45 minutes, and a whiteboard or shared doc. Some companies call the LLD round "object-oriented design", "machine coding" or "low-level design" to tell them apart.

Outside interviews, system design covers both and more: picking technologies, planning a migration, writing a design document. If you are unsure which round you have, ask the recruiter. It is a normal question, and the answer changes how you should prepare.

How is an HLD round different from an LLD round?

In an HLD round you talk for most of the time and draw. Nobody expects code. The interviewer pushes on scale and failure: "what if this gets ten times the traffic?" or "what if this database is down?". You are scored on the order you work in, whether your numbers shaped the design, and whether you name the cost of each choice. How the interview works describes this round in detail.

In an LLD round you usually produce something closer to code. Sometimes it is a class diagram and method signatures. Sometimes it is a working program in a fixed time. The interviewer pushes on change: "now add a new type of item" or "how would you test this?". You are scored on clear responsibilities, sensible names and how easily the design takes the change.

The two rounds share one habit: say why you made each choice. In HLD the reason is usually load or failure. In LLD it is usually change or clarity.

Which comes first when you design a real system?

HLD comes first. You cannot organise the code inside a service until you know the service exists and what it is responsible for. In practice the two go back and forth a little: a detail found while writing code can send you back to adjust the design. But the big decisions, such as where data lives and what talks to what, are made at the high level.

For example, in a ticket booking system the HLD decides that seat holds live in the database and expire after a timeout, and that payment is a separate step. The LLD then decides how the hold and expiry logic is structured in code, and how it is tested.

Which should you prepare for first?

Prepare for the round you have. If you do not know, ask. As a rough guide, earlier-career interviews lean more on coding and LLD-style questions, and HLD carries more weight as roles get more senior. Treat that as a tendency, not a rule; it varies a lot between companies and teams.

If you need both, start with HLD concepts because they take longer to absorb, and practise LLD alongside your normal coding practice. For an HLD plan, see how to prepare for a system design interview. If you are a student or new grad, system design for freshers covers what to expect at that level.

How does system design compare with DSA?

Data structures and algorithms (DSA) rounds ask you to solve a well-defined problem in code, with a correct answer you can test. System design rounds ask an open question with no single right answer and no code. DSA rewards precision on a small problem. System design rewards judgment on a large, vague one.

They use different practice. DSA improves with many short problems. System design improves with fewer, longer problems where you write your own answer and then compare. If you are practising DSA in Go, the DSA in Go section has problems with solutions.

The short version
  • System design is the umbrella. HLD and LLD are two levels of it.
  • HLD: services, data, scale and failure. Boxes and arrows, no code.
  • LLD: classes, interfaces and structure inside one service. Often code.
  • In interviews, "system design round" usually means HLD. Ask if unsure.
Remember: HLD decides what the parts are. LLD decides how one part is written.