Layered view
- Shows: One Domain: what it does, the components that do it, and what they lean on.
- Drawn for: a Domain, one view each.
- In the viewer's picker: under its ecosystem, by the Domain's name.
- As a file:
kq svg --domain <path>, andkq pngthe same way.
Reading it
One view per Domain, sub-domains included. It reads top to bottom: what the Domain does, which components do it, and what those components depend on.
From the top:
- The function side: the Domain's ecosystem, the Domain, its sub-domains if it has any, and its function groups.
- The Domain's components, each under what it realizes, with their interfaces. This band is the focus of the view.
- Enablers: the components the Domain's own components call that belong to an Enabler Domain (see Enabler Domains), such as identity or messaging, framed by that Domain.
- The context: every other component the Domain's components connect to, above the Domain it belongs to, above that Domain's ecosystem. It is drawn dimmed, so the Domain's own work stays in front.
Every box spans the columns under it, so a function group and the components that realize it read as one stack. A component that realizes two things is drawn under each; it is still one element. A function group nothing realizes keeps an empty column and is drawn dimmed, so a gap in the landscape shows.
The Domain's components are framed by the platform or monolith they sit in. A frame holds only the Domain's components, not the rest of its platform or monolith, and can be collapsed to a single box; a monolith's modules are not drawn. A monolith that realizes something itself is drawn as a component is, with the interfaces it holds. A component or monolith with interfaces drawn inside it can be collapsed too: its interfaces are hidden, and lines to them are drawn to it. A user interface that no component serves is drawn with the Domain's components when it connects to one of them, framed by its platform or monolith.
The diagram in words
Selling · Layered application view
Ecosystem
- Northwind Retail (Ecosystem)
Domains
- Selling (Domain)
Function Groups
- Browse catalogue (Function Group)
- Search products (Function Group)
- Manage basket (Function Group)
- Place order (Function Group)
- Apply promotions (Function Group)
Domain Components
- Storefront (Platform)
- Web Shop (User-facing app)
- Web Shop (SPA): no line on this view reaches it
- Mobile Shop (User-facing app)
- Mobile Shop (Mobile App): no line on this view reaches it
- Search Service (Backend)
- Search API (HTTP API)
- Web Shop (User-facing app)
- Web Shop (SPA): no line on this view reaches it
- Basket Service (Backend)
- Basket API (HTTP API)
- Web Shop (User-facing app)
- Orders (Platform)
- Order Service (Backend)
- Order API (HTTP API)
- Promotion Service (Backend)
- Promotion API (HTTP API)
- Order Service (Backend)
- Storefront (Platform)
- Storefront BFF (Backend)
- Storefront BFF API (HTTP API)
- Storefront BFF (Backend)
Enablers
- Northwind Retail (Ecosystem)
- Identity (Enabler Domain)
- Identity Service (SaaS)
- Identity (Enabler Domain)
Components
- Catalogue Service (Backend)
- Stock Service (Backend)
- Warehouse WMS (COTS)
Domains
- Merchandising (Domain)
- Fulfilment (Domain)
Ecosystems
- Northwind Retail (Ecosystem)
Lines
- Web Shop → Storefront BFF API: connection, http
- Mobile Shop → Storefront BFF API: connection, http
- Storefront BFF → Catalogue Service: connection, http
- Storefront BFF → Search API: connection, http
- Storefront BFF → Basket API: connection, http
- Storefront BFF → Order API: connection, http
- Storefront BFF → Identity Service: connection, http
- Search Service → Catalogue Service: connection, http
- Order Service → Promotion API: connection, http · workload-identity
- Order Service → Stock Service: connection, http
- Order Service → Warehouse WMS: connection, Service Bus Namespace, 2 relationships
On a layered view, these switches change what is drawn:
| Switch | Off | On |
|---|---|---|
| structure | The default. The bands say by position what realizes what and what contains what | Draws realization and containment as lines too |
| channels | The default. A message through a channel is one line from sender to receiver, labeled with the broker's kind | Draws each channel as a box of its own, with a line for each leg |
| enablers | Leaves out the Enablers band, or on an Enabler Domain's own view, its callers | The default |
| contexts | The default | Draws each bounded context as a dash-dot boundary round its components, never round a frame, with a tab naming it and where it is marked: from the Domain, module, or nothing where the boxed element carries the mark. A line crossing a boundary is drawn in an orange of its own. A component in no context gets no boundary |
| boundaries | The default | Marks each line that crosses a trust boundary with two short bars, its tooltip naming what it crosses |
| functions | The default | Adds a Functions band under the function groups, each function over the components that realize it. As with a function group, a function nothing realizes keeps an empty column and is drawn dimmed |
Database servers are not drawn on a layered view; the whole model draws them like brokers. Environments, and what runs where, are not drawn on these views. A line is labeled with what it goes over: the protocol, or the broker's kind for a message through a channel. Where a call names its payload format, the line reads HTTP/JSON or HTTP/XML. Where it says how the caller authenticates, the scheme follows a dot: HTTP/JSON · user-token. A call made on behalf of a user, auth on-behalf-of, is drawn dash-dot: the service calls with a token of its own that still carries the user. A robot using a screen, over ui, is drawn as a dashed arrow labeled UI. A Domain's type line says its subdomain type, Core Domain, Supporting Domain or Generic Domain, fainter and in italics where it is read from a Domain above it. An element marked bounded-context shows Bounded context on a line under its type line (see Subdomain types and bounded contexts). A job or a robot with a schedule shows it on a line of its own, under its type line. A service's own identity, its workload identities and their grants, isn't drawn on any view yet; a call still shows its scheme.
Ctrl+click (Cmd+click on a Mac) any other Domain on the view to open its own layered view.
© 2026 Extenza Works. All rights reserved.