# yahya9102/compose-demo architecture

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

- Interactive diagram: https://gitdiagram.com/yahya9102/compose-demo
- Repository: https://github.com/yahya9102/compose-demo

## Overview

This repository contains three small Flask HTTP services. A client can request `/hello` from app1 or `/message` from app2 or app3; each handler returns a JSON response identifying its service. The excerpts show no active calls between services: the apparent app1-to-app2 and app2-to-app3 requests are commented out. Deployment configuration exists in the tree, but its runtime relationships are not established by the excerpts.

Main entry points: [`app1/app.py`](https://github.com/yahya9102/compose-demo/blob/main/app1/app.py) (App 1 API), [`app2/app.py`](https://github.com/yahya9102/compose-demo/blob/main/app2/app.py) (App 2 API), [`app3/app.py`](https://github.com/yahya9102/compose-demo/blob/main/app3/app.py) (App 3 API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http_services["HTTP services"]
  node_app1["App 1 API<br/>[app.py]"]
  node_app2["App 2 API<br/>[app.py]"]
  node_app3["App 3 API<br/>[app.py]"]
end

node_client(("HTTP client"))

node_client -->|"GET /hello"| node_app1
node_client -->|"GET /message"| node_app2
node_client -->|"GET /message"| node_app3

click node_app1 "https://github.com/yahya9102/compose-demo/blob/main/app1/app.py"
click node_app2 "https://github.com/yahya9102/compose-demo/blob/main/app2/app.py"
click node_app3 "https://github.com/yahya9102/compose-demo/blob/main/app3/app.py"

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_app1,node_app2,node_app3,node_client toneBlue
```

## Components

### HTTP services

- [App 1 API](https://github.com/yahya9102/compose-demo/blob/main/app1/app.py): `app1/app.py`
- [App 2 API](https://github.com/yahya9102/compose-demo/blob/main/app2/app.py): `app2/app.py`
- [App 3 API](https://github.com/yahya9102/compose-demo/blob/main/app3/app.py): `app3/app.py`

### Other components

- **HTTP client**

## Connections

- HTTP client → App 1 API: GET /hello (evidence: `app1/app.py`)
- HTTP client → App 2 API: GET /message (evidence: `app2/app.py`)
- HTTP client → App 3 API: GET /message (evidence: `app3/app.py`)
