Guide

How to draw a high-level design diagram people can actually read

Published · 8 minute read

Most architecture diagrams fail for the same reason: they try to show everything the author knows. A high-level design (HLD) diagram has a narrower job. It should let someone who has never seen the system understand, in about a minute, what the main parts are and how a request moves through them. This guide is a method for getting there.

Decide what question the diagram answers

A diagram with no question behind it turns into an inventory. Before drawing anything, write one sentence at the top of the page, such as "What happens when a user places an order?" or "Where does customer data live and what can reach it?". Each of those produces a different picture of the same system, and that is fine. One system usually needs two or three diagrams, not one enormous one.

The sentence also tells you what to leave out. If the question is about the order path, the nightly reporting job does not belong on the page, however important it is.

Start from one request and follow it

Do not begin by listing components. Begin at the left edge with whoever starts the interaction (a user, a partner system, a scheduled job) and follow a single request to the right:

  1. What does the request hit first? Usually DNS, a CDN or a load balancer.
  2. What decides whether it is allowed? An API gateway or an auth service.
  3. Which service does the work?
  4. What does that service read from or write to?
  5. What happens afterwards without the user waiting: events, queues, workers?

Every box you add this way has a reason to exist, because the request needed it. Components that never appear on any request path are either out of scope for this diagram or deserve a diagram of their own.

Pick one level of detail and stay on it

The fastest way to make a diagram unreadable is to mix levels: a box called "Payments platform" next to a box called "retry_count column". A useful test is that every box should be something you could deploy, scale or replace on its own: a service, a datastore, a queue, a third-party API. Classes, tables, endpoints and functions belong one level down, in a low-level design.

If a box needs more than a short name and perhaps one line of description, it is a sign that the detail belongs in a separate, more detailed diagram that zooms into that box.

Use a small, consistent vocabulary of shapes

Readers decode shape before they read text, so use shape to carry the type of thing and keep it consistent across every diagram you draw:

ShapeUse it for
Rounded boxServices and workers you run
CylinderAnything that stores data durably: databases, caches, search indexes
PipeQueues, topics and streams
HexagonTraffic handling: load balancers, gateways, proxies
CloudThings you do not operate: the internet, a CDN, a vendor API
Dashed boundaryA network, account, region or trust zone

Colour should mean one thing as well. A common choice is one colour per kind of component (compute, data, messaging). Do not also use colour for ownership or status on the same diagram; pick one meaning.

Make the arrows do the work

Boxes say what exists. Arrows say how the system behaves, and they are where most diagrams are vague. Three rules remove most of the ambiguity:

Use a two-way arrow only for a genuinely bidirectional channel such as a WebSocket. A request and its response are one arrow.

Draw the boundaries

A boundary box around a group of components answers questions that the components alone cannot: what is inside the private network, what is in which region, what a single team owns, where the trust boundary sits. Security and reliability reviews are mostly conversations about what crosses these lines, so draw them. One or two boundaries are helpful; five nested ones are a sign the diagram is trying to answer several questions at once.

A worked example: a URL shortener

Take the classic interview system and apply the method. The question is "what happens when someone creates a short link, and when someone follows one?".

Ten boxes, ten arrows, and three decisions are visible without any prose: reads and writes are separated, reads are cached, and analytics is asynchronous. That is what a good HLD does. You can load this exact diagram from the Templates menu in the HLD Designer and change it.

Common mistakes

A checklist before you share it

  1. Is the question the diagram answers written on it?
  2. Can you trace the main request from start to finish without lifting your finger?
  3. Is every box something deployable, at one level of detail?
  4. Does every arrow have a direction, and are waiting and non-waiting calls told apart?
  5. Are the network or trust boundaries drawn?
  6. Could someone outside the team name each component's job from its label alone?

If the answer to all six is yes, the diagram is ready for a design review. Record the decisions it shows in an architecture decision record so the reasoning survives after the people who drew it move on.

Tools used in this guide

More guides