Skip to main content

Nine Relationships on C3

The C3 diagram contains eleven objects and no relationships. Create nine durable dependencies with three methods and bind them to the corresponding C2 relationships.

Full lesson walkthrough in the selected color theme.

What a Structural Relationship Represents​

A structural relationship represents a durable dependency, not a sequence of operations. Its arrow points from the element that knows and uses another to the element being used. Specific commands, responses, and payloads belong in the numbered steps of data flows.

Loading image...
The complete object set is ready for dependencies

Method 1: Left Panel​

When using the left panel, select both the source and the element it uses. The first relationship connects the user application to the order processor.

Loading image...
The source and target are selected manually

For a cross-level dependency, select its parent C2 relationship. This creates a hierarchy: C2 retains the overview while C3 shows the implementing components.

Loading image...
The C3 relationship is mapped to its higher-level counterpart

Method 2: Context Menu​

Select the source component and create an outgoing relationship from its context menu. The source is filled automatically; choose the target and describe the dependency's purpose.

Loading image...
The outgoing-relationship action establishes the source
Loading image...
Components within one subsystem do not require a parent relationship

Method 3: Shift​

When both elements are visible, select the source, hold Shift, and select the target. For an external dependency, also choose the corresponding parent C2 relationship.

Loading image...
This fast method works when both elements are visible on the canvas

Direction and Detail​

The remaining dependencies state who knows about and relies on whom. Create two relationships to the order database, one for reads and one for writes. Both point toward the database because the service initiates the connection and the store does not know its clients.

Separating reads from writes makes it possible to trace which processes mutate data and which only query it. A data flow can later refer to the appropriate existing structural relationship.

Loading image...
Relationships show the direction of use between components

Result​

The diagram now contains eleven objects and nine relationships. Parent dependencies let users expand a C2 relationship to see the implementing C3 components without overloading the overview diagram.

Loading image...
Directions and dependency hierarchy have been validated throughout the diagram

Chapters​

  • 00:00 — relationships on C3;
  • 00:15 — relationship from the left panel;
  • 00:31 — source element menu;
  • 00:47 — quick creation with Shift;
  • 01:02 — purpose of structural relationships;
  • 01:25 — reads and writes;
  • 01:43 — cross-level relationships;
  • 01:56 — complete C3.

Previous lesson: Integration Components on C3.

Next lesson: Frontend C3 Structure.