# mahmutvg/cloud-gis-be architecture

> Architecture diagram of the GitHub repository mahmutvg/cloud-gis-be, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mahmutvg/cloud-gis-be
- Repository: https://github.com/mahmutvg/cloud-gis-be

## Overview

##### Main Components

a) AWS Lambda Functions Layer:
- Two distinct Lambda functions:
- Locations Lambda (from locations_lambda.py)
- Locations UUID Lambda (from locations_uuid_lambda.py)

b) Sentinel Data Processing Layer:
- Container-based component (evidenced by Dockerfile)
- This as a containerized service

c) API Gateway Layer:
- Given the presence of the 'api' directory and lambda functions
- As an API Gateway interface that routes requests

d) Client Interface:
- Client.html as the frontend consumer
- As a web browser or client application symbol

##### Relationships to Illustrate

- Client → API Gateway
- API Gateway → Lambda Functions
- Lambda Functions → Sentinel Data Container
- Any potential data storage systems (though not explicitly shown in files, GIS systems typically need storage)

##### Specific Design Elements

- Lambda functions
- API Gateway
- Container services

- Blue: AWS services
- Green: Client-side components
- Orange: Data processing components

##### Additional Details

a) Data Flow Annotations:
- GIS data movement between components
- API endpoints and their purposes
- Sentinel data processing workflow

##### Technical Specifications to Note

- Python-based Lambda functions
- Dockerized Sentinel data processing
- RESTful API architecture
- GIS-specific data handling

- Any GIS-specific symbols or notations

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        C[Client Interface]:::client
    end

    subgraph "API Gateway Layer"
        API[API Gateway]:::aws
    end

    subgraph "Lambda Functions Layer"
        L1[Locations Lambda]:::lambda
        L2[Locations UUID Lambda]:::lambda
    end

    subgraph "Data Processing Layer"
        DP[Sentinel Data Processing Container]:::container
        DPS[Sentinel Data Script]:::script
        DP --> DPS
    end

    %% Connections
    C --> API
    API --> L1
    API --> L2
    L1 --> DP
    L2 --> DP

    %% Click Events
    click C "https://github.com/MahmutVG/Cloud-GIS-BE/blob/main/client.html"
    click L1 "https://github.com/MahmutVG/Cloud-GIS-BE/blob/main/api/locations_lambda.py"
    click L2 "https://github.com/MahmutVG/Cloud-GIS-BE/blob/main/api/locations_uuid_lambda.py"
    click DP "https://github.com/MahmutVG/Cloud-GIS-BE/tree/main/lambda-sentinel-data"
    click DPS "https://github.com/MahmutVG/Cloud-GIS-BE/blob/main/lambda-sentinel-data/sentinel_data.py"

    %% Styles
    classDef aws fill:#FF9900,stroke:#232F3E,stroke-width:2px,color:white
    classDef lambda fill:#FF9900,stroke:#232F3E,stroke-width:2px,color:white
    classDef container fill:#FF6B6B,stroke:#232F3E,stroke-width:2px,color:white
    classDef client fill:#85B4FF,stroke:#232F3E,stroke-width:2px,color:white
    classDef script fill:#98FF98,stroke:#232F3E,stroke-width:2px,color:white

    %% Legend
    subgraph Legend
        L_AWS[AWS Services]:::aws
        L_LAMBDA[Lambda Functions]:::lambda
        L_CONTAINER[Container Services]:::container
        L_CLIENT[Client Components]:::client
        L_SCRIPT[Processing Scripts]:::script
    end
```
