Client sends prompt payload and conversation ID to start SSE response stream.
Client Apps
React / iOS / Android
SSE PipelineActive
API Gateway
Envoy / SSL Ingress
Rate Limiter & JWT OAuth2
Message Service
Stream Orchestrator
Active SSE StreamsgRPC
Moderation
Safety Guardrails
Fast-path Filter<10ms
Redis Cluster
Context Window Cache
Sliding Window NTTL 24h
LLM Gateway
Load Balancer & Queue
Token SchedulervLLM Router
GPU Cluster Pool
NVIDIA H100 TensorRT
Token Streamer60 tok/sec
PostgreSQL DB
Primary + Replicas
Async WritePersistent
Message Orchestrator Service
Core Stream Controller
Coordinates active Server-Sent Events (SSE) connections with clients. Fetches past N conversation turns from Redis to assemble the prompt context window before passing enriched payloads to the LLM Gateway.