# solgreyduocuc/digitalfix-infrastructure architecture

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

- Interactive diagram: https://gitdiagram.com/solgreyduocuc/digitalfix-infrastructure
- Repository: https://github.com/solgreyduocuc/digitalfix-infrastructure

## Overview

DigitalFix Infrastructure is the shared infrastructure repository for a multi-repository work-order platform; it contains no application code. Its documented runtime focus is RabbitMQ, with local and EC2 deployment configuration and a planned Kafka cluster. The main documented event flow runs from work orders through the queue service to notification delivery; reporting and audit are documented Kafka consumers. The README describes these system relationships, but no source excerpts were provided, so implementation-level calls and configuration details cannot be verified.

Main entry points: [`kafka`](https://github.com/solgreyduocuc/digitalfix-infrastructure/tree/main/kafka) (Kafka cluster (planned)), [`mq/docker-compose.yml`](https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/mq/docker-compose.yml) (RabbitMQ cluster)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_messaging["Messaging infrastructure"]
  node_admin_queues["Queue administration"]
  node_rabbitmq["RabbitMQ cluster<br/>[docker-compose.yml]"]
  node_rabbitmq_config["RabbitMQ configuration"]
  node_kafka["Kafka cluster &#40;planned&#41;"]
end

subgraph group_deployment["Deployment configuration"]
  node_local_deploy["Local orchestration<br/>[docker-compose.yml]"]
  node_ec2_login["Login EC2 deployment<br/>[docker-compose.yml]"]
  node_ec2_workorders["Work orders EC2 deployment<br/>[docker-compose.yml]"]
  node_deploy_script["EC2 deploy script<br/>[deploy-main.sh]"]
  node_terraform["Terraform settings<br/>[terraform.tfvars]"]
end

subgraph group_platform["DigitalFix platform"]
  node_frontend["Angular frontend"]
  node_api_gateway{{"AWS API Gateway"}}
  node_bff["BFF gateway"]
  node_workorders["Work orders"]
  node_notify["Notifications"]
  node_report["Reporting and KPIs"]
  node_audit[("Event audit timeline")]
end

node_client(("Client / operator"))

node_client -->|"uses"| node_frontend
node_frontend -->|"sends JWT"| node_api_gateway
node_api_gateway -->|"routes requests"| node_bff
node_bff -->|"routes requests"| node_workorders
node_workorders -->|"delivers events via HTTP"| node_admin_queues
node_admin_queues -->|"publishes and consumes"| node_rabbitmq
node_admin_queues -->|"delivers notifications via HTTP"| node_notify
node_report -.->|"consumes events"| node_kafka
node_audit -.->|"consumes events"| node_kafka

click node_rabbitmq "https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/mq/docker-compose.yml"
click node_rabbitmq_config "https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/mq/rabbitmq-cluster.conf"
click node_kafka "https://github.com/solgreyduocuc/digitalfix-infrastructure/tree/main/kafka"
click node_local_deploy "https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/docker-compose.yml"
click node_ec2_login "https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/deploy/ec2-frontend-login/docker-compose.yml"
click node_ec2_workorders "https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/deploy/ec2-workorders/docker-compose.yml"
click node_deploy_script "https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/deploy/deploy-main.sh"
click node_terraform "https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/terraform/terraform.tfvars"

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_admin_queues,node_rabbitmq,node_rabbitmq_config,node_kafka,node_client toneBlue
class node_local_deploy,node_ec2_login,node_ec2_workorders,node_deploy_script,node_terraform toneAmber
class node_frontend,node_api_gateway,node_bff,node_workorders,node_notify,node_report,node_audit toneMint
```

## Components

### Messaging infrastructure

- **Queue administration**
- [RabbitMQ cluster](https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/mq/docker-compose.yml): `mq/docker-compose.yml`
- [RabbitMQ configuration](https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/mq/rabbitmq-cluster.conf): `mq/rabbitmq-cluster.conf`
- [Kafka cluster (planned)](https://github.com/solgreyduocuc/digitalfix-infrastructure/tree/main/kafka): `kafka`

### Deployment configuration

- [Local orchestration](https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/docker-compose.yml): `docker-compose.yml`
- [Login EC2 deployment](https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/deploy/ec2-frontend-login/docker-compose.yml): `deploy/ec2-frontend-login/docker-compose.yml`
- [Work orders EC2 deployment](https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/deploy/ec2-workorders/docker-compose.yml): `deploy/ec2-workorders/docker-compose.yml`
- [EC2 deploy script](https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/deploy/deploy-main.sh): `deploy/deploy-main.sh`
- [Terraform settings](https://github.com/solgreyduocuc/digitalfix-infrastructure/blob/main/terraform/terraform.tfvars): `terraform/terraform.tfvars`

### DigitalFix platform

- **Angular frontend**
- **AWS API Gateway**
- **BFF gateway**
- **Work orders**
- **Notifications**
- **Reporting and KPIs**
- **Event audit timeline**

### Other components

- **Client / operator**

## Connections

- Client / operator → Angular frontend: uses (evidence: `README.md`)
- Angular frontend → AWS API Gateway: sends JWT (evidence: `README.md`)
- AWS API Gateway → BFF gateway: routes requests (evidence: `README.md`)
- BFF gateway → Work orders: routes requests (evidence: `README.md`)
- Work orders → Queue administration: delivers events via HTTP (evidence: `README.md`)
- Queue administration → RabbitMQ cluster: publishes and consumes (evidence: `README.md`)
- Queue administration → Notifications: delivers notifications via HTTP (evidence: `README.md`)
- Reporting and KPIs → Kafka cluster (planned): consumes events (evidence: `README.md`)
- Event audit timeline → Kafka cluster (planned): consumes events (evidence: `README.md`)
