Deployment Diagram
A deployment diagram is a UML diagram showing the configuration and
arrangement of runtime processing nodes, components, and artifacts in a
distributed system — illustrating how software is actually deployed onto
hardware infrastructure and how the deployed pieces interact, as
distinct from [[component-diagram]]'s logical, hardware-independent
view of how components relate to each other.
Key elements
- Node — a physical device or software execution environment (a
server, a workstation, a container host); drawn as a cube (or
sometimes a sphere, depending on node type).
- Component — a modular part of the software system providing
specific functionality, deployed onto a node; drawn as a rectangle.
- Artifact — a physical piece of data used or produced by a
component, such as a database file or a deployable package.
- Association — a connection between a node and a component, or
between two nodes (e.g. a network link).
- Dependency — a relationship where a component depends on another
component or artifact.
What it's used for
Depicting a system's physical architecture — its deployment view —
showing the relationship between hardware nodes (servers, workstations)
and the software components running on them, plus the connections
between nodes. Useful at multiple levels of abstraction, from a
high-level system overview down to a detailed description of one
component's specific deployment.
When a deployment diagram is the right choice
Reach for this specifically when the question is about physical
placement and runtime infrastructure — which server runs which service,
what network topology connects them — rather than the logical software
structure [[component-diagram]] or [[class-diagram]] would
show. A cloud architecture discussion (see [[aws-cloud]],
[[azure-cloud]], [[google-cloud]]) is a natural fit for this
diagram type.
Drawing one
See [[plantuml-diagram]] for the @startuml deployment-diagram syntax
(node, database, cloud, and other deployment-specific shape
keywords) to generate one from version-controlled text.
Common pitfalls
- Confusing logical component relationships with physical deployment
— see [[component-diagram]]; two components can be tightly
logically related while running on entirely separate nodes, or vice
versa.
- Omitting network/connection detail between nodes — a deployment
diagram that shows nodes but not how they connect misses information
often critical to understanding latency, failure modes, or security
boundaries.
- Mixing abstraction levels — showing a high-level system overview
and a detailed single-component deployment in the same diagram makes
both harder to read; separate diagrams per abstraction level instead.
Learn more
- [[plantuml-diagram]] for the text-based syntax to draw this diagram type.
- [[component-diagram]] for the logical, hardware-independent software-relationship counterpart.
- [[aws-cloud]], [[azure-cloud]], [[google-cloud]] for the cloud infrastructure concepts a deployment diagram often models.
1---2name: deployment-diagram3description: Use when asked to model the physical/runtime architecture of a distributed system — nodes, components, artifacts — as the runtime-placement counterpart to a component diagram's logical software relationships (see component-diagram). See plantuml for the text-based syntax to actually draw one.4metadata:5 source: https://skillmd.com/skills/skills-on-ai/deployment-diagram6---78# Deployment Diagram910A deployment diagram is a UML diagram showing the configuration and11arrangement of runtime processing nodes, components, and artifacts in a12distributed system — illustrating how software is actually deployed onto13hardware infrastructure and how the deployed pieces interact, as14distinct from [[component-diagram]]'s logical, hardware-independent15view of how components relate to each other.1617## Key elements1819- **Node** — a physical device or software execution environment (a20 server, a workstation, a container host); drawn as a cube (or21 sometimes a sphere, depending on node type).22- **Component** — a modular part of the software system providing23 specific functionality, deployed onto a node; drawn as a rectangle.24- **Artifact** — a physical piece of data used or produced by a25 component, such as a database file or a deployable package.26- **Association** — a connection between a node and a component, or27 between two nodes (e.g. a network link).28- **Dependency** — a relationship where a component depends on another29 component or artifact.3031## What it's used for3233Depicting a system's **physical architecture** — its deployment view —34showing the relationship between hardware nodes (servers, workstations)35and the software components running on them, plus the connections36between nodes. Useful at multiple levels of abstraction, from a37high-level system overview down to a detailed description of one38component's specific deployment.3940## When a deployment diagram is the right choice4142Reach for this specifically when the question is about **physical43placement and runtime infrastructure** — which server runs which service,44what network topology connects them — rather than the logical software45structure [[component-diagram]] or [[class-diagram]] would46show. A cloud architecture discussion (see [[aws-cloud]],47[[azure-cloud]], [[google-cloud]]) is a natural fit for this48diagram type.4950## Drawing one5152See [[plantuml-diagram]] for the `@startuml` deployment-diagram syntax53(`node`, `database`, `cloud`, and other deployment-specific shape54keywords) to generate one from version-controlled text.5556## Common pitfalls5758- **Confusing logical component relationships with physical deployment**59 — see [[component-diagram]]; two components can be tightly60 logically related while running on entirely separate nodes, or vice61 versa.62- **Omitting network/connection detail between nodes** — a deployment63 diagram that shows nodes but not how they connect misses information64 often critical to understanding latency, failure modes, or security65 boundaries.66- **Mixing abstraction levels** — showing a high-level system overview67 and a detailed single-component deployment in the same diagram makes68 both harder to read; separate diagrams per abstraction level instead.6970## Learn more7172- [[plantuml-diagram]] for the text-based syntax to draw this diagram type.73- [[component-diagram]] for the logical, hardware-independent software-relationship counterpart.74- [[aws-cloud]], [[azure-cloud]], [[google-cloud]] for the cloud infrastructure concepts a deployment diagram often models.