A system architecture diagram is a visual map of the major parts of a system (users, apps, services, data stores, infrastructure and outside dependencies) and how they connect and exchange data. The good ones pick one audience, stay at one level of zoom, label every arrow and include a legend.
That's the TL;DR. The harder part is drawing one that is still true six months from now.
Because we've all seen it: the diagram in the onboarding doc, last touched in 2023, still showing the monolith the team split up two reorgs ago. Nobody trusts it, so nobody updates it, so nobody trusts it. Classic loop.
This guide is the way out. We'll cover what a system architecture diagram actually is, what goes on it, a seven-step way to draw one, three worked examples, a review checklist, and how to pick a tool without overthinking it.
What is a system architecture diagram?
A system architecture diagram shows the structure of a system and the relationships between its parts. AWS describes architecture diagramming as "the process of creating visual representations of software systems", and the point is that a picture of data flows is much faster to reason about than the code itself.
Here's a nuance most guides skip: "system architecture diagram" is used loosely. On that same page, AWS separates several diagram types:
| Diagram type | What it shows | Question it answers |
|---|---|---|
| Software architecture | Components, services and their interactions | "Which services talk to which, and why?" |
| System architecture | Infrastructure such as servers, databases and network devices | "What does this run on?" |
| Application architecture | One application and its data flow | "How does a request move through this app?" |
| Integration architecture | How internal and external systems connect | "What do we depend on outside our walls?" |
| Deployment architecture | Components mapped to environments | "Where does each piece run, and what happens if a zone fails?" |
In real life, most teams asking for "the system diagram" want a blend: the services that matter, plus the infrastructure and boundaries they sit inside. That's fine. The rule is not "pick the correct taxonomy". The rule is one diagram, one audience, one question.
If you need a structured way to manage zoom levels, the C4 model is the most widely used approach: system context, container, component and code diagrams, each zooming in further. C4's own guidance is that you don't need all four levels, only the ones that add value, and that context plus container diagrams are enough for most teams. We go deep on that in our C4 diagram examples guide.
→ Skip the blank canvas: describe your system and get a first draft with Architect AI
What does a system architecture diagram look like?
Strip away the icons and almost every system diagram is built from the same seven ingredients:
- Actors: people and external systems that start interactions (customers, admins, partner APIs, cron schedules).
- Entry points: DNS, CDN, load balancers, API gateways, webhooks. Everything that accepts traffic from outside.
- Compute: the services, functions or workers that do the work.
- Data stores: databases, caches, object storage, search indexes.
- Async plumbing: queues, topics and event buses that decouple producers from consumers.
- External dependencies: payment providers, identity providers, email, third-party APIs.
- Boundaries: network zones, trust boundaries, accounts or subscriptions, regions.
Here's a minimal system diagram for an online shop, written as plain text so you can see the bones without the decoration:
[Customer]
| HTTPS
v
[CDN + WAF]
| HTTPS
v
[Load balancer]
|
+--- private network --------v---------------------------------+
| [Web app] |
| | JSON/HTTPS |
| v |
| [Orders DB] <-SQL- [Orders API] -publish-> [Queue] |
| | | consume |
| | v |
| | [Email worker] |
| | | |
+----------------------------|-------------------|-------------+
| HTTPS | HTTPS
v v
[Payment provider] [Email service]
Notice what's doing the heavy lifting: the arrows have protocols, the private boundary is explicit, and the external dependencies sit outside it. Swap the boxes for AWS, Azure or GCP icons later. The structure is what reviewers actually read.
→ Browse 240+ proven patterns before you draw from scratch
How to draw a system architecture diagram in 7 steps
You can do this in any tool. The order matters more than the software.
1. Name the audience and the question
A diagram for a new hire answers "what are the big pieces?" A diagram for a security review answers "where can untrusted input get in?" Write the question in the title. Seriously, in the title.
2. Draw the scope boundary first
Draw one box: "our system". Everything inside is yours, everything outside is a dependency. This single line prevents half of all diagram arguments.
3. Add actors and external systems
Put users and outside systems around the boundary. If a partner calls you via webhook, that's an actor. If you call Stripe or an identity provider, that's an external system.
4. Add containers, not classes
Inside the boundary, add the deployable or runnable units: web app, API, workers, databases, queues. Resist the urge to draw every internal module. That level belongs in a component diagram, if you need one at all.
5. Draw the critical flows and label every arrow
Start with the request path that matters most (checkout, login, ingest), then the async path. C4's notation guidance is blunt and correct here: every line should be unidirectional, every line should be labelled, and labels should be specific. "Uses" tells nobody anything; "publishes OrderPlaced events to" does.
6. Mark the boundaries that change risk
Public vs private network, trust boundaries, accounts, regions, availability zones. These are where security, latency and cost decisions live, so a reviewer should spot them in two seconds.
7. Add a title, a legend and a date
Title with type and scope. Legend for shapes, colours and line styles. A "last reviewed" date so readers know how much to trust it. Then put the diagram somewhere it gets seen in reviews, because a diagram that only lives in a slide deck dies there.
System architecture diagram examples
Three shapes cover a huge share of real systems. Use them as starting points, not as gospel.
Example 1: Multi-tenant SaaS web app
- Actors: end users (browser), tenant admins, a billing provider sending webhooks.
- Entry: DNS, CDN with a web application firewall, load balancer.
- Compute: a web frontend, an API service, background workers.
- Data: a relational database (tenant ID on every row or schema-per-tenant), a cache, object storage for uploads.
- Async: a queue between the API and the workers for emails, exports and webhooks.
- Boundaries: public subnet for the load balancer only; app and data in private subnets across two availability zones.
What the reviewer looks for: can one tenant's data reach another? What fails if the cache is cold? Which arrows cross the internet?
Example 2: Event-driven order pipeline
- Actors: customers, a warehouse system, a finance system.
- Compute: an Orders service, an Inventory service, a Payments service, a Notifications service.
- Async: an event bus or Kafka topics (
order.placed,payment.captured,stock.reserved). - Data: each service owns its own store; no shared database.
- Boundaries: internal services in a private network; payment provider external.
What the reviewer looks for: which events are the contract, who owns each topic, what happens on a duplicate or out-of-order event. For the runtime ordering, pair the system diagram with a sequence diagram; our sequence diagram examples cover retries and sagas.
Example 3: Retrieval-augmented AI assistant
- Actors: internal users via chat UI, a document source (wiki, ticketing system).
- Compute: chat API, an ingestion worker that chunks and embeds documents, an orchestrator that retrieves context and calls a model endpoint.
- Data: a vector index, the original document store, a conversation log.
- External: the model provider or a self-hosted inference endpoint.
- Boundaries: what data is allowed to leave your network to the model endpoint, and whose identity the retrieval runs as.
What the reviewer looks for: permission leakage (does retrieval respect the user's access?), data residency, and cost per request.
→ Generate any of these from a one-paragraph prompt with Architect AI
System architecture diagram best practices (review checklist)
Run every diagram through this before it goes into a design review. Most items come straight from the C4 notation guidance; the rest are lessons from reviews that went sideways.
- Title states type and scope ("Container view: Orders platform, production").
- Legend explains shapes, colours, borders and line styles.
- Every element has a type and a one-line responsibility.
- Every container lists its technology (PostgreSQL 16, Node.js, Lambda).
- Every arrow is one-directional and labelled with intent and protocol.
- Acronyms are explained or understandable to the audience.
- Trust and network boundaries are visible.
- External dependencies sit outside the system boundary.
- One level of zoom per diagram. No class names next to VPCs.
- Icons are current. AWS, for example, publishes its Architecture Icons and advises checking you're not using legacy icon sets.
- A "last reviewed" date and an owner are on the diagram.
- It matches reality. Compare against IaC or the live environment at least once a quarter.
That last one is where most diagrams quietly die. When the picture and production disagree, you have architecture drift, and the fix is to make comparing them a routine, not a heroic audit.
→ Check your Terraform against the diagram with the free Terraform Module Visualizer
Choosing a system architecture diagram tool
There are three broad ways to make a system diagram. None is universally best; each fits a different team habit.
| Approach | How it works | Best for | Watch out for |
|---|---|---|---|
| Drag-and-drop canvas | Place shapes and icons by hand (general-purpose tools like Lucidchart or draw.io) | Workshops, one-off visuals, non-engineers editing | Diagrams drift because updates are manual |
| Diagram as code | Write a model in text, render it (Structurizr DSL, PlantUML, Mermaid) | Version control, code review, consistent notation | Layout control is limited; non-engineers rarely edit |
| AI-assisted | Describe the system in plain language, get an editable draft | Fast first drafts, exploring options, pre-sales | Output is a proposal and still needs an architect's review |
We wrote a full breakdown of the first two in architecture diagram as code vs drag and drop. If you're leaning toward code, here's the online shop from earlier as a Structurizr DSL container view:
workspace {
model {
customer = person "Customer" "Buys products online"
payments = softwareSystem "Payment Provider" "External card processing"
shop = softwareSystem "Online Shop" {
web = container "Web App" "Serves the storefront" "Next.js"
api = container "Orders API" "Validates and stores orders" "Node.js"
db = container "Orders DB" "Stores orders" "PostgreSQL"
queue = container "Order Events" "Buffers order events" "Amazon SQS"
}
customer -> web "Browses and checks out using" "HTTPS"
web -> api "Submits orders to" "JSON/HTTPS"
api -> db "Reads from and writes to" "SQL/TLS"
api -> queue "Publishes OrderPlaced events to"
api -> payments "Requests payment authorisation from" "HTTPS"
}
views {
container shop "Containers" {
include *
autolayout lr
}
}
}
Every relationship has a verb phrase and a protocol. That's the checklist above, enforced by the format.
Where Architecto fits: Architect AI turns a natural-language description into an editable architecture diagram across AWS, Azure, GCP, Kubernetes, Docker and Terraform, then hands it to cost, threat, compliance and documentation workflows. For the diagrams around the system diagram (sequence, UML, ETL, state machines and more) Flow IQ gives you dedicated designers. And if the system already exists, Code Analysis maps repository structure so your diagram starts from what the code actually does. Comparing options? See Architecto vs Structurizr and Architecto vs Lucidchart.
→ Already running containers locally? Turn a docker-compose file into a diagram for free
Key takeaways
- A system architecture diagram maps components and the connections between them; most useful versions blend services with the infrastructure and boundaries they sit in.
- One diagram, one audience, one question. Put the question in the title.
- Draw the scope boundary first, then actors, containers, flows and risk boundaries.
- Label every arrow with intent and protocol. "Uses" is not a label.
- A legend, an owner and a review date turn a pretty picture into a trusted artifact.
- Pick tooling by team habit: canvas for workshops, code for version control, AI for fast drafts, and always review the output.
- Diagrams rot. Compare against IaC or the live environment regularly so drift gets caught early.
→ Grab a copy-ready prompt from our architecture diagram prompt examples
FAQ
What is a system architecture diagram?
A system architecture diagram is a visual map of a system's major building blocks (users, applications, services, data stores, infrastructure and external dependencies) and the connections between them. It shows how requests and data move through the system and where the important boundaries sit, so people can reason about the design without reading the code.
What should a system architecture diagram include?
At minimum: a title that states the scope, the actors who use the system, every entry point, the main compute and data components, external systems, and labelled arrows that show direction and protocol. Add trust or network boundaries and a legend that explains your shapes, colours and line styles. Leave out anything that does not help the intended audience answer their question.
What is the difference between a system architecture diagram and a software architecture diagram?
The terms overlap and many teams use them interchangeably. AWS describes software architecture diagrams as showing components, services and how they interact, and system architecture diagrams as showing the infrastructure, such as servers, databases and network devices. In practice, a useful system diagram usually blends both: the services that matter and the infrastructure they run on.
How do I draw a system architecture diagram online?
Pick a level of detail and an audience first, list your components and flows, then draw them in a tool. You can drag shapes onto a canvas, write the model as code with a diagram-as-code tool, or describe the system in plain language and let an AI tool such as Architecto's Architect AI generate an editable first draft that you then review and refine.
→ See how teams go from prompt to reviewed diagram with Architect AI
Stop redrawing the same boxes
The diagram nobody updated since 2023 isn't a people problem. It's a workflow problem: drawing is slow, so updating is slower, so it doesn't happen. Make the first draft cheap, make the review structured, and keep the diagram next to the systems it describes.
Describe your system in a paragraph, get an editable diagram, then run it through cost, threat and documentation workflows without exporting a single PNG.
→ Start free and draw your first system architecture diagram with Architecto