Model types

Architecture

The Architecture model type covers four different ways of drawing a system. You pick the style when you create the model, and it does not change afterwards. Each style has its own canvas rules, so a model is one style for life. Create a second Architecture model if you want a second view.

The Create Model dialog with Architecture selected and the model type dropdown open.
The Create Model dialog with Architecture selected and the model type dropdown open.

Hexagonal / Ports & Adapters

A single service drawn as concentric zones, showing what is inside the boundary and what is outside it.

  • Outside: the world of people, other systems, and infrastructure.
  • Inside: the application, holding the ports and adapters.
  • Domain Model: the innermost zone, which can be shown or hidden.

You place elements on the driver side (left, the things that call you) or the driven side (right, the things you call):

Element Driver key Driven key
Port: the interface I (incoming) O (outgoing)
Adapter: the implementation R N
External: the system beyond E S
User: the actor None None

Three more toolbar dropdowns add the concrete pieces around those. None of them has a shortcut key.

  • User Interface: Browser, Desktop, Mobile, Terminal, and a generic User Interface. These are how a person reaches the system, so they arrive on the driver side, outside the zones alongside User and External System.
  • External Mechanism: Database, Message Bus, Queue, API, and WebSocket. These are the technologies an adapter actually talks to, so they arrive on the driven side. For the ones that drive you instead, such as an inbound message bus, switch the side in the element's properties.
  • Extra: Query and Note. A Query is a port on the driver side and takes a slot on the ring along with the other ports. A Note belongs to neither side and can sit anywhere on the canvas.

These elements carry the same colors as the matching element in a Flow model, so a Database looks like a Database whichever style you are reading.

A Hexagonal architecture with driver adapters on the left and driven adapters on the right.
A Hexagonal architecture with driver adapters on the left and driven adapters on the right.

The zone labels can be turned off, the architecture shape can be rendered to a hexagon, and the whole zone model can be scaled up when a design outgrows the default size.

Lean on the hexagon, if you prefer.
Lean on the hexagon, if you prefer.

Flow

A free-form architecture model with a large palette, organized into groups:

Group Contains
User Auth, Browser, Desktop, Mobile, Terminal, User Interface, User Role
Application API, Command, Component, Entry Point, Exit Point, External Call, Function, Handler, Microservice, Port, Processor, Projection, Query, Router, Service, Validator, Worker, View
Domain Model Aggregate, Domain Service, Entity, Value Object, Event, Record, Struct, Type, Policy, Saga
Data Bucket, Cache, Data, Database, Directory, File, Mapper, Stream
Infrastructure Adapter, Circuit Breaker, Controller, Endpoint, Gateway, Message Bus, Queue, Scheduler, WebSocket

Use Flow when you want to show how a request actually travels through the system, without committing to a formal notation.

Status and Tags work as in the other model types (see Status and Tags). An element shows one row of chips under its name, at most two, then a +N chip; hover over it to see the rest.

A Flow architecture model tracing a request from a browser through to a database.
A Flow architecture model tracing a request from a browser through to a database.

C4

The C4 model's four levels, with drill-down. Each level shows the elements that belong at that level, and double-clicking an element takes you inside it; a breadcrumb across the top shows where you are and takes you back out.

Level Elements
Context Person, Software System, External System
Container Container
Component Component
Code Code Element

Because each level is a separate view of the same model, a name only has to be unique within its own level.

Relationships are drawn by dragging from one element's edge to another's. Click a relationship's line label (or the ? that appears on a new one) to describe it:

  • Description: the short phrase drawn on the line, such as "Makes API calls to".
  • Technology: drawn under the description in brackets, such as [JSON/HTTPS].
  • Details: anything longer a reader should know. It is not drawn on the diagram; hover over the label to read it.
  • Direction: one way toward the target (the default), both ways, or no direction. Reverse swaps the two ends, so an arrow drawn the wrong way does not have to be redrawn.

Changes apply when you press Save or Enter. In Details, Enter starts a new line and Ctrl+Enter saves. If you can only view the model, the same box opens so you can read the relationship, but nothing in it can be changed.

Details: an element's Properties hold more than its name and description. A Person can have a Role, drawn under the name as [Person: Customer]. A Code Element can have a Language and a Technology, drawn together as [Java · Spring]. A Component that holds other components (drawn as a frame around them) has the same Technology and type fields as any other Component; its types are limited to the ones that can hold components, so its contents stay reachable. Find searches roles and languages too.

Status: every element has one, set in its Properties: Live (the default), Future, Deprecated or Removed. It lets one model show the architecture as it is and as it is planned to be. Live elements are drawn as always. The others carry a colored pill on their top-right corner, and a style: Future is translucent, Deprecated is hatched, and Removed is faded with its name struck through. A relationship to a Removed element fades with it. On a container or component drawn as a frame around its contents, the style is on its header.

Once any element has a status, Status appears in the top bar. Untick a status to stop drawing it: untick Future to see the architecture as it is today, or Removed to see it as planned. Hiding a frame hides what is inside it. This changes only what you see, not the model, and Find skips whatever is hidden. A downloaded image shows what is on screen, so it follows the same choice.

Tags: labels you make up for your elements, such as "High risk", "Team A" or "PCI scope". Add them in an element's Properties: type in Tags and press Enter to pick a matching tag, or to create a new one with the next unused color. Backspace in the empty box removes the last tag. An element's tags are drawn as small colored chips with their names, under its text, or in the header of a container or component drawn as a frame. A Person shows at most two, then a +N chip; hover over it to see the rest.

Tags belong to the model, so everyone working on it sees the same ones. Once the model has a tag, Tags appears in the top bar. For each tag, or a whole group at once, choose:

  • Show: drawn as usual (the default).
  • Focus: elements with a focused tag are drawn as usual. Everything else is dimmed but stays in place, so you can still see how the focused elements connect.
  • Hide: elements with the tag are not drawn, nor anything inside them. Hide wins over Focus when an element has both.

Like Status, this changes only what you see, not the model, and a downloaded image follows it. The list also shows how many elements have each tag. Manage Tags… at the bottom of the list lets you rename and recolor tags, sort them into optional groups (such as Risk, holding High, Medium and Low), and delete them. Changes there apply when you press Save. Undo does not bring back a deleted tag, so the delete button asks first and says how many elements have the tag.

Walkthroughs (the footprints in the top bar; see Walkthroughs) belong to the view they are made in, because a relationship is drawn in some views and not others. The menu lists this view's walkthroughs first, then each other view's under its path, such as "Shop › Orders". Choosing one from another view takes you there first, and going to another view closes the walkthrough that is open.

Find (Ctrl+F, or Find in the user menu) opens the outline, a tree of the whole model by level (systems, their containers, their components), and its search covers every level at once, not just the one on screen. Hovering over an element in the outline shows the view it is drawn in, such as "Shop › Orders". Enter goes to the first match, then to each next one, and Shift+Enter goes back. Choosing a match takes you to the view it is drawn in, updates the breadcrumb so the up arrow leads back out the usual way, and selects and centers the element. Matches are in the order you would meet them drilling down: the System Context first, then each system's inside, and so on. In a model drawn from Code Dig, a class is listed in its package's Types box rather than drawn on its own, so searching for a class name selects that box. The same works for a code element you draw yourself: name it Types and list one type per line in its Description. Searching for a tag's name finds every element that has it, and searching for Future, Deprecated or Removed finds every element with that status.

Links: the browser's address bar always holds a link to the view on screen. Copy it into an ADR, a document or a chat message, and whoever opens it lands in that view, with the breadcrumb and the up arrow working as if they had drilled there. Right-clicking empty canvas and choosing Copy Link copies the same link. To point at one element, right-click it and choose Copy Link: the link opens the element's view with the element selected and centered. A link to something since deleted opens the System Context instead, with a note saying so.

Image in the top bar downloads the view on screen as a PNG or an SVG, named after the model and the view, such as Acme - Shop - Orders.png. The image is the whole view at its own size, not just the part that fits the window, and it leaves out selection highlights. The SVG stays sharp at any size in a browser or a wiki, but it is a picture of the canvas: drawing and slide programs such as Inkscape, Illustrator or PowerPoint cannot edit its boxes and lines. Anyone who can open the model can download its views.

Relationships: All | None in the top bar hides every relationship line, and shows them again. It changes only what is drawn; the relationships stay in the model. Links from a decision record to the elements it applies to are not relationships and stay visible.

A C4 container-level model with the level breadcrumb above it.
A C4 container-level model with the level breadcrumb above it.

Cloud

Infrastructure models using vendor icon sets. Choose the platform from the toolbar:

  • Domo: platform-agnostic icons.
  • AWS, GCP, Azure: that vendor's icon set.
  • Hybrid: mix icons from all platforms.

Add Resource opens the icon picker. It has a search box and is grouped by category: compute, storage, networking, and the rest.

A Cloud architecture model using AWS icons.
A Cloud architecture model using AWS icons.

Attaching decisions

Any architecture model can have an ADR log attached to it, so the decisions that produced the design sit alongside the design itself. Link them when you create the ADR log, or later.

On the canvas, an attached log appears as an ADR Log element: a box with a link icon, titled ADR Log, that opens the log, or one decision in it, in a new tab.

Every canvas model can hold Link elements, to a web page or to an element in DomoModeler; see Editor basics. In a C4 model a Link belongs to the view it was placed in, as an ADR Log does.