The Backend of LuckTrainingRoadmaps

Online Poker Platform Architecture (Chapter 11)

Online Poker Platform Architecture (Chapter 11) An architecture diagram generated by Archify. Players · desktop, web, mobile · Architecture component Players desktop, web, mobile Edge · CDN + load balancer · Architecture component · WS routing Edge CDN + load balancer WS routing API Gateway · auth + WS upgrade · Architecture component · < 10ms API Gateway auth + WS upgrade < 10ms RNG Service · certified shuffles · Architecture component · < 5ms RNG Service certified shuffles < 5ms Game Server Cluster · cash, tourney, sit&go · Architecture component · < 50ms/action Game Server Cluster cash, tourney, sit&go < 50ms/action Auth Service · session tokens · Architecture component Auth Service session tokens Payment Service · rake, buy-in, cashout · Architecture component Payment Service rake, buy-in, cashout Redis · sessions, table state · Architecture component · < 2ms reads Redis sessions, table state < 2ms reads PostgreSQL · hands, players, txns · Architecture component · < 20ms writes PostgreSQL hands, players, txns < 20ms writes Message Queue · RabbitMQ / Redis Streams · Architecture component Message Queue RabbitMQ / Redis Streams Data Warehouse · analytics, audit · Architecture component Data Warehouse analytics, audit Security Service · bot + collusion · Architecture component · async Security Service bot + collusion async HTTPS / WSS WS upgrade authenticated actions shuffle request session validation table state, sessions buy-in / cashout hand events ledger writes persisted hands / txns analytics feed consume + score Legend Backend Database Cloud Security Message bus External

Six Subsystems

  • • Client, edge, application, service, and data tiers each carry distinct latency budgets
  • • Game server clusters split by format: cash games, tournaments, sit-and-go
  • • A player action must round-trip in under 200ms end to end

Fairness and Security

  • • RNG service delivers certified shuffles in under 5ms
  • • Anti-cheat consumes the hand-event stream asynchronously so bot and collusion scoring never blocks play
  • • Collusion detection flags fold-to-raise outliers beyond 2 standard deviations

Data and Audit

  • • PostgreSQL is the system of record for hands, players, and transactions
  • • Redis holds sessions and active table state for sub-2ms reads
  • • Message queue events feed the warehouse for replay and full auditability