The design steps

From data to bottlenecks · Part of Interview cases

Key idea

Practice

6 questions · about 3 min

Explained step by step

High-level design

After clarifying requirements and estimating, the interview follows 5 steps: design the data model, design the API, build the high-level design, go into the detailed design, and find and resolve bottlenecks. Following an order helps you not get lost in 45 minutes. It's like building a house: blueprints, utilities, walls, finishes and, finally, checking what can fail.

With the data model and the API, you identify the components needed, like load balancers or an API gateway, and draw a first design. Questions: «monolith or microservices?» and «which type of database to use?». With the basic diagram, you talk with the interviewer about how it works from the client's point of view. It's like a house sketch: where each room goes, before picking the tiles.

Data model

With the estimates ready, you define the database schema. Doing it early helps you understand how data flows, which is the core of every system. In this step you define the entities and the relationships between them. Useful questions: «what entities are there?», «how do they relate?», «how many tables do we need?» and «is NoSQL a better fit?». It's like taking inventory before opening a shop: which products there are and how they're grouped.

API

Next, you design the API, which explicitly defines what the system offers. No code is needed: a simple interface with parameters, functions and types is enough, like createUser(name, email): User. It's best to keep it as simple as possible and come back to it when covering the extended requirements. It's like a restaurant menu: it says what you can order and what you get, not how it's cooked.

Detailed design

In the detailed design you dig into the main components, choosing with the interviewer which one to improve. It's the moment to show experience: present alternatives with pros and cons, and back them up with examples. Questions: «how do we partition the data?», «how is load distributed?», «do we use a cache?» and «how do we handle a traffic spike?». Beware of being dogmatic: saying «NoSQL is always better» reflects poorly. It's like the architect who, with the sketch approved, picks materials and explains why.

Bottleneck

Finally, you look for bottlenecks and how to ease them. Key questions: «do we have enough database replicas?», «is there any single point of failure?», «is sharding needed?», «how do we make the system more robust?» and «how do we improve the cache's availability?». Good advice: read the company's engineering blog before the interview, to know which technologies they use. It's like inspecting a bridge before opening it: you look for the weakest point, because that's where it breaks.

Terms in this lesson

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.

Key idea

From data to bottlenecks