tradeit.gg
← Back to Index

Architecture · ops.tradeit.gg

Backend Services Deep Dive

Contents


Deep dive into each core backend service — purpose, major components, connections, and key details.

Last updated: 2026-05-09


tradeit-backend

The heart of the platform. Handles all user-facing API endpoints, trade lifecycle, inventory queries, pricing reads, and bot coordination.

Major Components

Connections

graph LR
    BE[tradeit-backend] --> MySQL[(MySQL Aurora)]
    BE --> Redis[(Redis)]
    BE --> OS[(OpenSearch)]
    BE --> TBS[tradeit-tradebot-server]
    BE --> SS[tradeit-socket-server]
    BE --> LS[tradeit-login-server]
    NT[new-tradeit] --> BE
    ADM[tradeit-admin-backend] --> BE

Key Details


tradeit-tradebot-server

📖 Full deep dive: tradeit-tradebot-server — Redis/Bull contract surface, trade lifecycle sequences, MySQL surface, auto-QA contract.

Manages the entire fleet of ~400 Steam trade bots. Executes trades, monitors bot health, handles Steam API interactions.

Major Components

Connections

graph LR
    BE[tradeit-backend] --> TBS[tradeit-tradebot-server]
    TBS --> Steam[Steam API]
    TBS --> Redis[(Redis)]
    TBS --> MySQL[(MySQL)]
    IS[tradeit-inventory-server] --> TBS

Key Details


tradeit-inventory-server

Fetches and aggregates bot inventories from Steam. Two sub-services: sinvbot (site inventory) and cinvbot (user/container inventory).

Major Components

Connections

graph LR
    IS[tradeit-inventory-server] --> Steam[Steam API]
    IS --> Redis[(Redis)]
    IS --> MySQL[(MySQL)]
    IS --> ScraperAPI["ScraperAPI
fallback"] BE[tradeit-backend] --> IS IP[tradeit-inventory-parser] --> IS

Key Details


tradeit-socket-server

Real-time WebSocket server. Pushes live updates to the frontend for inventory changes, trade status, and leaderboard.

Major Components

Connections

graph LR
    SS[tradeit-socket-server] --> Redis[(Redis)]
    SS --> MySQL[(MySQL)]
    BE[tradeit-backend] -->|pub/sub| SS
    SS -->|WebSocket| NT[new-tradeit]

Key Details


tradeit-service

Secondary API service. Handles SIH (Steam Inventory Helper) exports, product feed generation, and scheduled data processing jobs.

Major Components

Connections

graph LR
    SVC[tradeit-service] --> MySQL[(MySQL)]
    SVC --> OS[(OpenSearch)]
    SVC --> Redis[(Redis)]
    BE[tradeit-backend] --> SVC

Key Details


tradeit-login-server

Steam authentication service. Handles Steam OpenID login flow, session creation, and domain validation.

Major Components

Connections

graph LR
    LS[tradeit-login-server] --> Steam[Steam OpenID]
    LS --> Redis[(Redis)]
    NT[new-tradeit] --> LS
    LS --> BE[tradeit-backend]

Key Details


tradeit-oauth2-server

OAuth2/OIDC authentication server. Supports Steam, FACEIT, and GitHub login strategies with Swagger API documentation.

Major Components

Connections

graph LR
    OA[tradeit-oauth2-server] --> MySQL[(MySQL)]
    OA --> Steam[Steam API]
    OA --> FACEIT[FACEIT API]
    OA --> GitHub[GitHub API]
    BE[tradeit-backend] --> OA

Key Details


tradeit-admin-backend

Admin panel API. Powers the internal admin dashboard for managing items, users, bots, and pricing overrides.

Major Components

Connections

graph LR
    AB[tradeit-admin-backend] --> MySQL[(MySQL)]
    ADM[tradeit-admin] --> AB
    AB --> BE[tradeit-backend]

Key Details



ops.tradeit.gg — Internal Engineering Docs