GazillionBets·Guides·Architecture

How to build online casino software

A pragmatic architecture guide to online casino software — RGS design, math-led development, RNG certification, integration paths and the ops you cannot fake in production. Written for operators, aggregators and engineering leads evaluating casino software solutions or planning to build their own.


1. The stack at a glance

Online casino software looks deceptively like a normal web product: a client, a server, a database, a payments rail. The difference is that every round is a regulated financial event. That forces a specific shape:

  • Game client — a renderer. It shows outcomes; it never decides them.
  • Remote Game Server (RGS) — the brain. Owns RNG, math, session state, anti-cheat and round signing.
  • Wallet / aggregator integration — debits stakes, credits wins, reconciles in real time.
  • Reporting and audit pipeline — round-level events shipped to a warehouse the regulator can inspect.
  • Back office — RTP toggles, jurisdictional flags, feature gates per operator.

If any of those five collapse into "we'll add it later," the project will not survive certification.

2. RGS architecture

The RGS is the load-bearing wall of any casino software stack. It must:

  • Generate every outcome from a certified RNG, server-side.
  • Sign each round so the client (and a future auditor) can verify that the result it rendered is the result the server emitted.
  • Persist round state idempotently — a wallet timeout cannot double-spend, and a client reconnect cannot replay a round.
  • Expose RTP, stake limits and feature flags per jurisdiction / per operator, hot-reloadable.

A reasonable target is one stateless RGS process per game, fronted by a thin gateway that handles auth, session and rate limiting. The math engine sits inside the RGS as a pure function: resolve(state, rng) → outcome. Pure functions are why you can regression-test math at all.

3. Math-led design

In serious casino software, math comes first. The payout table, RTP variants (typically 92 / 94 / 96), feature trigger frequencies and volatility curve are designed and locked before the art department renders a single symbol. Reasons:

  • Certification labs (GLI, BMM, iTech Labs) test the math, not the theme. Re-skins are cheap; re-math is a new submission.
  • A game's commercial behavior — hold, session length, hit frequency — is a property of the math, not the visuals.
  • Versioning math the way engineers version code means you can regression-test a feature change against a billion simulated spins in CI.

Concretely: store the math model as a versioned artefact (typed config + simulation harness), and require a simulation report on every PR that touches it. If math drifts in production, you do not get to find out from players.

4. RNG and certification

The RNG must be cryptographically sound and independently certified for each jurisdiction. In practice that means:

  • A CSPRNG seeded from a hardware entropy source, not Math.random().
  • Statistical test suites (NIST SP 800-22, Dieharder) run in CI, not as a one-time exercise.
  • Lab submission packs: math sheet, PAR sheet, simulation report, RNG source and binary, build reproducibility instructions.
  • A clear "what changed since last certification" diff so each resubmission is incremental, not a full re-cert.

5. Wallet and integration

You are not shipping a game; you are shipping an integration. Most operators expect one of:

  • A wallet API (Open Wallet, SEAMLESS, aggregator-specific) where stake/win round-trips happen synchronously per bet.
  • A transfer wallet where balance is shifted into the game session and reconciled on exit.
  • Aggregator integration (Relax, Pragmatic Hub, BragG, EveryMatrix) that abstracts the wallet but adds its own certification queue.

Whichever you pick, design for: idempotency keys on every wallet call, a reconciliation job that catches dangling debits, and round-level reporting that operators can read in real time — not a nightly CSV.

6. The game client

The client is a renderer. In 2026 it should be web-first (WebGL/WebGPU via Pixi, Phaser, or a custom renderer), shipped as a single bundle that can launch in an iframe with a session token. Two non-obvious rules:

  • The client never computes outcomes. It receives a signed result and animates toward it.
  • The client must survive disconnect. A reconnect always replays the last unresolved round from the RGS, never from local storage.

Design every winning moment so it is legible at 9:16 with the sound off. In a world where titles live or die by a 15-second clip, this is a software requirement, not a marketing one.

7. Compliance, RG and jurisdictional flags

Responsible Gaming (RG) controls and jurisdictional rules are first-class features, not flags bolted on at the end. Build the RGS to enforce, per session:

  • Max stake, max win, autoplay limits.
  • Mandatory reality checks (UK, NL).
  • RTP variant per jurisdiction (Germany caps at 96, MGA leaves it open).
  • Self-exclusion and cool-off honoured at the session layer.

8. Observability and round-level data

Casino software fails in ways normal web apps do not: a math bug that drifts the hold by 0.3% costs real money before it shows in a dashboard. Instrument round-level:

  • Realised RTP per game / per operator / per hour.
  • Feature trigger rates vs. expected math.
  • Wallet round-trip latency (p50/p95/p99).
  • Disconnect / round-resume rate.

Alert when realised RTP diverges from expected math beyond the configured tolerance for the volume you have. That is the canary that catches math regressions before regulators do.

9. Realistic timeline

For a first regulated title from scratch, a credible plan looks like:

  • Months 1–3: RGS scaffolding, math harness, RNG + CI test suites, wallet stub, back-office MVP.
  • Months 3–9: first game — math design, math lock, client implementation, internal cert dry-runs.
  • Months 9–12: lab certification, RNG cert per jurisdiction, aggregator integration and UAT.
  • Months 12–18: live in two regulated markets, round-level observability tuned, second title's math already designed.

Anyone selling you "casino software solutions" that ship in three months is selling you a reskin on top of someone else's RGS — which is a valid commercial choice, but a different product.


Where GazillionBets sits

GazillionBets is an internet-native iGaming studio building original math, server-authoritative outcomes and clip-ready presentation. Our first title, Million Match, is engineered against the architecture above end-to-end. If you are evaluating providers or building in-house, our guide to choosing an iGaming software provider is the companion to this one.