System Architecture

Built for Production

Microservices architecture with containerized deployment, designed for scalability, reliability, and operational excellence.

High-Level Overview

VibeQuantX uses a microservices architecture where each service handles a specific domain with clear boundaries.

Data Layer
PostgreSQL
Redis Cache
TimescaleDB (opt)
Service Layer
API Gateway
Data Service
Strategy Service
Risk Service
Backtest Service
Execution Layer
Exec Orchestrator
C++ Engine
gRPC Bridge
Frontend Layer
Next.js Web App
WebSocket Client
React Dashboard
Services communicate via REST/HTTP, WebSocket for real-time updates, and gRPC for low-latency execution paths

Service Components

Each service is independently deployable, scalable, and testable.

API Gateway

:8000

FastAPI-based entry point with authentication, rate limiting, and request routing.

Python / FastAPI

Data Service

:8001

Market data ingestion, normalization, and caching from multiple sources.

Python / FastAPI

Backtest Service

:8002

Event-driven backtesting engine with realistic simulation.

Python / FastAPI

Strategy Service

:8003

Strategy registry, execution logic, and signal generation.

Python / FastAPI

Risk Service

:8004

Real-time risk calculations, limits enforcement, and alerts.

Python / FastAPI

Execution Orchestrator

:8005

Order management and routing to the C++ execution engine.

Python / FastAPI

C++ Execution Engine

:50051

Low-latency order execution with gRPC interface.

C++ / gRPC

Web Frontend

:3000

React-based dashboard with real-time WebSocket updates.

Next.js / React

Data Flow

From market data ingestion to trade execution, every step is traceable and auditable.

1
External APIsData Service

Market data ingested from Binance, Yahoo Finance, Alpha Vantage

2
Data ServiceRedis Cache

Normalized data cached for low-latency access

3
Strategy ServiceData Service

Strategies fetch data and compute signals

4
Strategy ServiceRisk Service

Pre-trade risk validation for all orders

5
Risk ServiceExecution Orchestrator

Approved orders sent for execution

6
Execution OrchestratorC++ Engine

Low-latency execution via gRPC

7
C++ EnginePostgreSQL

Trade records persisted for audit

Deployment Options

Choose the deployment model that fits your organization's requirements.

Local Development

Run the entire stack locally with Docker Compose for development and testing.

  • Single command startup
  • Hot reload for all services
  • Local PostgreSQL and Redis

Cloud Deployment

Deploy to any cloud provider using Kubernetes or managed container services.

  • Kubernetes-ready manifests
  • Helm charts available
  • Auto-scaling support

On-Premise

Run on your own infrastructure with full control over data and security.

  • Air-gapped deployment
  • Custom networking
  • Full data sovereignty

Hybrid

Mix of cloud and on-premise components based on security requirements.

  • Sensitive data on-premise
  • Compute in cloud
  • Flexible architecture

Questions About Architecture?

Our team can walk you through the technical details.