Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Backend - Queueing Network Simulation
Python FastAPI backend for simulating distributed database queueing networks.
## Setup
1. Create a virtual environment:
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
## Running
Development mode:
```bash
python src/main.py
# or
uvicorn src.main:app --reload
```
The API will be available at `http://localhost:8000`
API documentation: `http://localhost:8000/docs`
## Testing
```bash
pytest tests/
```
## Structure
- `src/core/` - Core simulation engine (event-driven discrete simulation)
- `src/analytics/` - Analytical computations (Jackson's theorem)
- `src/api/` - FastAPI route handlers
- `src/models/` - Pydantic data models
- `tests/` - Unit and integration tests