Glossary
The words of Bausteinsicht, in the order in which you meet them. The definitions are short; the links lead to the page that explains more.
The model
- Model
-
The text file (
architecture.jsonc) in which you describe your architecture. It has three parts: the specification (which kinds of things exist), the model itself (the elements and their nesting) with its relationships, and the views (which elements go on which diagram page). It is JSONC: JSON with comments and trailing commas. The model is the source of truth. See Tutorial 2. - Specification
-
The part of the model that declares the kinds of elements (and of relationships) you may use, for example
actor,system,container. A model that uses a kind that the specification does not declare is invalid. - Kind
-
The type of an element, one of the keys of the specification:
"kind": "container". The kind decides the visual style (through the template) and, forexport-diagram, the C4 macro. - Notation
-
The human-readable name of a kind that is shown in the diagram, for example
"Software System"for the kindsystem. The kind is the key you write, the notation is what readers see. - Element
-
One box of the architecture: a person, a system, a service, a database, a component. An element has a kind, a title, optionally a technology and a description, and may have children (the boxes inside it).
- Element ID
-
The name by which an element is identified everywhere: its key in the model, with the keys of its parents in front, separated by dots:
onlineshop.api.orders. Relationships, views, commands (--id) and the sync state refer to elements by this ID. Rename withbausteinsicht rename, which changes the ID in all places, the diagram included; renaming it by hand in only one place makes it a different element. - Container
-
A word with three meanings that are easy to mix up. (1) A C4 level: in the C4 model, a "container" is a separately running part of a system, such as a web frontend, an API or a database; here it is only a kind you may define. (2) The flag
container: truein the specification of a kind: elements of this kind may have children. (3) A draw.io container: a shape in draw.io that holds other shapes; elements with children are drawn like this. A kind can have the flag without being a C4 container, and the other way round. - Relationship
-
A directed connection between two elements (
from,to, with a label and optionally a kind), drawn as an arrow. Relationships are listed in the model, not nested in the elements. - C4
-
A way of drawing software architecture in four levels (context, containers, components, code) by Simon Brown, see c4model.com. Bausteinsicht is inspired by it but does not limit you to four levels.
The views
- View
-
A selection of elements and relationships that becomes one page (tab) in the draw.io file. A model usually has several views, for example a context view and a container view.
- Include
-
The list in a view that selects its elements: element IDs or patterns such as
onlineshop.(all direct children ofonlineshop) and*(everything). - Scope
-
Makes one element the frame of a view: it is drawn as a large box with its children inside, and a view with a scope becomes the drill-down page of that element.
- Relationship lifting
-
If a relationship ends at an element that is not on the view but its parent is, the arrow is drawn to the parent.
customer → shop.frontendappears ascustomer → shopon a view that shows onlyshop.
Diagram and sync
- draw.io
-
A free diagram editor (also called diagrams.net) with a desktop app, a web version and a VS Code extension, see drawio.com. Bausteinsicht generates
architecture.drawioand reads your edits from it. - Template
-
A draw.io file (
template.drawio) that holds one styled sample shape per element kind. New shapes are cloned from it; change it to restyle all diagrams. - Sync
-
The command
bausteinsicht sync. It compares the model and the diagram with the state of the last sync and carries every change to the other side. See How sync works. - Sync state
-
The file
.bausteinsicht-sync: a record of what the model and the diagram looked like after the last sync, so that the next sync can tell which side changed. Commit it with the model. If it is lost or deleted, the next sync cannot tell and treats the model as the truth. It belongs to one model; see "one model per directory". - Model wins
-
The rule for a conflict: if the model and the diagram changed the same thing since the last sync, the value of the model is kept and sync warns.
Several models
- Workspace
-
A configuration file that puts the models of several teams side by side in one landscape. See Landscape from several models.
- Prefix
-
The text put in front of the element IDs of a model in a workspace (
team_a_customer), so that IDs of different models cannot collide. - Lock file
-
The file
bausteinsicht.locknext to a workspace configuration: the SHA-256 of every remote model that was fetched. A changed file is an error until you accept it withworkspace fetch --update.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.