# team-reboot-academy/super-strategy-service architecture

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

- Interactive diagram: https://gitdiagram.com/team-reboot-academy/super-strategy-service
- Repository: https://github.com/team-reboot-academy/super-strategy-service

## Overview

Super-Strategy Service is described as a trading-strategy service, but the sampled runtime and README expose only its health-reporting capability. The visible workflow is an HTTP health request, aggregated component checks, an overall status report, and a JSON response. The graph focuses on that implemented workflow; other strategy capabilities cannot be established from the available evidence.

Main entry points: [`src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java`](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java) (Health check service), [`src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthController.java`](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthController.java) (Health controller), [`src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthResponseDto.java`](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthResponseDto.java) (Health response DTO), [`src/main/java/ru/omsu/superstrategyservice/health/core/model/SystemHealthReport.java`](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/model/SystemHealthReport.java) (Health report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Health API"]
  node_controller["Health controller"]
  node_response["Health response DTO"]
  node_componentdto["Component DTO"]
end

subgraph group_application["Health orchestration"]
  node_usecase["Health use case"]
  node_service["Health check service"]
end

subgraph group_domain["Health model"]
  node_indicatorport["Indicator port"]
  node_report["Health report"]
  node_componenthealth["Component health model"]
  node_healthmodels["Health status types"]
end

subgraph group_adapters["Health indicators"]
  node_runtime["Runtime self-check"]
end

node_caller(("HTTP caller"))

node_caller -->|"requests health"| node_controller
node_controller -->|"executes"| node_usecase
node_service -->|"implements"| node_usecase
node_service -->|"checks indicators"| node_indicatorport
node_runtime -->|"implements"| node_indicatorport
node_runtime -->|"returns status"| node_componenthealth
node_service -->|"collects checks"| node_componenthealth
node_service -->|"creates report"| node_report
node_report -->|"derives status"| node_healthmodels
node_controller -->|"maps report"| node_response
node_response -->|"maps components"| node_componentdto
node_response -->|"reads report"| node_report

click node_controller "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthController.java"
click node_response "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthResponseDto.java"
click node_componentdto "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/ComponentHealthDto.java"
click node_usecase "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/port/in/GetHealthStatusUseCase.java"
click node_service "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java"
click node_indicatorport "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/port/out/ComponentHealthIndicator.java"
click node_report "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/model/SystemHealthReport.java"
click node_componenthealth "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/model/ComponentHealth.java"
click node_healthmodels "https://github.com/team-reboot-academy/super-strategy-service/tree/master/src/main/java/ru/omsu/superstrategyservice/health/core/model"
click node_runtime "https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/out/RuntimeSelfCheckAdapter.java"

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_controller,node_response,node_componentdto toneBlue
class node_usecase,node_service toneAmber
class node_indicatorport,node_report,node_componenthealth,node_healthmodels toneMint
class node_runtime toneRose
class node_caller toneIndigo
```

## Components

### Health API

- [Health controller](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthController.java): `src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthController.java`
- [Health response DTO](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthResponseDto.java): `src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthResponseDto.java`
- [Component DTO](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/ComponentHealthDto.java): `src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/ComponentHealthDto.java`

### Health orchestration

- [Health use case](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/port/in/GetHealthStatusUseCase.java): `src/main/java/ru/omsu/superstrategyservice/health/core/port/in/GetHealthStatusUseCase.java`
- [Health check service](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java): `src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java`

### Health model

- [Indicator port](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/port/out/ComponentHealthIndicator.java): `src/main/java/ru/omsu/superstrategyservice/health/core/port/out/ComponentHealthIndicator.java`
- [Health report](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/model/SystemHealthReport.java): `src/main/java/ru/omsu/superstrategyservice/health/core/model/SystemHealthReport.java`
- [Component health model](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/core/model/ComponentHealth.java): `src/main/java/ru/omsu/superstrategyservice/health/core/model/ComponentHealth.java`
- [Health status types](https://github.com/team-reboot-academy/super-strategy-service/tree/master/src/main/java/ru/omsu/superstrategyservice/health/core/model): `src/main/java/ru/omsu/superstrategyservice/health/core/model`

### Health indicators

- [Runtime self-check](https://github.com/team-reboot-academy/super-strategy-service/blob/master/src/main/java/ru/omsu/superstrategyservice/health/adapter/out/RuntimeSelfCheckAdapter.java): `src/main/java/ru/omsu/superstrategyservice/health/adapter/out/RuntimeSelfCheckAdapter.java`

### Other components

- **HTTP caller**

## Connections

- HTTP caller → Health controller: requests health (evidence: `src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthController.java`)
- Health controller → Health use case: executes (evidence: `src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthController.java`)
- Health check service → Health use case: implements (evidence: `src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java`)
- Health check service → Indicator port: checks indicators (evidence: `src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java`)
- Runtime self-check → Indicator port: implements (evidence: `src/main/java/ru/omsu/superstrategyservice/health/adapter/out/RuntimeSelfCheckAdapter.java`)
- Runtime self-check → Component health model: returns status (evidence: `src/main/java/ru/omsu/superstrategyservice/health/adapter/out/RuntimeSelfCheckAdapter.java`)
- Health check service → Component health model: collects checks (evidence: `src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java`)
- Health check service → Health report: creates report (evidence: `src/main/java/ru/omsu/superstrategyservice/health/application/HealthCheckService.java`)
- Health report → Health status types: derives status (evidence: `src/main/java/ru/omsu/superstrategyservice/health/core/model/SystemHealthReport.java`)
- Health controller → Health response DTO: maps report (evidence: `src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthController.java`)
- Health response DTO → Component DTO: maps components (evidence: `src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthResponseDto.java`)
- Health response DTO → Health report: reads report (evidence: `src/main/java/ru/omsu/superstrategyservice/health/adapter/in/web/HealthResponseDto.java`)
