Engineering Gypsum Server: Our Lock-Free MMO Backend Cluster on Conduit
Server Architecture Dispatch

Engineering Gypsum Server: Our Lock-Free MMO Backend Cluster on Conduit

How we designed a scalable MMO server cluster with isolated encrypted gateways, fast replicated login, zero-downtime patching, and dynamic world shards—built end-to-end with Agentic AI.

• GypsumSoft

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:

GYPSUM SERVER — SESSION LIFECYCLE & SHARD ORCHESTRATIONEdge TLS Token Isolation • Simultaneous Nanosecond Cutover • Dynamic Per-Shard Zone Supervision1. EDGE INGRESS TIERGateway Node GroupTerminates External TCP/TLSEnforces Pre-Auth Security GateIsolates Internal Session TokensRole-Based Anycast Routing2. ACCOUNT AUTHORITYReplicated Login GroupLock-Free Copy-on-Write StoreWAL Sync + Nanosecond Cutover"Last Login Wins" EvictionIssues Single-Use One-Time Token3. DIFFERENTIAL DELIVERYPatcher Node GroupLock-Free SHA-256 ManifestsParallel 64 KiB Chunk StreamingLauncher Self-Update StagingTwo-Phase Hot Atomic Cutover4. ISOLATED WORLD SHARD NODE GROUPS (DYNAMICALLY SUPERVISED BY SHARD DIRECTOR)Shard Director AuthorityMonitors Shard Topology via ConduitSpawns & Supervises Child ServicesIsolated Per-Shard Fault DomainStatic & Instanced Zone Servers3 Core Worlds & Bright Blue GatesClan Cities (Lv 1–10) & Plot GraphsOn-Demand Instanced DungeonsAudited Shard Chat ServersGlobal, Zone & Clan ChannelsAppend-Only FlatBuffers Audit LogsZero-Allocation Fan-Out
Figure 1: Gypsum Server isolates external TLS traffic at the Gateway tier, synchronizes Login and Patcher state with simultaneous nanosecond cutovers, and dynamically supervises per-Shard Zone and Chat services.

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.
Armored clan column marching from a stone courtyard toward a towering bright blue tear in reality WebP • Expand
As clan armies mobilize across Sovran Gates, Gypsum Server routes session and zone state across single-hop Conduit channels with zero heap allocations.

2. 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:

  1. 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).
  2. 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.
  3. “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.
  4. 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.


← Back to News & Devblog