Deployment Diagram

From Open Risk Manual

Definition

A Deployment Diagram is a structural UML diagram that shows how software is deployed onto computing elements, namely devices such as servers (which are depicted as nodes). The nodes appear as boxes and artifacts allocated to each node appear as rectangles within the boxes. Nodes may have subnodes, which appear as nested boxes.

A deployment diagram is thus an illustration of hardware topology and communication relationships between the nodes. A runtime system (a running device) may contains artifacts (programs, data etc) that are depicted as deployed into the node.

There are two types of Nodes:

  • A Device Node. Device nodes are physical computing resources with processing memory and services to execute software, such as typical computers or mobile phones.
  • An Execution Environment Node. An execution environment node (EEN) is a software computing resource that runs within an outer node and which itself provides a service to host and execute other executable software elements.

PlantUML Elements

A PlantUML deployment diagram specifies and shows the following:

  • Node
  • Artifact


Example

@startuml
skinparam handwritten true
node "VPS 1" as n1
node "VPS 2" as n2

artifact "Desktop" as a1 {
  folder Folder {
        file f1 as "File 1"
  }
}

n1 --> n2
n1 <--- a1
@enduml

Deployment Diagram

References