# keerthanvarma/careertrack-placement-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/keerthanvarma/careertrack-placement-management-system
- Repository: https://github.com/keerthanvarma/careertrack-placement-management-system

## Overview

CareerTrack DBMS combines a custom ACID transaction engine (Module A) with a sharded placement-and-recruitment platform (Module B). The principal platform flow is client request → FastAPI validation and RBAC → hash-based shard routing → MySQL shard operation → response; the README documents this sequence. Module A separately coordinates transactions over B+ Tree tables using locking, WAL, and recovery. Several internal edges are supported by SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`Module_A/transaction/coordinator.py`](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/coordinator.py) (Transaction coordinator), [`Module_B/app/main.py`](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/main.py) (REST API), [`Module_B/app/db.py`](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/db.py) (MySQL access), [`Module_B/app/sharding_endpoints.py`](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharding_endpoints.py) (Sharding endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform API"]
  node_webui["Web UI<br/>[app.js]"]
  node_api["REST API<br/>[main.py]"]
  node_auth["Authentication and RBAC<br/>[auth.py]"]
  node_shard_endpoints["Sharding endpoints"]
end

subgraph group_sharding["Distributed Data"]
  node_shard_manager["Shard routing"]
  node_shard_ops["Shard operations"]
  node_sharded_db["Sharded database access<br/>[sharded_db.py]"]
  node_db["MySQL access<br/>[db.py]"]
  node_mysql[("MySQL shards")]
end

subgraph group_engine["ACID Engine"]
  node_bplus["B+ Tree<br/>[bplustree.py]"]
  node_table["Table abstraction<br/>[table.py]"]
  node_db_manager["Table manager<br/>[db_manager.py]"]
  node_coordinator["Transaction coordinator<br/>[coordinator.py]"]
  node_txn_manager["Transaction lifecycle"]
  node_txn_storage["Transactional storage"]
  node_locks["Lock manager<br/>[lock_manager.py]"]
end

subgraph group_durability["Recovery and Monitoring"]
  node_wal[("Write-ahead log<br/>[wal.py]")]
  node_recovery["Crash recovery<br/>[recovery.py]"]
  node_acid_demos["ACID demonstrations"]
  node_durability_demo["Durability demonstration"]
  node_isolation_demo["Isolation demonstration"]
  node_monitor["Performance monitoring"]
end

node_client(("API clients"))

node_client -->|"sends requests"| node_api
node_webui -->|"calls endpoints"| node_api
node_api -->|"checks access"| node_auth
node_api -.->|"dispatches requests"| node_shard_endpoints
node_api -->|"routes requests"| node_shard_manager
node_shard_endpoints -.->|"dispatches operations"| node_shard_ops
node_shard_ops -.->|"executes operations"| node_sharded_db
node_sharded_db -.->|"accesses database"| node_db
node_db -->|"uses routing"| node_shard_manager
node_db -->|"queries shards"| node_mysql
node_coordinator -->|"manages lifecycle"| node_txn_manager
node_coordinator -->|"coordinates storage"| node_txn_storage
node_coordinator -->|"manages locks"| node_locks
node_coordinator -->|"writes log"| node_wal
node_coordinator -->|"runs recovery"| node_recovery
node_txn_storage -->|"uses tables"| node_db_manager
node_db_manager -->|"creates tables"| node_table
node_table -.->|"uses index"| node_bplus
node_acid_demos -->|"demonstrates transactions"| node_coordinator
node_durability_demo -->|"demonstrates recovery"| node_coordinator
node_isolation_demo -->|"demonstrates isolation"| node_coordinator

click node_webui "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/ui/static/app.js"
click node_api "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/main.py"
click node_auth "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/auth.py"
click node_shard_endpoints "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharding_endpoints.py"
click node_shard_manager "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharding_manager.py"
click node_shard_ops "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharded_operations.py"
click node_sharded_db "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharded_db.py"
click node_db "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/db.py"
click node_bplus "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/database/bplustree.py"
click node_table "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/database/table.py"
click node_db_manager "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/database/db_manager.py"
click node_coordinator "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/coordinator.py"
click node_txn_manager "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/transaction_manager.py"
click node_txn_storage "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/transactional_storage.py"
click node_locks "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/lock_manager.py"
click node_wal "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/wal.py"
click node_recovery "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/recovery.py"
click node_acid_demos "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/demo_bplustree_consistency.py"
click node_durability_demo "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/demo_bplustree_durability.py"
click node_isolation_demo "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/demo_bplustree_isolation.py"
click node_monitor "https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/performance_monitor.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_webui,node_api,node_auth,node_shard_endpoints,node_client toneBlue
class node_shard_manager,node_shard_ops,node_sharded_db,node_db,node_mysql toneAmber
class node_bplus,node_table,node_db_manager,node_coordinator,node_txn_manager,node_txn_storage,node_locks toneMint
class node_wal,node_recovery,node_acid_demos,node_durability_demo,node_isolation_demo,node_monitor toneRose
```

## Components

### Platform API

- [Web UI](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/ui/static/app.js): `Module_B/ui/static/app.js`
- [REST API](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/main.py): `Module_B/app/main.py`
- [Authentication and RBAC](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/auth.py): `Module_B/app/auth.py`
- [Sharding endpoints](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharding_endpoints.py): `Module_B/app/sharding_endpoints.py`

### Distributed Data

- [Shard routing](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharding_manager.py): `Module_B/app/sharding_manager.py`
- [Shard operations](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharded_operations.py): `Module_B/app/sharded_operations.py`
- [Sharded database access](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/sharded_db.py): `Module_B/app/sharded_db.py`
- [MySQL access](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_B/app/db.py): `Module_B/app/db.py`
- **MySQL shards**

### ACID Engine

- [B+ Tree](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/database/bplustree.py): `Module_A/database/bplustree.py`
- [Table abstraction](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/database/table.py): `Module_A/database/table.py`
- [Table manager](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/database/db_manager.py): `Module_A/database/db_manager.py`
- [Transaction coordinator](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/coordinator.py): `Module_A/transaction/coordinator.py`
- [Transaction lifecycle](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/transaction_manager.py): `Module_A/transaction/transaction_manager.py`
- [Transactional storage](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/transactional_storage.py): `Module_A/transaction/transactional_storage.py`
- [Lock manager](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/lock_manager.py): `Module_A/transaction/lock_manager.py`

### Recovery and Monitoring

- [Write-ahead log](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/wal.py): `Module_A/transaction/wal.py`
- [Crash recovery](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/transaction/recovery.py): `Module_A/transaction/recovery.py`
- [ACID demonstrations](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/demo_bplustree_consistency.py): `Module_A/demo_bplustree_consistency.py`
- [Durability demonstration](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/demo_bplustree_durability.py): `Module_A/demo_bplustree_durability.py`
- [Isolation demonstration](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/demo_bplustree_isolation.py): `Module_A/demo_bplustree_isolation.py`
- [Performance monitoring](https://github.com/keerthanvarma/careertrack-placement-management-system/blob/main/Module_A/performance_monitor.py): `Module_A/performance_monitor.py`

### Other components

- **API clients**

## Connections

- API clients → REST API: sends requests
- Web UI → REST API: calls endpoints
- REST API → Authentication and RBAC: checks access
- REST API → Sharding endpoints: dispatches requests
- REST API → Shard routing: routes requests
- Sharding endpoints → Shard operations: dispatches operations
- Shard operations → Sharded database access: executes operations
- Sharded database access → MySQL access: accesses database
- MySQL access → Shard routing: uses routing (evidence: `Module_B/app/db.py`)
- MySQL access → MySQL shards: queries shards
- Transaction coordinator → Transaction lifecycle: manages lifecycle (evidence: `Module_A/transaction/coordinator.py`)
- Transaction coordinator → Transactional storage: coordinates storage (evidence: `Module_A/transaction/coordinator.py`)
- Transaction coordinator → Lock manager: manages locks (evidence: `Module_A/transaction/coordinator.py`)
- Transaction coordinator → Write-ahead log: writes log (evidence: `Module_A/transaction/coordinator.py`)
- Transaction coordinator → Crash recovery: runs recovery (evidence: `Module_A/transaction/coordinator.py`)
- Transactional storage → Table manager: uses tables (evidence: `Module_A/transaction/transactional_storage.py`)
- Table manager → Table abstraction: creates tables (evidence: `Module_A/database/db_manager.py`)
- Table abstraction → B+ Tree: uses index
- ACID demonstrations → Transaction coordinator: demonstrates transactions (evidence: `Module_A/demo_bplustree_consistency.py`)
- Durability demonstration → Transaction coordinator: demonstrates recovery (evidence: `Module_A/demo_bplustree_durability.py`)
- Isolation demonstration → Transaction coordinator: demonstrates isolation (evidence: `Module_A/demo_bplustree_isolation.py`)
