# kastrovkiran/aws-lb-controller-domain-configuration architecture

> Architecture diagram of the GitHub repository kastrovkiran/aws-lb-controller-domain-configuration, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kastrovkiran/aws-lb-controller-domain-configuration
- Repository: https://github.com/kastrovkiran/aws-lb-controller-domain-configuration

## Overview

This repository contains a small Flask microservices demo alongside DevOps training materials. Its user-facing workflow is browser navigation among a customer-service portal, an analytics dashboard, and an API-gateway-themed app; the third app also exposes a JSON data endpoint. The app excerpts show generated display values and navigation links, not calls between services. Kubernetes manifests are present, but their contents were not sampled, so deployment relationships are not inferred.

Main entry points: [`ms-1/app.py`](https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-1/app.py) (Customer portal), [`ms-2/app.py`](https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-2/app.py) (Analytics dashboard), [`ms-3/app.py`](https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-3/app.py) (Gateway dashboard and API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portals["Web Portals"]
  node_customer["Customer portal<br/>[app.py]"]
  node_analytics["Analytics dashboard<br/>[app.py]"]
end

subgraph group_gateway["API Demo"]
  node_api["Gateway dashboard and API<br/>[app.py]"]
end

node_browser(("Browser user"))

node_browser -->|"opens /app1"| node_customer
node_browser -->|"opens /app2"| node_analytics
node_browser -->|"opens /app3"| node_api
node_customer -->|"links to"| node_analytics
node_customer -->|"links to"| node_api
node_analytics -->|"links to"| node_customer
node_analytics -->|"links to"| node_api
node_api -->|"links to"| node_customer
node_api -->|"links to"| node_analytics

click node_customer "https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-1/app.py"
click node_analytics "https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-2/app.py"
click node_api "https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-3/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_customer,node_analytics,node_browser toneBlue
class node_api toneAmber
```

## Components

### Web Portals

- [Customer portal](https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-1/app.py): `ms-1/app.py`
- [Analytics dashboard](https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-2/app.py): `ms-2/app.py`

### API Demo

- [Gateway dashboard and API](https://github.com/kastrovkiran/aws-lb-controller-domain-configuration/blob/main/ms-3/app.py): `ms-3/app.py`

### Other components

- **Browser user**

## Connections

- Browser user → Customer portal: opens /app1 (evidence: `ms-1/app.py`)
- Browser user → Analytics dashboard: opens /app2 (evidence: `ms-2/app.py`)
- Browser user → Gateway dashboard and API: opens /app3 (evidence: `ms-3/app.py`)
- Customer portal → Analytics dashboard: links to (evidence: `ms-1/app.py`)
- Customer portal → Gateway dashboard and API: links to (evidence: `ms-1/app.py`)
- Analytics dashboard → Customer portal: links to (evidence: `ms-2/app.py`)
- Analytics dashboard → Gateway dashboard and API: links to (evidence: `ms-2/app.py`)
- Gateway dashboard and API → Customer portal: links to (evidence: `ms-3/app.py`)
- Gateway dashboard and API → Analytics dashboard: links to (evidence: `ms-3/app.py`)
