Skip to main content

Communication Diagram(通信图)· ✅ Full

分类: Behavior Diagrams(动态行为)| OMG UML 2.x ID: Communications

通信图(原名 Collaboration Diagram)与顺序图描述相同的交互,但去掉了时间轴——只保留参与者(对象)和它们之间交换的消息(带序号标签的边)。

本质 = 节点 + 带标签的边,完美匹配我们的 SemanticDiagram。

Behavior · ✅ Full

Communication Diagram

Client-Proxy-Server-Cache-DB message exchange — same semantics as a sequence diagram but without the time axis.

{ "preset": "classic", "theme": "light", "direction": "LR", "nodes": [ { "id": "client", "label": "Client", "kind": "frontend" }, { "id": "proxy", "label": "Proxy", "kind": "cloud" }, { "id": "server", "label": "Server", "kind": "backend" }, { "id": "db", "label": "Database", "kind": "database" }, { "id": "cache", "label": "Cache", "kind": "messagebus" } ], "edges": [ { "from": "client", "to": "proxy", "label": "1. GET /api/data" }, { "from": "proxy", "to": "server", "label": "2. forward" }, { "from": "server", "to": "cache", "label": "3. GET key", "dashed": true }, { "from": "cache", "to": "server", "label": "4a. HIT" }, { "from": "server", "to": "db", "label": "4b. SELECT", "dashed": true }, { "from": "server", "to": "proxy", "label": "5. response" }, { "from": "proxy", "to": "client", "label": "6. 200 OK" } ] }