Skip to content
whiteboard.tools
  • Architecture
  • Documentation

How to draw an architecture diagram that still makes sense in six months

Pick one audience, keep a legend, label every arrow with a verb, mark what you do not own, and store the source next to the code it describes.

By 4 min read

An architecture diagram with a legend in the corner, labelled arrows and a dashed box around a third-party payment provider

Every team has one: the architecture diagram in the wiki that was accurate for about three weeks. It still gets shown to new hires, with a caveat that grows longer every quarter. "Ignore that box, we killed it. And that arrow goes the other way now."

Diagrams rot for predictable reasons, and most of them are decided in the first ten minutes of drawing. These are the habits that keep a diagram useful long after the person who drew it has moved on.

Draw for one audience at one level

The most common reason a diagram is unreadable is that it tries to answer every question at once. Network zones, deployment units, class names and business capabilities all end up on the same canvas, and the result is accurate and useless.

Decide who the diagram is for before you draw the first box:

  • Someone outside the team wants to know what the system does and what it talks to. One box for your system, boxes for the people and external systems around it, and labelled arrows between them.
  • A new engineer on the team wants to know what runs where. The web app, the API, the worker, the database, the queue, and how requests move between them.
  • Someone debugging one service wants that service's internals, and nothing else.

If you need all three, draw three diagrams. This is the core idea behind Simon Brown's C4 model, and you do not need to adopt the whole notation to get the benefit. Just refuse to mix levels on one canvas.

Put a legend on it, even if it feels obvious

To you, a cylinder is a database, a dashed border means "not ours", and a thick arrow means synchronous. To the person reading it next year, they are shapes.

A legend costs a small box in the corner:

Shape or lineMeaning
Rounded boxService we deploy
CylinderData store
Dashed boxThird party or another team's system
Solid arrowSynchronous call
Dashed arrowAsynchronous message or event

The legend also keeps you honest while drawing. Once you have written "dashed arrow means asynchronous", you notice the moment you are about to draw a dashed arrow for something else.

Label arrows with what happens, not just that something happens

An unlabelled arrow from "Orders" to "Payments" could mean Orders calls Payments, Payments calls Orders and the arrow points at the data flow, or that they share a database. Readers will guess, and they will guess differently.

Label every arrow with a verb and, where it matters, the mechanism:

  • "charges card (HTTPS)"
  • "publishes OrderPlaced"
  • "reads product prices"

Point the arrow in the direction of the call or message, not the direction the data travels back. If you need to show the response, the label can say "returns quote", but one arrow per interaction is usually enough.

Mark the edges of what you own

Draw anything outside your control differently. A dashed border around the payment provider, the identity provider and the email service tells readers three things at once: you cannot change it, it can fail independently, and someone else has to be called when it does.

This is also where a diagram earns its keep during an incident. "Which of these boxes is ours?" is a real question at 2 a.m., and a diagram that answers it at a glance is worth more than one that is pretty.

Leave things out on purpose

A useful diagram is a selection, not an inventory. Some things that usually do not belong on a container-level diagram:

  • Every individual Lambda function or cron job. Group them as "scheduled jobs".
  • Load balancers and API gateways, unless the gateway does real work like authentication or rate limiting that readers need to know about.
  • Monitoring, logging and tracing. They connect to everything, so drawing them adds a dozen arrows and no information. Mention them in a note.

If a reader asks "where is X?", that is fine. It means the diagram was clear enough for them to notice what was missing.

Date it, sign it, keep the source next to the code

Put a small line in the corner: what it shows, when it was last checked, and who to ask. "Checkout, container view. Checked 2026-11. Ask the payments team."

Then store the editable source in the same repository as the code it describes, in a docs/ folder or next to the service. A diagram in a repository gets updated in the same pull request that changes the architecture. A diagram in a slide deck on someone's laptop does not.

The practical setup that works well:

  1. Keep the .excalidraw file in the repository. It is JSON, so it diffs and merges like any other text file.
  2. Export an SVG next to it and reference that from your README or docs site. SVG stays sharp at any zoom and is small.
  3. When the source changes, regenerate the SVG. The Excalidraw to SVG converter does this in the browser without opening an editor, with light, dark and transparent options.

A starting point

If you are drawing a typical web system for the first time, start from a structure rather than a blank canvas. The three-tier web app template already separates the CDN, load balancer, stateless API, cache and database, and the event-driven architecture template shows producers, a broker, consumers and a dead-letter queue with dashed asynchronous arrows. The cloud architecture shapes are vendor-neutral on purpose, so the diagram does not need redrawing if you move from one provider's queue to another's.

Then add your legend, label your arrows, and put a date in the corner. Six months from now, someone will thank you without knowing your name.

Try it on a board

More articles