Skip to content

Core DeploymentDiagram Spec

Source: core.deployment-diagram.json

This schema describes the DeploymentDiagram spec for the Core backend.

Properties

Properties

Field Type Description
type(required) string Type of the diagram. Must be exactly DeploymentDiagram.
title string | null Optional diagram title.
elements array[Element] Top-level elements.
boundaries array[Boundary] Top-level boundaries.
relationships array[RelationshipSchema] Top-level relationships.
Examples
JSON source
{
  "type": "DeploymentDiagram",
  "title": "Web App Deployment",
  "elements": [
    {
      "type": "Person",
      "alias": "user",
      "label": "User",
      "description": "Uses the web application."
    }
  ],
  "boundaries": [
    {
      "type": "DeploymentNode",
      "alias": "web_node",
      "label": "Web Server",
      "description": "Hosts the frontend application.",
      "elements": [
        {
          "type": "Container",
          "alias": "web_app",
          "label": "Web App",
          "description": "Customer-facing web application.",
          "technology": "Next.js"
        }
      ]
    },
    {
      "type": "DeploymentNode",
      "alias": "db_node",
      "label": "Database Server",
      "description": "Hosts the application database.",
      "elements": [
        {
          "type": "ContainerDb",
          "alias": "app_db",
          "label": "App Database",
          "description": "Stores application data.",
          "technology": "PostgreSQL"
        }
      ]
    }
  ],
  "relationships": [
    {
      "type": "REL",
      "from": "user",
      "to": "web_node",
      "label": "Uses",
      "technology": "HTTPS"
    },
    {
      "type": "REL",
      "from": "web_node",
      "to": "db_node",
      "label": "Reads and writes",
      "technology": "TLS / SQL"
    }
  ]
}
JSON source
{
  "type": "DeploymentDiagram",
  "title": "Online Shop - Production Deployment",
  "elements": [
    {
      "type": "Person",
      "alias": "customer",
      "label": "Customer",
      "description": "Uses the online shop through a browser."
    },
    {
      "type": "ContainerExt",
      "alias": "payment_gateway",
      "label": "Payment Gateway",
      "description": "External service that processes card payments.",
      "technology": "HTTPS API"
    }
  ],
  "boundaries": [
    {
      "type": "Node",
      "alias": "aws_prod",
      "label": "AWS Production Account",
      "description": "Production cloud account for the online shop.",
      "properties": {
        "properties": [
          [
            "Environment",
            "Production"
          ],
          [
            "Region",
            "eu-central-1"
          ]
        ]
      },
      "boundaries": [
        {
          "type": "Node",
          "alias": "public_subnet",
          "label": "Public Subnet",
          "description": "Internet-facing network segment.",
          "boundaries": [
            {
              "type": "DeploymentNode",
              "alias": "alb",
              "label": "Application Load Balancer",
              "description": "Terminates TLS and routes requests to the web tier.",
              "elements": [
                {
                  "type": "Container",
                  "alias": "web_app",
                  "label": "Web Application",
                  "description": "Serves the storefront UI.",
                  "technology": "Next.js"
                }
              ]
            }
          ]
        },
        {
          "type": "Node",
          "alias": "private_subnet",
          "label": "Private Subnet",
          "description": "Internal network segment for application and data services.",
          "boundaries": [
            {
              "type": "DeploymentNode",
              "alias": "app_cluster",
              "label": "Kubernetes Cluster",
              "description": "Runs backend services and asynchronous workers.",
              "properties": {
                "properties": [
                  [
                    "Platform",
                    "EKS"
                  ],
                  [
                    "Autoscaling",
                    "Enabled"
                  ]
                ]
              },
              "elements": [
                {
                  "type": "Container",
                  "alias": "backend_api",
                  "label": "Backend API",
                  "description": "Handles catalog, checkout, and order processing.",
                  "technology": "Python / FastAPI"
                },
                {
                  "type": "ContainerQueue",
                  "alias": "order_events",
                  "label": "Order Events",
                  "description": "Internal asynchronous event stream.",
                  "technology": "Kafka"
                }
              ]
            },
            {
              "type": "DeploymentNode",
              "alias": "db_service",
              "label": "Managed PostgreSQL",
              "description": "Managed relational database service.",
              "properties": {
                "properties": [
                  [
                    "Service",
                    "RDS"
                  ],
                  [
                    "Mode",
                    "Multi-AZ"
                  ]
                ]
              },
              "elements": [
                {
                  "type": "ContainerDb",
                  "alias": "orders_db",
                  "label": "Orders Database",
                  "description": "Stores orders, payments, and fulfillment data.",
                  "technology": "PostgreSQL"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "relationships": [
    {
      "type": "REL",
      "from": "customer",
      "to": "alb",
      "label": "Uses",
      "technology": "HTTPS"
    },
    {
      "type": "REL",
      "from": "alb",
      "to": "app_cluster",
      "label": "Routes traffic to",
      "technology": "HTTPS"
    },
    {
      "type": "REL",
      "from": "app_cluster",
      "to": "db_service",
      "label": "Reads and writes",
      "technology": "TLS / SQL"
    },
    {
      "type": "REL",
      "from": "app_cluster",
      "to": "payment_gateway",
      "label": "Calls",
      "technology": "HTTPS/JSON"
    },
    {
      "type": "REL",
      "from": "backend_api",
      "to": "order_events",
      "label": "Publishes events to",
      "technology": "Kafka"
    }
  ]
}

Elements

Boundaries

Relationships

Definitions

About labels and aliases

label is a display name for the element.

alias is a unique identifier used for referencing elements in relationships and layouts. If omitted, it is generated automatically.

You can also use label for referencing elements in relationships and layouts, but each label must be unique within the diagram.


ContainerDbExtSchema

This schema describes the ContainerDbExt diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly ContainerDbExt.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.
technology string | null Optional technology.

ContainerDbSchema

This schema describes the ContainerDb diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly ContainerDb.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.
technology string | null Optional technology.

ContainerExtSchema

This schema describes the ContainerExt diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly ContainerExt.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.
technology string | null Optional technology.

ContainerQueueExtSchema

This schema describes the ContainerQueueExt diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly ContainerQueueExt.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.
technology string | null Optional technology.

ContainerQueueSchema

This schema describes the ContainerQueue diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly ContainerQueue.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.
technology string | null Optional technology.

ContainerSchema

This schema describes the Container diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly Container.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.
technology string | null Optional technology.

DeploymentNodeSchema

This schema describes the DeploymentNode diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly DeploymentNode.
elements array[Element] Top-level elements.
boundaries array[Boundary] Top-level boundaries.
relationships array[RelationshipSchema] Top-level relationships.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

DiagramElementPropertiesSchema

JSON schema for tabular diagram element properties.

Properties

Field Type Description
header array[string] Header columns. Default: ["Property", "Value"].
properties(required) array[array[string]] List of rows (each row is a list of string values).
show_header boolean Whether to display the header row. Default: true.

NodeSchema

This schema describes the Node diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly Node.
elements array[Element] Top-level elements.
boundaries array[Boundary] Top-level boundaries.
relationships array[RelationshipSchema] Top-level relationships.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

PersonExtSchema

This schema describes the PersonExt diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly PersonExt.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

PersonSchema

This schema describes the Person diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly Person.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

RelationshipSchema

This schema describes the Relationship diagram component.

Properties

Field Type Description
type(required) string Type of the relationship. Must be exactly REL.
description string | null Additional details about the relationship.
from(required) string The source element alias (or unique label).
label(required) string The label shown on the relationship edge.
properties DiagramElementPropertiesSchema Optional property table metadata.
technology string | null The technology used in the communication.
to(required) string The destination element alias (or unique label).

SystemDbExtSchema

This schema describes the SystemDbExt diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly SystemDbExt.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

SystemDbSchema

This schema describes the SystemDb diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly SystemDb.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

SystemExtSchema

This schema describes the SystemExt diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly SystemExt.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

SystemQueueExtSchema

This schema describes the SystemQueueExt diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly SystemQueueExt.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

SystemQueueSchema

This schema describes the SystemQueue diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly SystemQueue.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.

SystemSchema

This schema describes the System diagram component.

Properties

Field Type Description
type(required) string Discriminator identifying the element type. Must be exactly System.
alias string | null Unique identifier for the element. If not provided, it is autogenerated from the label.
description string | null Optional description text.
label(required) string Display name for the element.
properties DiagramElementPropertiesSchema Optional property table metadata.