{
  "id": "type-n27",
  "revision": "e2dfba2262bfaf3be71f0bd0d4e1da084ecb1815c2ca6e798a10b318e396f2bb",
  "regions": [
    {
      "id": "mobile",
      "label": "Mobile",
      "parent": null
    },
    {
      "id": "server",
      "label": "Server",
      "parent": null
    },
    {
      "id": "storage",
      "label": "Storage",
      "parent": null
    },
    {
      "id": "boundary",
      "label": "Boundary",
      "parent": null
    }
  ],
  "nodes": [
    {
      "id": "client",
      "label": "Service caller",
      "kind": "N02",
      "region": "mobile",
      "ports": [
        {
          "id": "send",
          "profile": "P02",
          "contract": "SendMessageRequestResponseV1",
          "polarity": "Require"
        }
      ]
    },
    {
      "id": "host",
      "label": "JVM service host",
      "kind": "N27",
      "region": "server",
      "ports": [
        {
          "id": "scope",
          "profile": "P21",
          "contract": "ServiceActivationScopeV1",
          "polarity": "Offer"
        }
      ]
    },
    {
      "id": "handler",
      "label": "Messaging handler",
      "kind": "N19",
      "region": "server",
      "ports": [
        {
          "id": "send",
          "profile": "P02",
          "contract": "SendMessageRequestResponseV1",
          "polarity": "Offer"
        },
        {
          "id": "lifecycle",
          "profile": "P21",
          "contract": "ServiceActivationScopeV1",
          "polarity": "Require"
        },
        {
          "id": "persist",
          "profile": "P02",
          "contract": "AppendMessageAtRevisionV1",
          "polarity": "Require"
        }
      ]
    },
    {
      "id": "database",
      "label": "Message authority",
      "kind": "N21",
      "region": "storage",
      "ports": [
        {
          "id": "lifecycle",
          "profile": "P21",
          "contract": "ServiceActivationScopeV1",
          "polarity": "Require"
        },
        {
          "id": "append",
          "profile": "P02",
          "contract": "AppendMessageAtRevisionV1",
          "polarity": "Offer"
        }
      ]
    },
    {
      "id": "adapter",
      "label": "HTTP serialization adapter",
      "kind": "N15",
      "region": "boundary",
      "ports": [
        {
          "id": "send",
          "profile": "P02",
          "contract": "SendMessageRequestResponseV1",
          "polarity": "Offer"
        },
        {
          "id": "handler",
          "profile": "P02",
          "contract": "SendMessageRequestResponseV1",
          "polarity": "Require"
        }
      ]
    }
  ],
  "relations": [
    {
      "id": "request",
      "kind": "H05",
      "incidences": [
        {
          "node": "client",
          "port": "send",
          "role": "caller",
          "ordinal": 0
        },
        {
          "node": "adapter",
          "port": "send",
          "role": "callee",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "handler",
      "kind": "H01",
      "incidences": [
        {
          "node": "handler",
          "port": "send",
          "role": "provider",
          "ordinal": 0
        },
        {
          "node": "adapter",
          "port": "handler",
          "role": "consumer",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "host",
      "kind": "H19",
      "incidences": [
        {
          "node": "host",
          "port": "scope",
          "role": "owner",
          "ordinal": 0
        },
        {
          "node": "handler",
          "port": "lifecycle",
          "role": "resource",
          "ordinal": 0
        },
        {
          "node": "database",
          "port": "lifecycle",
          "role": "resource",
          "ordinal": 1
        }
      ]
    },
    {
      "id": "persist",
      "kind": "H05",
      "incidences": [
        {
          "node": "handler",
          "port": "persist",
          "role": "caller",
          "ordinal": 0
        },
        {
          "node": "database",
          "port": "append",
          "role": "callee",
          "ordinal": 0
        }
      ]
    }
  ]
}
