What System Design Is (HLD vs LLD)

Understand what system design means, the difference between high-level and low-level design, and how requirements drive every decision.

Beginner · about 2 hours · difficulty 1/5

System design is the practice of deciding which components a software system needs, how they talk to each other, and how data flows through them, so that the system meets its requirements today and can grow tomorrow. There is rarely one right answer; there are trade-offs you can defend.

Two levels of design

  • High-level design (HLD): the big boxes. Clients, load balancers, services, databases, caches, queues, CDNs and how they connect. Questions like "how do we serve 10 crore users?" live here.
  • Low-level design (LLD): the inside of one box. Classes, interfaces, data models, APIs and design patterns. Questions like "design the classes for a parking lot" live here.

Product companies in India usually test both: an LLD or machine coding round for SDE-1 and SDE-2, and an HLD round that gets heavier as seniority grows.

Requirements come first

  • Functional requirements: what the system does (users can shorten a URL, users can book a seat).
  • Non-functional requirements: how well it does it. Latency, throughput, availability, durability, consistency, cost and security.
  • Constraints: team size, budget, existing tech, regulation (for example RBI data localisation for payments).

A design that is perfect for a college fest app with 2,000 users is wrong for IRCTC Tatkal booking. Always ask "for how many users, how fast, and how correct?".

Pitfalls

  • Jumping to "use Kafka and microservices" before writing down what the system must do.
  • Treating system design as memorising famous architectures instead of reasoning from requirements.

You are ready to move on when you can take any app on your phone and list its top three functional requirements and top three non-functional requirements.

Key concepts

  • High-level design (HLD)
  • Low-level design (LLD)
  • Functional requirements
  • Non-functional requirements
  • Constraints and assumptions
  • Thinking in trade-offs

Mini project

Pick three apps (for example Swiggy, IRCTC and Google Pay) and write a one-page requirements sheet for each: five functional requirements, five non-functional requirements with rough targets, and two constraints.

Check yourself

Why might the right database for a ride-hailing app's trip history be different from the right database for its live driver locations?

Free resources