The HLD Interview Framework

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, CAP Theorem and Consistency Models

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