How to draw a high-level design diagram people can actually 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:
- What does the request hit first? Usually DNS, a CDN or a load balancer.
- What decides whether it is allowed? An API gateway or an auth service.
- Which service does the work?
- What does that service read from or write to?
- 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:
| Shape | Use it for |
|---|---|
| Rounded box | Services and workers you run |
| Cylinder | Anything that stores data durably: databases, caches, search indexes |
| Pipe | Queues, topics and streams |
| Hexagon | Traffic handling: load balancers, gateways, proxies |
| Cloud | Things you do not operate: the internet, a CDN, a vendor API |
| Dashed boundary | A 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:
- The arrow points from the caller to the thing being called. It shows who initiates, not which way data flows. A service that reads from a database has an arrow pointing at the database, even though the data comes back the other way.
- Solid means the caller waits; dashed means it does not. A synchronous HTTP or gRPC call is solid. Publishing an event, enqueueing a job or replicating data is dashed. This single convention shows a reader where latency adds up and where failures are isolated.
- Label the arrows that are not obvious. A protocol ("gRPC"), an operation ("POST /orders") or the event name ("OrderPlaced") is enough. If every arrow would carry the same label, label none of them and say it once in a note.
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?".
- A client on the left sends HTTPS to a load balancer.
- Two services sit behind it, because the two requests have very different shapes: a write API (rare, can be slower) and a redirect API (very frequent, must be fast).
- The write API asks a key generation service for an unused short code, then stores the mapping in a URL store.
- The redirect API checks a cache first (solid arrow), and falls back to the URL store on a miss.
- Each redirect also publishes a click event to a queue (dashed arrow), which an analytics worker consumes and writes to a warehouse. The user never waits for this.
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
- Arrows without direction. A plain line says two things are related and nothing else.
- Crossing lines everywhere. Rearrange so the main flow reads left to right or top to bottom; put shared infrastructure (monitoring, auth) at the edge rather than wiring it to every box.
- Vendor logos instead of roles. "Cache" tells a newcomer more than a logo does. Add the product name as a second line if it matters.
- Showing every replica. Three identical boxes for three instances add ink, not information. Draw one and note "×3" if the count matters.
- No legend for a private convention. If dashed means asynchronous on your diagram, say so in a corner.
A checklist before you share it
- Is the question the diagram answers written on it?
- Can you trace the main request from start to finish without lifting your finger?
- Is every box something deployable, at one level of detail?
- Does every arrow have a direction, and are waiting and non-waiting calls told apart?
- Are the network or trust boundaries drawn?
- 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.