Skip to Content
Chat BackendOverview

Chat Backend

The Chat Backend is the authoritative real-time system.

It handles:

  • WebSocket lifecycle
  • Identity binding
  • Message routing
  • Persistence
  • Moderation hooks

Responsibilities

  • Authenticate socket connections
  • Maintain channel membership
  • Fan out messages
  • Enforce rate limits

Out of Scope

  • UI rendering
  • OAuth flows
  • Page routing

Tech Stack

  • NestJS
  • Socket.IO
  • Prisma
  • Redis
  • MariaDB / Postgres

Core Modules

  • ChatGateway
  • ChatService
  • PresenceService
  • ModerationService
  • → Architecture
  • → Gateway
  • → Auth
  • → Scaling
Last updated on