System design concepts · Think Like a Designer

What Is High-Level Design (HLD)? HLD vs LLD Explained

High-level design is the art of choosing the big boxes, the arrows between them, and the reasons you can defend. The code comes later.

What you'll be able to explain
  • Explain HLD vs LLD vs architecture in one sentence each
  • Name the dozen building blocks almost every system uses
  • Describe the five forces that shape every design
  • Think in trade-offs instead of "best" answers
  • Know what interviewers actually score

A map, not a manual

Imagine planning a new city. Before anyone designs a single house, someone decides where the highways go, where the water plant sits, how many hospitals the population needs and what happens when a bridge closes. That is high-level design (HLD). Designing the floor plan of one house — rooms, doors, wiring — is low-level design (LLD).

In software, HLD answers questions like:

  • What are the major components, and what is each one responsible for?
  • How do requests and data flow between them?
  • Where is data stored, how is it split, and how many copies exist?
  • What happens at 10× traffic? When a machine dies? When a whole region goes dark?

LLD answers different questions: what classes and interfaces exist, which design patterns apply, what the database schema's exact columns and types are, and how a function handles edge cases.

High-level design Low-level design
Unit of thought Services, stores, queues, regions Classes, modules, functions, tables
Typical question "How does a message reach an offline user?" "How is the MessageRepository interface shaped?"
Main tools Boxes-and-arrows diagrams, numbers, trade-offs Class diagrams, patterns, code
Failure focus Machines, networks, regions Bugs, invalid input, race conditions in code
Interview signal Breadth, judgment, communication Abstraction, clean code, extensibility

Software architecture is the umbrella term: the long-lived decisions that are expensive to change later. HLD is the part of architecture you can draw on a whiteboard in 45 minutes.

Analogy

HLD is the city map: roads, power stations, hospitals. LLD is the blueprint of one building. Both matter, but you don't argue about door handles while the highway is still undecided.

The building blocks

Almost every system you will ever design is assembled from the same small set of parts. Learn what each one is for, and design becomes composition rather than invention.

CLIENTUsersweb, mobileNETWORKDNSNETWORKCDNstatic + mediaNETWORKLoad balancerNETWORKAPI gatewayauth, limitsSERVICEApp servicesstatelessCACHECacheRedisDATABASEPrimary DBQUEUE / LOGQueue / logWORKERWorkersOBJECT STOREObject store1 resolve2 requeststaticoriginreadwriteevent
The core building blocks and a typical arrangement. Not every system needs every box.
Block Job in one line Chapter
DNS Turns a name into an address; can steer users to the nearest region Networking Basics for System Design
CDN Serves bytes from a server physically near the user How a CDN Works
Load balancer Spreads requests over many identical servers, skips dead ones Load Balancers, API Gateways and Service Discovery Explained
API gateway One front door: auth, rate limits, routing, request shaping Load Balancers, API Gateways and Service Discovery Explained
Application service Runs business logic; ideally stateless so you can add copies Monolith vs Microservices
Cache Keeps hot data in memory so you skip slow work Caching and Redis for System Design Interviews
Database Durable source of truth with query and consistency guarantees SQL vs NoSQL–2PC vs Saga vs Outbox Pattern
Object store Cheap, near-infinite storage for files and blobs Object Storage (S3) and Large File Uploads in System Design
Queue / log Lets work happen later, absorbs spikes, connects producers to many consumers Message Queues and Delivery Guarantees–Stream Processing and Change Data Capture (CDC) Explained
Workers Background processes that consume queued work Background Jobs, Schedulers and Workflow Engines
Search index Finds things by words, prefixes and relevance Designing Search
Observability Metrics, logs and traces so you can see what's happening Observability