Back to Projects
Game Real-time

Bloden - Gaming App

Bloden allows users to compete in skill-based mini-games with a real-money betting component. The challenge was to ensure perfect synchronization between players to prevent cheating and ensure fairness, while strictly adhering to security standards for payment processing.

Flutter NodeJS Socket.io Firebase Stripe

Problem

Real-time multiplayer games on mobile networks often suffer from latency desynchronization (lag), which ruins the competitive integrity required for betting apps.

Solution

Implemented an authoritative server model where the Node.js backend runs the game state simulation. Client inputs are sent to the server, which validates and broadcasts the authoritative state back to clients, using optimistic UI updates to mask latency.

# System Architecture

Event-driven architecture. The core game loop runs on high-performance Node.js instances. Payment transactions are processed via a secured, isolated service interacting with Stripe webhooks. Firebase handles non-critical data like user stats and matchmaking queues.

Key Features

  • Real-time Multiplayer Sync
  • Secure Stripe Payment Gateway
  • In-game Betting Logic
  • Live Chat Overlay
  • Leaderboards & Tournaments
Stripe API
Monolith
Auth
Core
Data
DB
Game Results API
Figure 1.0: Bloden - Gaming App High-Level Architecture

# User Flow & Journey

Lobby

Step 01

User joins matchmaking queue via WebSocket.

Match Found

Step 02

Server pairs players and instantiates game room.

Betting

Step 03

Secure token reservation via Payment Service.

Gameplay

Step 04

Real-time state synchronization via Socket.io.

Payout

Step 05

Winner determined by server; funds released to wallet.

Flow Analysis

The competitive gaming loop.

Discuss this Project
← Back to Projects Contact Me →