WeSearch

The Moment Veltrix Blew Up and We Had to Write Our Own Shard Router

·4 min read · 0 reactions · 0 comments · 15 views
#webdev#programming#performance
The Moment Veltrix Blew Up and We Had to Write Our Own Shard Router
TL;DR · WeSearch summary

The article discusses the challenges faced when using Veltrix for a multiplayer game engine that required efficient shard routing. Due to limitations in Veltrix's shard distribution, the team decided to develop a custom shard router using Rust. The new system significantly improved performance metrics, including reduced latency and memory usage.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3942594) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } pretty ncube Posted on May 27 The Moment Veltrix Blew Up and We Had to Write Our Own Shard Router #webdev #programming #rust #performance The Problem We Were Actually Solving The Treasure Hunt Engine isnt a search engine; its a live, multiplayer game where 100,000 players simultaneously dig through 5 TB of LZ4-compressed JSON blobs to find hidden keys. Each game room is a shard, and each shard must route writes to the correct player within 500 ms p99.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)