Skip to content

Views

A View is a diagram defined by a query over the Model. It is never a source of truth: it selects Elements and draws them, and the Model decides what they are and how they connect. Change the Model and every View that shows the change redraws.

A Generated View exists for every scope without anyone writing it:

View id Shows
c1 The System Landscape: every Person and System.
c2 The Service Landscape: every Service, grouped in its System.
c2/<system> One System’s Services, with what they connect to.
c3/<service> One Service’s Components, with what they connect to.
deployment/<environment> Every Deployment in one Environment, on its Targets.

They cover most questions. The viewer opens on c2.

A Saved View is a View written into a Project’s files, under views, for a question the Generated Views don’t answer at a glance. A structural Saved View has a level and selectors. Big Bank’s Digital Banking Team saved one for the mainframe:

digital/views.yaml
mainframe-outage:
title: What a mainframe outage takes down
description: Everything that depends on the mainframe, directly or not.
level: c2
include:
- element: core:mainframe
upstream: all
lens:
impact: core:mainframe
direction: upstream
Everything that depends on the Big Bank mainframe, directly or not, with the Impact Lens on.Everything that depends on the Big Bank mainframe, directly or not, with the Impact Lens on.
Open in the live viewer ↗
  • include picks Elements: by id, with their children or descendants, upstream or downstream of one, by team, by tag, or on the paths between two (from and to). exclude drops some again.
  • level (c1, c2, c3 or deployment) collapses what was picked to that level, and expand and collapse open or close single Elements.

A Saved View has a Qualified id, such as digital:mainframe-outage, and the selectors keep working as the Model changes: a new Service that depends on the mainframe joins this View without anyone editing it. Every field is in the Views reference.

A Lens highlights a View without changing which nodes it shows:

  • Impact: what is upstream, downstream, or both, of one Element, each node marked with how many hops away it is.
  • Team: what one Team owns.
  • Path: the paths between two Elements.

The viewer turns Lenses on and off; a Saved View can open with one, as mainframe-outage opens with Impact.

A Deployment View places Deployments on their Deployment Targets in one Environment. Each Environment has a Generated one, and a Saved View with level: deployment narrows it to some Elements or targets. See Deployments.

A Dynamic View shows one scenario as an ordered list of Steps, drawn as a sequence chart:

A Big Bank customer makes a payment: numbered Steps from the customer through the app and the Payments Service to the mainframe, with the payment events and the reply.A Big Bank customer makes a payment: numbered Steps from the customer through the app and the Payments Service to the mainframe, with the payment events and the reply.
Open in the live viewer ↗

Each Step must follow a Relationship that exists in the Model, so a scenario can’t show a call the architecture doesn’t have. See Dynamic Views.

The Layout, where each node sits, is computed every time, never stored, so it can’t change what the architecture means. A View says only which way it runs: top to bottom, left to right or the reverse.