Metamodel
A metamodel is the model of the architecture repository itself. It defines:
- which element types the repository contains (system, capability, data entity, team…)
- which attributes each element type has
- which relationships are allowed between element types, and what they mean
If inventories are tables, the metamodel is their schema. Without one, every team describes its landscape in its own way: one team's "application" is another team's "service", relationships are drawn as unlabeled arrows, and nobody can answer questions that span more than one inventory.
The metamodel does not need to be complex to be useful. A one-page diagram that everyone agrees on is better than a complete framework that nobody follows.
Why a metamodel matters
- Shared language. Business and IT people use the same terms with the same meaning.
- Consistent inventories. Each inventory follows the same rules for IDs, ownership and lifecycle.
- Traceability. Clear relationships make it possible to trace from strategy to implementation: which systems support a capability, which data a system masters, which team must be involved in a change.
- Analysis. Impact analysis, redundancy detection and gap analysis are graph queries over the repository. They only work when relationships are typed and used consistently.
- Tooling. Whether the repository lives in an EA tool, Backstage or YAML files, the metamodel defines the structure that tools validate and visualize.
Layers
Most metamodels organize element types into layers, from why to where it runs. This follows the structure of established frameworks such as TOGAF and ArchiMate.
| Layer | Question | Example element types |
|---|---|---|
| Motivation | Why are we doing this? | Goal, Principle, Requirement, Decision |
| Business | What does the business do? | Business capability, Business process, Organization unit, Business object |
| Data | What information do we manage? | Data domain, Data entity, Data product |
| Application | Which software supports the business? | System, Component, Interface (API, event) |
| Technology | What is it built with and where does it run? | Technology, Platform, Environment, Infrastructure resource |
| Implementation | How do we change it? | Initiative, Roadmap item, Transition state |
Cross-cutting element types such as Team (ownership) and Vendor (supply) link to elements in several layers.
A practical starter metamodel
The diagram below shows a minimal metamodel that covers the inventories described in the overview. Arrows read from left to right, for example "Business capability is supported by System".
Element types
| Element type | Definition | Inventory |
|---|---|---|
| Business capability | Something the business must be able to do, independent of how it is done | Business capabilities |
| System | A set of software components that delivers a coherent business function and is owned by one team | Systems inventory |
| Component | A deployable or runnable unit of a system: service, database, job, frontend | Systems inventory (as children of systems) |
| Interface | A way a system exposes functionality or data to others: REST API, event topic, file feed | Integrations inventory |
| Data domain | A group of related data entities with one accountable business owner | Data inventory |
| Data entity | A business object the organization manages, such as Customer, Order or Invoice | Data inventory |
| Technology | A language, framework, database or cloud service | Technology inventory |
| Environment | A place where components run, such as a cloud account, cluster or data center | Infrastructure inventory |
| Team | A group of people accountable for elements | Teams and ownership |
| Vendor | An external company supplying software or services | Vendors and contracts |
| Decision | An Architecture Decision Record | Decisions log |
Relationship rules
A few rules prevent most of the mess in real repositories:
- Every relationship has a name and a direction. "System A → System B" says nothing. "System A consumes Interface X, exposed by System B" is actionable.
- Systems talk through interfaces. Do not link systems directly. Modeling the interface in between shows how they are coupled, and the interface becomes an element with its own owner, version and consumers.
- One system masters each data entity. Many systems may use customer data, but only one is the master (the source of truth). If two systems claim to master the same entity, the metamodel has just revealed a real problem.
- Every element has exactly one owning team. Shared ownership usually means no ownership.
- Capabilities are stable; systems change. Map systems to capabilities, never the other way around. Capabilities should survive a system replacement unchanged.
Common attributes
Some attributes apply to every element type. Defining them once in the metamodel keeps the inventories consistent:
| Attribute | Rule |
|---|---|
| ID | Stable, unique, never reused, with a type prefix such as sys-, cap-, api- or team- |
| Name | Human-friendly, may change over time |
| Description | One or two sentences in business language |
| Owner | Reference to a Team element |
| Lifecycle status | Planned, Active, Deprecated or Retired |
| Source | Where the record is maintained (manual, discovered from the cloud, synchronized from another tool) |
| Last reviewed | Date of the last confirmation by the owner |
Mapping to tools
The metamodel is independent of tools, but it helps to know how it maps to common ones:
| Metamodel | Backstage | ArchiMate | C4 model |
|---|---|---|---|
| Business capability | – (custom kind) | Capability | – |
| System | System | Application component | Software system |
| Component | Component | Application component | Container |
| Interface | API | Application interface | – (relationship) |
| Data domain | Domain | – | – |
| Data entity | – (custom kind) | Data object / Business object | – |
| Environment | Resource | Node | Deployment node |
| Team | Group | Business actor | Person |
When the tool lacks an element type, add it as a custom kind or attribute instead of bending an existing type to mean something else.
See Industry Metamodels for a closer look at Backstage, C4, ArchiMate and TOGAF.
How to evolve the metamodel
- Start with the questions. List the questions the repository must answer, and add only the element types and relationships needed to answer them.
- Start small. System, Team, Interface and Business capability cover most needs in the beginning.
- Version it. Treat the metamodel as code: keep it in a repository, review changes, and publish a changelog. Changing a relationship type later means migrating existing data.
- Validate automatically. Check the inventories against the metamodel in CI: required attributes, allowed relationships, and references to existing IDs.
- Document it here. Keep the metamodel diagram and definitions in a visible place. It is the first page new architects and engineers should read.