Skip to content

architecture

How to Draw a System Architecture Diagram

By Canvos6 min read

Hand-drawn architecture sketch with a client, gateway, three services and a database

A good system architecture diagram answers one question for one audience. Decide who will read it, draw only the boxes that matter to them, label every arrow with what flows along it, and keep it to about 7 to 12 boxes. Everything else belongs in a second diagram.

Start with the audience and the question

An architecture diagram fails most often because it tries to serve everyone. A new engineer, a security reviewer and a product manager need different views of the same system.

Write one sentence before you draw: "This diagram shows [what] to [who] so they can [decide or understand what]." For example: "This diagram shows how a request reaches the database, for new backend engineers, so they know where to add logging."

Choose the level of detail

The C4 model, created by Simon Brown, is a useful way to think about levels. It describes four zoom levels: context, containers, components and code. You do not need to follow it strictly, but its idea of separate zoom levels is valuable.

Level Shows Typical audience
Context Your system as one box, with the users and external systems around it Everyone, including non-technical readers
Containers Deployable parts: web app, API, database, queue Engineers and operations
Components The main modules inside one container The team that owns that container
Code Classes and functions Usually generated from code, rarely drawn by hand

Most hand-drawn architecture diagrams live at the context or container level. If a diagram mixes levels, such as a user next to a single class, split it.

Draw it step by step

  1. List the parts. Write down every component that handles a request or stores data: clients, gateways, services, queues, databases, third-party APIs.
  2. Cut the list. Remove anything the reader does not need for the question you wrote. Aim for roughly 7 to 12 boxes.
  3. Choose a direction. Left to right works well for request flows: client, then gateway, then services, then storage. Top to bottom works for layered systems.
  4. Group by boundary. Draw a large outline around things that belong together: a network, a cloud account, a team's services, a trust zone. Boundaries explain more than any single arrow.
  5. Place the boxes. Put the entry point where reading starts and the data stores where it ends.
  6. Draw arrows with meaning. Point each arrow in the direction of the request or data flow, and label it with the protocol or the payload, such as "HTTPS", "gRPC", "order events".
  7. Distinguish sync from async. Use a solid arrow for a direct call and a dashed one for messages through a queue, and say so in a legend.
  8. Add a small legend and a date. Colours and line styles need a key, and architecture ages. A "last reviewed" date tells readers how much to trust it.

Habits that make diagrams readable

  • Name boxes the way people say them. "Orders Service" beats "svc-ord-prod-02".
  • One idea per colour. Use colour to mark ownership or risk, not decoration.
  • Avoid crossing arrows. Rearrange boxes before you route lines around obstacles.
  • Show failure and trust boundaries. Where does a request cross from the internet into your network? Where can data be lost?
  • Keep the source. A diagram in a screenshot nobody can edit goes stale. Store the editable file with the code or the design document.

Drawing it in Canvos

Canvos is a native macOS whiteboard and diagramming app. You can draw an architecture diagram in two ways.

By hand. Use rectangles for services, ellipses for external actors, and diamonds for decision points. Connect them with arrows, which can bind to shapes so they follow when you move a box. Add text labels to arrows. An infinite canvas lets you leave space for boundaries and notes, and the minimap helps you navigate a large drawing.

From a prompt. Sign in with email or Google and describe the system. For example:

"Left to right architecture diagram. Browser calls API Gateway. API Gateway calls Auth Service, Orders Service and Catalog Service. Orders Service writes to a Message Queue. Message Queue feeds a Worker. Orders Service and Worker both read and write the Orders Database. Catalog Service reads the Catalog Database."

Canvos draws rectangles, arrows and labels, which you then correct with the normal tools. AI layouts are a starting point, so expect to move boxes and fix a few arrows. The free plan includes 20 generations a day, and Pro is $6 per month for 500 a day.

When you finish, export as SVG for documentation and web pages, which stays sharp at any zoom, or as PNG for slides and chat. Keep the .canvos file as the editable source. If you are unsure which format to use, read SVG vs PNG for diagrams.

What Canvos does not do for architecture

It has no cloud-provider icon libraries, no templates and no automatic layout. It has no real-time collaboration. Its look is hand-drawn rather than formal. If you need official AWS, Azure or Google Cloud icon sets, or live co-editing, another tool will serve you better. If you want diagrams as code, a text-based tool is the right category.

Diagrams as code or diagrams as drawings?

Diagram as code (Mermaid, Structurizr and similar) Drawn diagram (whiteboard or diagramming app)
Layout Automatic You control it
Version control Easy: plain text diffs Harder: binary or large files
Staying in sync with the system Easier to automate Manual
Visual expression Limited High
Speed for one-off sketches Slower to learn Fast

Many teams use both: code-based diagrams for the stable reference, and sketches for design discussions and proposals. Canvos fits the second use. See also how to generate a diagram from text with AI.

A quick review checklist

Before you share the diagram, ask:

  • Can someone state the purpose of the diagram after ten seconds?
  • Does every box have a name the audience recognises?
  • Does every arrow have a direction and a label?
  • Are the boundaries drawn and named?
  • Is there a legend and a review date?
  • Would splitting it into two diagrams make each clearer?

FAQ

What is the best tool for a system architecture diagram?

It depends on the job. Diagram-as-code tools suit documentation in a repository. A whiteboard or diagramming app suits design discussions and one-off diagrams. Canvos is a whiteboard-style option for macOS.

How many components should an architecture diagram have?

Roughly 7 to 12 boxes is a comfortable range for one diagram. Above that, split the diagram by level or by area of the system.

What is the C4 model?

C4 is a way of describing software architecture at four zoom levels: context, containers, components and code. It was created by Simon Brown, and many teams borrow its levels even when they do not follow it fully.

Can AI draw an architecture diagram for me?

It can draft one from a description. Canvos does this from a text prompt after you sign in. You should check the result against the real system and tidy the layout.

Should I use SVG or PNG for architecture diagrams?

Use SVG for documentation and websites because it stays sharp when scaled. Use PNG for slides and chat tools that do not display SVG.

Next step

Write your one-sentence purpose, list the boxes, and draw the first version. Download Canvos to sketch it on your Mac, or see the system architecture diagram guide.