Skip to main content
ENSEIRB

Stak'eirb: High-Frequency Real-Time Multiplayer Gaming Platform

Architected a full-stack real-time gaming simulator featuring bidirectional WebSocket event broadcasting, ACID transaction isolation, and provably fair cryptographic randomness.

RoleLead Backend & Real-Time Architect
Timeline2023
ContextENSEIRB-MATMECA Academic Engineering Project
InfraNode.js • Express • Socket.io • SQLite • Vue.js
Stak'eirb gaming platform screenshot

The Challenge: State Synchronization and Concurrency Under Load

Multiplayer wagering platforms must eliminate race conditions such as double-spending virtual credits while maintaining millisecond-level responsiveness for simultaneous users across game rooms.

WebSocket Room State Machine

Socket.io rooms handle real-time chat, bets, and multipliers. The Express backend enforces atomic database transactions in SQLite with immediate rollback on validation failure, preventing desynchronized client balances.

Key Engineering Challenges

  • Mitigating race conditions when hundreds of WebSocket actions arrive in the same tick.
  • Implementing seed-based provably fair RNG verification algorithms.

Platform Performance

Socket latency< 20ms
Transaction rollback rate0% in testing
Concurrent players100+ simulated
Security scoreA+ OWASP