Architecture diagram (D2)
D2 nests with braces, and nesting draws a boundary. That single property makes cloud and service architecture diagrams unusually quick to write.
#What this example shows
Containers, which become labelled boundaries.
direction, which sets the flow of the whole diagram.
Dotted paths for addressing nested nodes in connections.
#A worked example
Open it, edit it, or copy the source below.
The source, which you can paste into a new diagram and edit:
#Making it your own
Use containers for boundaries rather than drawing boxes around things.
Chained connections (a -> b -> c) are legal and keep the source short.
direction: right or down changes the entire layout in one line.
#Related
Nesting is the whole idea.
