# shilpigupta30/financial-transacting-using-drl architecture

> Architecture diagram of the GitHub repository shilpigupta30/financial-transacting-using-drl, 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/shilpigupta30/financial-transacting-using-drl
- Repository: https://github.com/shilpigupta30/financial-transacting-using-drl

## Overview

This repository is a foundation for concurrent financial-transaction processing, with a C++ engine and a separate monitoring dashboard. The documented engine workflow models transactions as processes, schedules them, manages resources, and coordinates synchronization; the SQL schema is a separate persistence foundation, not a live engine integration. The dashboard includes transaction browsing, scheduler, simulation, health, and system-status views; backend transaction and status routes read from MySQL. Dashboard-to-engine execution and DRL inference are not implemented as verified paths. Edges reflect README or shown source; unsampled relationships are omitted.

Main entry points: [`dashboard/backend/app/main.py`](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/main.py) (FastAPI application), [`dashboard/frontend/App.jsx`](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/App.jsx) (Dashboard application), [`dashboard/backend/app/db.py`](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/db.py) (Read-only database access), [`core_engine/src/transaction/PCB.cpp`](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/transaction/PCB.cpp) (Process control block)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_engine["Transaction engine"]
  node_pcb["Process control block<br/>[PCB.cpp]"]
  node_scheduler["CPU scheduler<br/>[Scheduler.cpp]"]
  node_resources["Resource manager"]
  node_sync["Synchronization manager"]
  node_engine_entry["Engine entry point<br/>[main.cpp]"]
end

subgraph group_backend["Dashboard backend"]
  node_api_entry["FastAPI application<br/>[main.py]"]
  node_transactions_api["Transaction endpoints<br/>[transactions.py]"]
  node_system_api["System status endpoint<br/>[system.py]"]
  node_scheduler_api["Scheduler endpoints<br/>[schedulers.py]"]
  node_simulation_api["Simulation endpoints<br/>[simulations.py]"]
  node_health_api["Health endpoint<br/>[health.py]"]
  node_schemas["API models<br/>[schemas.py]"]
  node_mysql_reader["Read-only database access<br/>[db.py]"]
end

subgraph group_frontend["Dashboard UI"]
  node_frontend_app["Dashboard application<br/>[App.jsx]"]
  node_overview["Overview page<br/>[Overview.jsx]"]
  node_transaction_page["Transactions page<br/>[Transactions.jsx]"]
  node_scheduling_page["Scheduling page<br/>[Scheduling.jsx]"]
  node_simulation_page["Simulation page<br/>[Simulation.jsx]"]
  node_status_page["System status page<br/>[SystemStatus.jsx]"]
end

subgraph group_persistence["Persistence foundation"]
  node_sql_schema["Relational schema<br/>[schema.sql]"]
  node_seed_data["Seed data<br/>[seed.sql]"]
end

node_workload(("Transaction workload"))
node_mysql[("MySQL database")]

node_workload -->|"models as"| node_pcb
node_pcb -->|"schedules"| node_scheduler
node_scheduler -->|"requests resources"| node_resources
node_resources -->|"coordinates with"| node_sync
node_api_entry -->|"registers"| node_health_api
node_api_entry -->|"registers"| node_system_api
node_api_entry -->|"registers"| node_transactions_api
node_api_entry -->|"registers"| node_scheduler_api
node_api_entry -->|"registers"| node_simulation_api
node_transactions_api -->|"queries"| node_mysql_reader
node_system_api -->|"pings"| node_mysql_reader
node_mysql_reader -->|"reads"| node_mysql
node_frontend_app -->|"renders"| node_overview
node_frontend_app -->|"renders"| node_transaction_page
node_frontend_app -->|"renders"| node_scheduling_page
node_frontend_app -->|"renders"| node_simulation_page
node_frontend_app -->|"renders"| node_status_page
node_mysql -.->|"uses foundation"| node_sql_schema
node_mysql -.->|"may load"| node_seed_data

click node_pcb "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/transaction/PCB.cpp"
click node_scheduler "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/scheduler/Scheduler.cpp"
click node_resources "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/resource/ResourceManager.cpp"
click node_sync "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/resource/SynchronizationManager.cpp"
click node_engine_entry "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/main.cpp"
click node_api_entry "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/main.py"
click node_transactions_api "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/transactions.py"
click node_system_api "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/system.py"
click node_scheduler_api "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/schedulers.py"
click node_simulation_api "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/simulations.py"
click node_health_api "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/health.py"
click node_schemas "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/schemas.py"
click node_mysql_reader "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/db.py"
click node_frontend_app "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/App.jsx"
click node_overview "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/Overview.jsx"
click node_transaction_page "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/Transactions.jsx"
click node_scheduling_page "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/Scheduling.jsx"
click node_simulation_page "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/Simulation.jsx"
click node_status_page "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/SystemStatus.jsx"
click node_sql_schema "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/database/schema/schema.sql"
click node_seed_data "https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/database/seeds/seed.sql"

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_pcb,node_scheduler,node_resources,node_sync,node_engine_entry toneBlue
class node_api_entry,node_transactions_api,node_system_api,node_scheduler_api,node_simulation_api,node_health_api,node_schemas,node_mysql_reader,node_mysql toneAmber
class node_frontend_app,node_overview,node_transaction_page,node_scheduling_page,node_simulation_page,node_status_page toneMint
class node_sql_schema,node_seed_data toneRose
class node_workload toneIndigo
```

## Components

### Transaction engine

- [Process control block](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/transaction/PCB.cpp): `core_engine/src/transaction/PCB.cpp`
- [CPU scheduler](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/scheduler/Scheduler.cpp): `core_engine/src/scheduler/Scheduler.cpp`
- [Resource manager](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/resource/ResourceManager.cpp): `core_engine/src/resource/ResourceManager.cpp`
- [Synchronization manager](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/resource/SynchronizationManager.cpp): `core_engine/src/resource/SynchronizationManager.cpp`
- [Engine entry point](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/core_engine/src/main.cpp): `core_engine/src/main.cpp`

### Dashboard backend

- [FastAPI application](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/main.py): `dashboard/backend/app/main.py`
- [Transaction endpoints](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/transactions.py): `dashboard/backend/app/routers/transactions.py`
- [System status endpoint](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/system.py): `dashboard/backend/app/routers/system.py`
- [Scheduler endpoints](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/schedulers.py): `dashboard/backend/app/routers/schedulers.py`
- [Simulation endpoints](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/simulations.py): `dashboard/backend/app/routers/simulations.py`
- [Health endpoint](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/routers/health.py): `dashboard/backend/app/routers/health.py`
- [API models](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/schemas.py): `dashboard/backend/app/schemas.py`
- [Read-only database access](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/backend/app/db.py): `dashboard/backend/app/db.py`

### Dashboard UI

- [Dashboard application](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/App.jsx): `dashboard/frontend/App.jsx`
- [Overview page](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/Overview.jsx): `dashboard/frontend/Overview.jsx`
- [Transactions page](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/Transactions.jsx): `dashboard/frontend/Transactions.jsx`
- [Scheduling page](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/Scheduling.jsx): `dashboard/frontend/Scheduling.jsx`
- [Simulation page](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/Simulation.jsx): `dashboard/frontend/Simulation.jsx`
- [System status page](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/dashboard/frontend/SystemStatus.jsx): `dashboard/frontend/SystemStatus.jsx`

### Persistence foundation

- [Relational schema](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/database/schema/schema.sql): `database/schema/schema.sql`
- [Seed data](https://github.com/shilpigupta30/financial-transacting-using-drl/blob/main/database/seeds/seed.sql): `database/seeds/seed.sql`

### Other components

- **Transaction workload**
- **MySQL database**

## Connections

- Transaction workload → Process control block: models as (evidence: `README.md`)
- Process control block → CPU scheduler: schedules (evidence: `README.md`)
- CPU scheduler → Resource manager: requests resources (evidence: `README.md`)
- Resource manager → Synchronization manager: coordinates with (evidence: `README.md`)
- FastAPI application → Health endpoint: registers (evidence: `dashboard/backend/app/main.py`)
- FastAPI application → System status endpoint: registers (evidence: `dashboard/backend/app/main.py`)
- FastAPI application → Transaction endpoints: registers (evidence: `dashboard/backend/app/main.py`)
- FastAPI application → Scheduler endpoints: registers (evidence: `dashboard/backend/app/main.py`)
- FastAPI application → Simulation endpoints: registers (evidence: `dashboard/backend/app/main.py`)
- Transaction endpoints → Read-only database access: queries (evidence: `dashboard/backend/app/routers/transactions.py`)
- System status endpoint → Read-only database access: pings (evidence: `dashboard/backend/app/routers/system.py`)
- Read-only database access → MySQL database: reads (evidence: `dashboard/backend/app/db.py`)
- Dashboard application → Overview page: renders (evidence: `dashboard/frontend/App.jsx`)
- Dashboard application → Transactions page: renders (evidence: `dashboard/frontend/App.jsx`)
- Dashboard application → Scheduling page: renders (evidence: `dashboard/frontend/App.jsx`)
- Dashboard application → Simulation page: renders (evidence: `dashboard/frontend/App.jsx`)
- Dashboard application → System status page: renders (evidence: `dashboard/frontend/App.jsx`)
- MySQL database → Relational schema: uses foundation
- MySQL database → Seed data: may load
