# The HLD Interview Framework

> Structure a 45-minute system design interview: requirements, estimates, API, data model, high-level diagram, deep dives and trade-offs. Free notes, key...

Canonical: https://www.internhack.in/roadmaps/tracks/cs-fundamentals/hld-interview-framework
Last updated: 2026-11-28

Structure a 45-minute system design interview: requirements, estimates, API, data model, high-level diagram, deep dives and trade-offs.

Intermediate · about 4 hours · difficulty 3/5

Learn first: [Service Architecture and API Design](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/service-architecture-api-design), [CAP Theorem and Consistency Models](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/cap-and-consistency)

System design interviews are open-ended on purpose. A consistent structure keeps you from rambling and shows the interviewer you can drive an ambiguous discussion.

### A 45-minute structure

- **Requirements (5-7 min)**: functional (users can post, follow, view feed) and non-functional (scale, latency, availability, consistency). Agree on what is out of scope.
- **Estimates (3-5 min)**: DAU, read and write QPS, storage, bandwidth. Note the read:write ratio; it drives caching decisions.
- **API (3-5 min)**: the handful of endpoints that cover the requirements.
- **Data model (5 min)**: main entities, SQL or NoSQL with a reason, and likely shard keys.
- **High-level design (10 min)**: clients, LB, services, databases, caches, queues, CDN, drawn as boxes with data flow for the main use cases.
- **Deep dives (10-15 min)**: the one or two hardest parts, often chosen by the interviewer: feed generation, hot keys, consistency, failure handling.
- **Wrap-up**: bottlenecks, monitoring, and what you would do next with more time.

### Habits that score well

- Think aloud and check in: "I will assume 100 million DAU, does that sound right?"
- State **trade-offs** explicitly for every major choice, including what you give up.
- Start simple, then scale the parts the numbers say need scaling.
- Use real components by category (a relational DB, a cache like Redis, a queue like Kafka) without obsessing over brands.

### Red flags

Drawing twenty boxes before requirements, ignoring the numbers, never mentioning failures, and treating every design as needing microservices and Kafka.

Good enough to move on: you can run a full mock of a design you have not seen, finish the high-level diagram by minute 25, and lead a deep dive with trade-offs.

## Key concepts

- **Functional and non-functional requirements**
- **Estimation step**
- **API and data model**
- **High-level diagram**
- **Deep dives and bottlenecks**
- **Communicating trade-offs**
- **Common red flags**

## Mini project

Record yourself (screen plus voice) doing three 45-minute designs using this framework on a whiteboard tool like Excalidraw, then review the recordings against the timings and list where you lost time or skipped trade-offs.

## Check yourself

Why should the read-to-write ratio you estimate early change which components you add later in the design?

## Free resources

- [The System Design Primer: How to approach a system design interview](https://github.com/donnemartin/system-design-primer) (GitHub)
- [Tech Interview Handbook: System design](https://www.techinterviewhandbook.org/system-design/) (Tech Interview Handbook)
- [Excalidraw whiteboard](https://excalidraw.com/) (Excalidraw)

Previous: [Service Architecture and API Design](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/service-architecture-api-design) · Next: [Classic HLD Case Studies](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/hld-case-studies)

## More in Distributed Systems and HLD Interviews

- [Message Queues and Asynchronous Processing](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/message-queues-async)
- [CAP Theorem and Consistency Models](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/cap-and-consistency)
- [Service Architecture and API Design](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/service-architecture-api-design)
- [The HLD Interview Framework](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/hld-interview-framework)
- [Classic HLD Case Studies](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/hld-case-studies)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [CS Fundamentals and Placement Prep Roadmap](https://www.internhack.in/roadmaps/tracks/cs-fundamentals)
