# apache/brooklyn architecture

> Architecture diagram of the GitHub repository apache/brooklyn, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/apache/brooklyn
- Repository: https://github.com/apache/brooklyn

## Overview

Apache Brooklyn models, deploys, and manages systems from YAML or Java blueprints. Its documented lifecycle is blueprint-based deployment to clouds or other environments, followed by monitoring, maintenance of a live model, and autonomic policies that help keep deployments healthy. The repository tree identifies server and library subprojects, but no source excerpts establish their specific responsibilities or call relationships; the links below therefore reflect only README-documented behavior.

Main entry points: [`brooklyn-server`](https://github.com/apache/brooklyn/tree/master/brooklyn-server) (Deployment), [`brooklyn-library`](https://github.com/apache/brooklyn/tree/master/brooklyn-library) (Cloud or environment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_model["Blueprint and model"]
  node_blueprint["YAML or Java blueprint"]
  node_live_model["Live model"]
end

subgraph group_operations["Deployment operations"]
  node_deployment["Deployment"]
  node_monitoring["Deployment monitoring"]
  node_policies["Autonomic policies"]
end

subgraph group_integration["Deployment targets"]
  node_target["Cloud or environment"]
end

node_operator(("System operator"))

node_operator -->|"provides"| node_blueprint
node_blueprint -->|"drives deployment"| node_deployment
node_deployment -->|"deploys to"| node_target
node_deployment -->|"is monitored"| node_monitoring
node_monitoring -->|"maintains"| node_live_model
node_policies -->|"maintains health"| node_deployment

click node_blueprint "https://github.com/apache/brooklyn/tree/master/brooklyn-server"
click node_deployment "https://github.com/apache/brooklyn/tree/master/brooklyn-server"
click node_monitoring "https://github.com/apache/brooklyn/tree/master/brooklyn-server"
click node_live_model "https://github.com/apache/brooklyn/tree/master/brooklyn-server"
click node_policies "https://github.com/apache/brooklyn/tree/master/brooklyn-server"
click node_target "https://github.com/apache/brooklyn/tree/master/brooklyn-library"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_blueprint,node_live_model toneBlue
class node_deployment,node_monitoring,node_policies toneAmber
class node_target toneMint
class node_operator toneIndigo
```

## Components

### Blueprint and model

- [YAML or Java blueprint](https://github.com/apache/brooklyn/tree/master/brooklyn-server): `brooklyn-server`
- [Live model](https://github.com/apache/brooklyn/tree/master/brooklyn-server): `brooklyn-server`

### Deployment operations

- [Deployment](https://github.com/apache/brooklyn/tree/master/brooklyn-server): `brooklyn-server`
- [Deployment monitoring](https://github.com/apache/brooklyn/tree/master/brooklyn-server): `brooklyn-server`
- [Autonomic policies](https://github.com/apache/brooklyn/tree/master/brooklyn-server): `brooklyn-server`

### Deployment targets

- [Cloud or environment](https://github.com/apache/brooklyn/tree/master/brooklyn-library): `brooklyn-library`

### Other components

- **System operator**

## Connections

- System operator → YAML or Java blueprint: provides (evidence: `README.md`)
- YAML or Java blueprint → Deployment: drives deployment (evidence: `README.md`)
- Deployment → Cloud or environment: deploys to (evidence: `README.md`)
- Deployment → Deployment monitoring: is monitored (evidence: `README.md`)
- Deployment monitoring → Live model: maintains (evidence: `README.md`)
- Autonomic policies → Deployment: maintains health (evidence: `README.md`)
