The Backend of LuckTrainingRoadmaps

Dashboard Control Plane for 100 Casinos (Chapter 47c)

Dashboard Control Plane for 100 Casinos (Chapter 47c) An architecture diagram generated by Archify. CDN / WAF · public edge · Architecture component CDN / WAF public edge API Gateway · routes to casino cells · Architecture component API Gateway routes to casino cells Casino Capacity Cells · 10-20 cells, 5-10 casinos · player data plane: millions of clients, high RPS · casino_id + jurisdiction Casino Capacity Cells 10-20 cells, 5-10 casinos casino_id + jurisdiction PostgreSQL Shards · wallet + player data · player data plane: millions of clients, high RPS PostgreSQL Shards wallet + player data Kafka Topics · per-cell event backbone · player data plane: millions of clients, high RPS Kafka Topics per-cell event backbone OLAP Read Models · bounded lag reads · operator control plane: hundreds to low-thousands of operators OLAP Read Models bounded lag reads Aggregate Writers · events to read models · operator control plane: hundreds to low-thousands of operators Aggregate Writers events to read models Redis / Valkey · session + hot-key cache · operator control plane: hundreds to low-thousands of operators Redis / Valkey session + hot-key cache Dashboard API · authorized aggregate views · Architecture component Dashboard API authorized aggregate views Operator Dashboard · state, alerts, drill-downs · Architecture component Operator Dashboard state, alerts, drill-downs Realtime Gateway · filtered live updates · Architecture component Realtime Gateway filtered live updates HTTPS casino_id + jurisdiction route wallet + player writes durable events consume events aggregated read models materialized counters low-latency + drill-down reads filtered live stream authorized aggregate views live alerts, no polling player data plane: millions of clients, high RPS operator control plane: hundreds to low-thousands of operators Legend Frontend Backend Database Security Message bus

Two Planes, Different SLOs

  • • Data plane: sessions, bets, wallet writes at scale
  • • Cells also write session state into Redis
  • • The wallet ledger is never allowed to go stale

Cell-Based, Not Monolithic

  • • 100 casinos split into 10-20 cells
  • • Routing key: casino_id plus jurisdiction
  • • Rollback happens per cell, never globally

The Line That Doesn't Exist

  • • Player browsers never touch the dashboard
  • • Every record needs tenant, casino, cell id
  • • Unscoped records are unsafe at this scale