Skip to content

Services

TradAI microservices.

Overview

Service Port Purpose Architecture
Backend 8000 Main API gateway, orchestration, backtesting 3-layer
Data Collection 8002 Market data fetching and storage 3-layer
Strategy Service 8003 Strategy execution, MLflow integration 3-layer
MLflow 5000 (container) / 5001 (host) ML experiment tracking and model registry Container wrapper

Architecture

Backend, Data Collection, and Strategy Service follow the 3-layer architecture. MLflow is a thin Docker wrapper around the upstream MLflow server (see MLflow docs).

services/*/
├── src/*/
│   ├── api/            # FastAPI routers, endpoints
│   ├── core/           # Business logic, entities
│   └── infrastructure/ # External adapters, repositories
├── tests/
└── Dockerfile

Running Services

# Start all services with Docker
just up

# Run individual service locally
just run-strategy  # Strategy Service on port 8003

# Stop services
just down

Health Checks

# Check service health
just doctor services

See Also