Deployment diagrams: nodes and artifacts
简介 / Introduction
A deployment diagram visualizes the physical layout of a software system across hardware nodes and the artifacts deployed on each. This post renders the same deployment structure in both PlantUML and Mermaid so you can compare syntax side by side.
PlantUML 版
PlantUML uses deployment diagram { } to open a deployment diagram, with node for nodes and artifact for deployed files.
1 | @startuml |
Mermaid 版
Mermaid’s deployment diagram uses the deployment chart type, service to define nodes, contains for artifacts, and rel for relationships.
1 | deployment |
对比 / Side-by-side
| Element | PlantUML | Mermaid |
|---|---|---|
| Chart declaration | deployment diagram { } |
deployment |
| Node | node "Label" as id |
service Name["Label"] |
| Artifact | artifact "filename" |
contains filename |
| Relationship | A --> B |
A --> B |
| Grouping | nested node "..." { } |
service + contains |
小结 / Wrap-up
PlantUML deployment diagrams offer richer nesting and visual styling for complex production environments. Mermaid’s deployment diagrams are concise and ideal for inline documentation. Both support nodes, artifacts, and relationships — pick the tool that fits your workflow.
- Title: Deployment diagrams: nodes and artifacts
- Author: puml.online
- Created at : 2026-10-18 09:00:00
- Updated at : 2026-10-19 01:07:19
- Link: https://puml.online/blog/deployment-diagram-nodes-artifacts-en/
- License: This work is licensed under CC BY-NC-SA 4.0.