When rival coalitions march hundreds of armored combatants through a bright blue tear in reality to besiege a Level 10 clan city in Sovran Gate, the backend server infrastructure cannot afford mutex contention, garbage-collection pauses, or external database round-trip stalls.
To meet that standard, we built Gypsum Server—our proprietary, lock-free MMO backend cluster written in Go on top of Conduit and FlatBuffers. Like every part of our stack—including Conduit, the Gypsum 3D Engine, and this website—Gypsum Server is engineered and verified end-to-end using Agentic AI.
End-to-End Session & Shard Handoff Architecture
Every player journey—from launching the self-updating patcher to stepping into a contested world zone—flows through four specialized service tiers inside the Gypsum Server cluster:
1. The Gateway Tier: TLS Ingress & Session Token Isolation
In Gypsum Server, backend services never expose ports to the public internet. All external TCP/TLS connections—whether from the self-updating launcher or the Gypsum 3D Game Client—terminate at the Gateway Node Group:
- Strict Pre-Authentication Gate: Before a connection is authenticated, the Gateway restricts traffic exclusively to login and patch handshake flows, dropping any unauthorized message types at the edge.
- Session Token Isolation: Once a player authenticates, the internal cluster session token is stored inside the Gateway’s lock-free session table and never leaves the cluster perimeter. The Gateway injects verified session context into internal Conduit frames on the player’s behalf.
- Role-Based Anycast Bridging: Stateless Gateway instances route client requests across backend Login, Patcher, and Shard services using Conduit’s lock-free Role and Group Anycast load balancing.
WebP • Expand2. Replicated Lock-Free Login Store & Simultaneous Nanosecond Cutover
Traditional MMO login servers rely on external relational or key-value databases that become a central bottleneck during launch surges or post-update reconnect storms. Gypsum Server eliminates external database dependencies entirely in its Login Node Group:
- Lock-Free Copy-on-Write Account Store: Account records and active session states reside in memory inside an immutable Copy-on-Write data structure, persisted to disk via a checksummed FlatBuffers Write-Ahead Log (WAL).
- Peer Replication with Simultaneous Nanosecond Cutover: When an account mutation occurs, the originating Login service broadcasts the WAL entry to its peer Login nodes over Conduit peer multicast along with a coordinated cutover timestamp. Every Login node stages the updated snapshot and switches to the new state at the exact same nanosecond without read/write mutexes.
- “Last Login Wins” Duplicate Eviction: If a player logs in while a stale session is still active on another Gateway, the Login tier automatically broadcasts a targeted session eviction to disconnect the old connection cleanly before activating the new session.
- Single-Use One-Time Token (OTT) Handoff: When the launcher finishes patching and launches the 3D game client, the Login tier issues a cryptographic, short-lived One-Time Token. The 3D client redeems this token via an atomic compare-and-swap operation—completing a seamless session handoff without ever re-transmitting user credentials or exposing internal session tokens.
3. Differential 64 KiB Patching & Two-Phase Hot Atomic Deployments
Keeping the Gypsum 3D Client and launcher synchronized across Linux, macOS, and Windows is handled by the Patcher Node Group:
- Lock-Free SHA-256 Manifests & Parallel Chunk Streaming: The Patcher indexes every client binary, shader archive, and world asset into lock-free SHA-256 file and chunk manifests. Clients compare local hashes against the active manifest and stream only changed 64 KiB chunks in parallel across Anycast-balanced Patcher instances.
- Two-Phase Hot Atomic Patch Cutover: Publishing a new game build requires zero cluster downtime. Operators upload only the changed delta files to the Patcher tier in Phase 1 (Staging). Once all Patcher nodes verify the staged SHA-256 tree, Phase 2 (Commit) triggers a simultaneous nanosecond cutover—atomically switching every Patcher instance to the new manifest at the exact same instant while in-flight downloads finish cleanly from immutable snapshots.
4. Isolated World Shards & Dynamic Zone / Chat Supervision
Each game world shard (such as Avalon) runs inside its own dedicated Conduit Node Group, providing strict fault and performance isolation between shards:
- The Shard Director: A static Shard Director service acts as the orchestrator for the shard. Using Conduit’s built-in System Control Plane, the Shard Director dynamically spawns, monitors, and supervises child services across the shard’s nodes.
- Static & Instanced World Zone Servers: Persistent Static Zone Servers simulate the 3 Core Worlds, the grounded Bright Blue Tears in Reality connecting them, clan cities (Levels 1–10), shortest-path plot adjacency graphs, and coalition sieges. When players enter dungeons or tactical scenarios, the Shard Director spawns Instanced Zone Servers on demand and reclaims them automatically when complete.
- Audited Shard Chat Servers: Dedicated Chat services manage global, zone, party, and clan communication channels backed by append-only FlatBuffers audit logs.
5. Built End-to-End with Agentic AI
Like Conduit, Gypsum Client, and this website, Gypsum Server is developed end-to-end using Agentic AI. Because every service boundary in Gypsum Server is expressed through declarative FlatBuffers schemas, lock-free state invariants, and deterministic test fakes with virtual clocks, our autonomous engineering agents can simulate multi-node login failovers, simultaneous nanosecond patch cutovers, and dynamic shard spawning in milliseconds—and bounce updated binaries into a live multi-node development or LXC container cluster in under two seconds.
