← InfraDraft

Productivity & Collaboration

Design Slack / Discord (Group chats, presence, and channels)

A multi-channel team communication platform managing persistent WebSocket fan-out across large, dynamically-membered channels and servers.

Open and Simulate this Architecture in InfraDraft

Core Architectural Components

WebSocket Gateway

Manages per-connection fan-out across potentially huge channel memberships.

Channel/Server Membership Service

Tracks who belongs to which channel or server.

Message Store

Durable, per-channel ordered message log.

Presence Service

Online/idle/do-not-disturb status broadcast to relevant members.

Push Notification Service

Delivers mentions and DMs when a user isn't actively connected.

Search Indexing Service

Full-text search across a workspace's message history.

Voice/Video Channel Signaling Service

Coordinates real-time voice/video sessions within a channel.

Permission/Role Management Service

Fine-grained access control per channel, role, and server.