Connections
A connection is an arrow between two elements: the web shop calls the orders API, the API writes to the database. This page covers how to draw and edit connections, how to see what an element talks to, how to open an arrow and see the components that implement it, and the list of all connections in the project.
Draw a connection
Every block has connection points on its edges. Drag from a point on one block to another block on the same diagram and let go: the arrow appears.
A connection has a direction. By default it points from the sender to the receiver; it can also point both ways.
The connection menu
Right-click an arrow (on a touch screen, press and hold it). The menu has:
- Edit connection: label, technology, related components and the rest (below).
- Arrow path: Curved, Straight or Orthogonal. This only changes how the arrow is drawn.
- View related components: on the container level, opens the components behind the arrow (see Open an arrow).
- Delete connection. It asks for confirmation; Ctrl/⌘+Z undoes it.
Edit a connection
Edit connection opens a panel on the right:
- Label at the top, shown on the arrow, for example "Places orders". Below it, a Description.
- Sender and Receiver: the two ends. They are set by how the arrow was drawn.
- Technology: the protocol or tool, for example HTTPS, gRPC or Kafka. It is shown at the top of the panel, under the label.
- Tags, the same as on elements (see Tags).
- Arrow path, the same choice as in the menu.
- Channel role, only when the connection touches a topic or queue of a broker: Produce or Consume.
- Related components, on the container level only (next section).
- Direction: One way or Both ways.
Press Save to keep the changes.
Related components
An arrow between two containers says that the web shop talks to the orders API. It does not say which part of each does the talking. Related components records that: pick the components that implement this connection, from either of the two containers. The list shows each component with its container, for example "API client · Web shop" and "Order controller · Orders API".
These are what View related components opens. A connection without related components has that menu item greyed out: "No related components set on this connection".
See what an element talks to
Right-click a block and choose Highlight connections. The block, everything it is connected to and the arrows between them stay lit; the rest of the diagram dims. Clear highlight in the same menu, or a click on an empty spot of the board, puts it back.
Open an arrow
On the container level, right-click an arrow and choose View related components. The submenu offers each end: In Web shop, In Orders API. Pick one.
The editor goes to that container's components. The related components light up, together with the components they lead to inside the same container, so the chain behind the arrow stays visible; everything else dims. The Clear connection highlight button on the board returns to the normal view.
If the end is a clone of a container from another project, the item says so ("Opens … , where these components live") and the components open in that project.
All connections in one list
Instruments → Connections lists every connection in the model, on every level. Each row shows the two ends with their technologies, the level and label, and the technology of the connection. The header shows how many there are, and how many match when filtered.
- Type in the search field to filter by sender, receiver, technology or label.
- The tabs filter by level: All levels, System, Service, Component, Code.
- Click a row: the list closes, the editor goes to that level and shows the connection with its two ends.
The service graph
The canvas shows one level at a time. To see which services talk to which across the whole project, press Service graph in the bar at the bottom left of the canvas. The diagram is replaced by one circle per system and container and one line per connection. Components, code and people are left out. A cloned container is shown once, with the connections of all its copies. Back to the diagram, the same button, returns.
If you need a list of services rather than connections, open the service catalog.