Demo: map service dependencies with DOT
Graphviz DOT is useful for dependency maps where direction and clustering matter. A quick preview makes it easier to spot cycles, missing labels, and edges that should not cross a trust boundary.
- Use subgraph cluster blocks for teams, networks, or bounded contexts.
- Label edges when the relationship is not obvious from node names.
- Prefer directed graphs for deployment and dependency diagrams.
digraph G {
rankdir=LR;
subgraph cluster_api { label="API"; web; gateway; }
gateway -> orders [label="REST"];
orders -> db [label="SQL"];
}