# Original teaching model. Staging is an illustrative environment, not observed.
# Host boundaries contain instances of the applications/data stores in the other view.
canvas: { projection: iso, background: "#FAFAF9", padding: 32 }
nodes:
  scene:
    shape: composite
    layout: { mode: row, gap: 4 }
    parts:
      - id: app_host
        shape: boundary
        label: "App host [VM]"
        layout: { mode: row, padding: 1.5 }
        style:
          stroke: { color: "#64726B", width: 1.5, dash: "6 4" }
          text: { size: 16, color: "#34423E" }
        parts:
          - id: report_api_1
            shape: rectangle
            label: "Report API #1 (Go)"
            geom: { w: 180, d: 120, h: 20 }
            style:
              palette: { top: "#FFFFFF", left: "#DDE6E3", right: "#EAF0EE" }
              stroke: { color: "#0F766E", width: 1.6 }
              text: { size: 16, color: "#202627", weight: "600" }
      - id: data_host
        shape: boundary
        label: "Data host [VM]"
        layout: { mode: row, padding: 1.5 }
        style:
          stroke: { color: "#64726B", width: 1.5, dash: "6 4" }
          text: { size: 16, color: "#34423E" }
        parts:
          - id: report_store_1
            shape: cylinder
            label: "Report store #1 (PostgreSQL)"
            geom: { w: 180, d: 120, h: 20 }
            style:
              palette: { top: "#FFFFFF", left: "#DDE6E3", right: "#EAF0EE" }
              stroke: { color: "#0F766E", width: 1.6 }
              text: { size: 16, color: "#202627", weight: "600" }
    connectors:
      - from: report_api_1
        to: report_store_1
        routing: orthogonal
        arrow: triangle
        label: "Reads/writes reports\nPostgreSQL protocol"
        labelFontFamily: Source Sans Pro
        labelFontSize: 15
        labelColor: "#202627"
        labelBg: "#FFFFFF"
        stroke: { color: "#0F766E", width: 2.5 }
annotations:
  - anchor: app_host
    side: top
    distance: 60
    text: "Staging deployment sketch\nIllustrative / not observed"
    fontSize: 18
    bg: "#FFFFFF"
    border: "#64726B"
    color: "#202627"
