System Design Academy

Saving…

Lesson 1 of 7 in Module 60 of 54 lessons complete

The HLD Problem-Solving Framework

Module 6, lesson 1Concept12 min

Definition

HLD framework

In plain English
An HLD framework is a fixed order of steps for turning a vague product idea into a clear high-level design.
Think of it like
It is like an architect's process: brief, sketch, structure, then details.

Deep dive

In plain English
A deep dive is a focused, detailed look at one hard part of a design after the overall picture is clear.
Think of it like
It is like zooming into the kitchen plan after the whole restaurant layout is agreed.

Why it exists

You spend twenty minutes naming services, then discover the customer needed only one small app.

Without a method, you can miss the real requirement and leave no time for failures.

How it works

Non-goal

In plain English
A non-goal is something you deliberately decide not to build, so scope stays clear.
Think of it like
Like a recipe saying "no dessert today".
  1. 1. Requirements and non-goals — 5 minutes

    Ask who uses the system, what they need, and what you will leave out.

  2. 2. Estimates — 5 minutes

    Write traffic, storage, and bandwidth assumptions using Module 2 estimation.

  3. 3. API — 4 minutes

    Sketch the requests and responses using APIs from Module 1.

  4. 4. Data model — 4 minutes

    Choose records, keys, and correctness rules using Module 3.

  5. 5. High-level diagram — 10 minutes

    Connect clients, servers, storage, and delivery paths using Modules 1–4.

  6. 6. Deep dives — 10 minutes

    Choose the two or three hardest requirements and explain how the design meets them.

  7. 7. Failures and trade-offs — 7 minutes

    Use Module 5 reliability tools to explain outages and recovery.

Requirements lead to estimates, API, data, a diagram, deep dives, and failures.

Seven steps keep the discussion moving.

Requirements lead to estimates, API, data, a diagram, deep dives, and failures.

StepQuestion answeredEarlier module
RequirementsWhat must work?Module 1: system design
EstimatesHow much work arrives?Module 2: estimation
APIWhat can clients request?Module 1: APIs
DataWhat must be remembered correctly?Module 3: data layer
DiagramWhich components connect?Modules 1–4
Deep divesWhich parts need closer reasoning?Choose from Modules 1–5
FailuresWhat happens when something stops?Module 5: reliability

Examples

Practise in ten minutes

You want parents to see each bus location within 30 seconds.

Assume 100 buses report every five seconds: 100 ÷ 5 = 20 writes per second. Five thousand parents refresh every 15 seconds.

The latest-location API from Module 1.
HTTP
GET /buses/{id}/location

Buses report to an app server; parents read through a cache, while the server stores latest locations and history.

Separate the latest location from stored history.

Buses report to an app server; parents read through a cache, while the server stores latest locations and history.

Parent reads total 5,000 ÷ 15 ≈ 333 per second, or roughly 330. Use Module 4 caching for the morning spike.

The insight

Even a small design follows the same seven steps.

Trade-offs

Pros

  • Covers the main design questions.
  • Prevents premature detail.
  • Reserves time for failures.

Cons

  • Can feel mechanical.
  • Small problems need shorter steps.

Use when

  • An interview needs a complete design within a time limit.
  • A team needs shared assumptions before choosing components.

Avoid when

  • Never omit requirements or estimates, even for a small design.
  • Shorten later steps when the full time boxes exceed the discussion time.

Quick check

Which step usually decides between "one server" and "a CDN plus object storage"?
You have 10 minutes left and haven't discussed what happens when the database fails. What should you do?

Takeaways

  • Follow requirements, estimates, API, data, diagram, deep dives, and failures.
  • Let numbers drive the design.
  • Always save time for what breaks.

Try the quick check above whenever you feel ready.

Previous: Observability: Logs, Metrics & Traces