# Mikroservis Mimarisi - FikoYT

## 🏗️ Service Yapısı

**Core Services:**
- **Go API** (9000) - Fiber v3
- **Python FreeCAD** (8090) - Flask
- **MongoDB** (27017) - Veritabanı

**Additional:**
- **Redis** (6379) - Cache
- **n8n** - Workflow
- **Rocket.Chat** - Communication
- **Ollama** - Local LLM

## 🐳 Docker Network

**Network:** `fikoyt_ag`
```bash
# Create
docker network create fikoyt_ag

# Connect services
docker network connect fikoyt_ag go-server
docker network connect fikoyt_ag python-server
```

## 📊 Data Flow

```
Client → Go API → MongoDB
    ↕
Python FreeCAD → 3D Processing
```

## 🔗 Inter-service

**Go → Python:**
- HTTP REST API
- File sharing (/tmp)
- Progress via Redis

**Go → MongoDB:**
- Official driver
- Connection pooling
- Session storage

## ⚡ Optimizasyon

- **GPU:** CUDA 12.2.0
- **Cache:** Redis + sessions
- **Load balancer:** Gunicorn workers
- **Prefork:** Go processes

---
2025-11-06