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
Related Docs
- → Architecture
- → Gateway
- → Auth
- → Scaling
Last updated on