Realtime Platform Architecture
High-concurrency cloud infrastructure linking Flutter mobile apps, Laravel REST APIs, Redis in-memory caches, MySQL ACID ledgers, and low-latency WebSocket gateways.
API services and realtime communication connect mobile play with platform operations.
The source architecture connects the Flutter mobile client to Laravel backend services through an API layer, with MySQL and Redis in the platform data tier and WebSockets/Pusher supporting realtime multiplayer communication. Payment, notification and administrative surfaces sit around that core.
Mobile client communicates with Laravel backend services via API for authentication, catalog queries, and profile data.
Core Architectural Specifications
Dual Protocol Strategy
HTTP REST handles stateless transactional workflows (auth, profile updates, payments), while persistent WebSockets manage stateful in-game turn events and room broadcasts.
In-Memory Redis Pub/Sub
Redis provides in-memory queue coordination, tournament lobby caching, and event bus distribution across WebSocket gateway worker nodes.
Relational Ledger Persistence
MySQL maintains relational persistence with transactional consistency for wallet balances, match records, and administrative audit trails.