Skip to main content

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.

tip

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.

LayerQuestionExample element types
MotivationWhy are we doing this?Goal, Principle, Requirement, Decision
BusinessWhat does the business do?Business capability, Business process, Organization unit, Business object
DataWhat information do we manage?Data domain, Data entity, Data product
ApplicationWhich software supports the business?System, Component, Interface (API, event)
TechnologyWhat is it built with and where does it run?Technology, Platform, Environment, Infrastructure resource
ImplementationHow 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 typeDefinitionInventory
Business capabilitySomething the business must be able to do, independent of how it is doneBusiness capabilities
SystemA set of software components that delivers a coherent business function and is owned by one teamSystems inventory
ComponentA deployable or runnable unit of a system: service, database, job, frontendSystems inventory (as children of systems)
InterfaceA way a system exposes functionality or data to others: REST API, event topic, file feedIntegrations inventory
Data domainA group of related data entities with one accountable business ownerData inventory
Data entityA business object the organization manages, such as Customer, Order or InvoiceData inventory
TechnologyA language, framework, database or cloud serviceTechnology inventory
EnvironmentA place where components run, such as a cloud account, cluster or data centerInfrastructure inventory
TeamA group of people accountable for elementsTeams and ownership
VendorAn external company supplying software or servicesVendors and contracts
DecisionAn Architecture Decision RecordDecisions 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:

AttributeRule
IDStable, unique, never reused, with a type prefix such as sys-, cap-, api- or team-
NameHuman-friendly, may change over time
DescriptionOne or two sentences in business language
OwnerReference to a Team element
Lifecycle statusPlanned, Active, Deprecated or Retired
SourceWhere the record is maintained (manual, discovered from the cloud, synchronized from another tool)
Last reviewedDate 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:

MetamodelBackstageArchiMateC4 model
Business capability– (custom kind)Capability–
SystemSystemApplication componentSoftware system
ComponentComponentApplication componentContainer
InterfaceAPIApplication interface– (relationship)
Data domainDomain––
Data entity– (custom kind)Data object / Business object–
EnvironmentResourceNodeDeployment node
TeamGroupBusiness actorPerson

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.