WoW Lab

WoW Lab

Toolkit

Simulate

Quick SimBest in BagsDrop Optimizer

Rotations

BrowseNew Rotation

Plan

Traits
P

Developer

DocsBibleEngineHooksMCP ServerMetricsUI Showcase

Misc

AboutBlog

© 2025 WoW Lab

  1. Home
  2. Docs
  3. Realtime Infrastructure

Realtime Infrastructure

WebSocket communication and distributed coordination

February 13, 2026
Edit

Realtime Infrastructure

WowLab's realtime infrastructure enables thousands of compute nodes to process simulation chunks while providing instant progress updates to users.

Connection Architecture

flowchart TB subgraph Clients Portal[Portal Web App] Node1[Node 1] NodeN[Node N] end subgraph Infrastructure Sentinel[Sentinel Service] Beacon[Centrifugo / Beacon] Redis[(Redis)] end Portal -->|WSS| Beacon Node1 -->|WSS| Beacon NodeN -->|WSS| Beacon Node1 -->|HTTP| Sentinel NodeN -->|HTTP| Sentinel Beacon -->|Proxy callbacks| Sentinel Sentinel --> Redis Sentinel --> Beacon

Channel Structure

Centrifugo organizes communication through channels:

Channel PatternPurposeSubscribers
job:{id}Job progress updatesPortal clients watching job
node:{id}Node-specific commandsSingle compute node
broadcastSystem announcementsAll connected clients

Message Flow

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Progress Updates

  1. Node completes chunk processing
  2. Node publishes progress to job:{id} channel
  3. Centrifugo delivers to all subscribers
  4. Portal updates progress UI in realtime

Job Assignment

  1. Sentinel detects available node via heartbeat
  2. Sentinel publishes chunk assignment to node:{id}
  3. Node receives assignment and begins processing
  4. Node acknowledges receipt via HTTP callback

Scaling Considerations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Horizontal Scaling

Centrifugo instances share state via Redis. Add instances behind load balancer.

Connection Limits

Each Centrifugo instance handles ~100k concurrent connections.

Next steps

Node Protocol
Combat Mechanics
Node Protocol

Navigation

Introduction

Overview

Engine

Networking

Realtime InfrastructureNode Protocol

Meta

On this page

Realtime InfrastructureConnection ArchitectureChannel StructureMessage FlowProgress UpdatesJob AssignmentScaling Considerations