What Happens in the 300 Milliseconds Between “Spin” and the Result
Pressing spin sends a request to a remote game server. The server draws a number, maps it to reel positions, debits your stake through the operator’s wallet, writes the round to a regulated log, and returns a finished result. Only then does the client start the animation. Everything that decides the outcome is over before the first frame renders.
Most explanations stop at the random number generator, which is the least interesting part of the chain. The hard problem is money crossing two or three company boundaries in under a second with no acceptable failure mode, and it is the first thing that separates the top online casinos ranked for reliability from the ones that quietly lose a balance and open a support ticket.
The chain of calls one spin triggers
The client is a display layer. The stake and session identifier travel to the game server, which calls the RNG, maps the value through the reel strips, evaluates the result against the paytable, updates the balance and returns the complete outcome to the browser.
In an aggregated setup that chain crosses more systems than the player imagines. The game supplier’s server calls the aggregator’s balance endpoint when the game loads, then a bet endpoint when the player stakes. The aggregator verifies the session token, forwards the request to the operator, which checks funds, decrements the balance and returns the new figure back up the chain to the supplier. A win triggers a second call in the opposite direction.
So a single spin is typically three to five network hops, two ledger writes and one RNG draw, all inside the window where a person still feels they caused the thing that happened.
Why the animation arrives after the decision
Because the server owns the outcome and the client owns the theatre, and regulators have made that separation explicit. The UK Gambling Commission’s remote technical standards have required a minimum 2.5 second game cycle for slots since 31 October 2021, extended to five seconds for other casino games from 17 January 2025 under RTS 14G. RTS 14E separately forbids any feature that lets a customer shorten the wait for the result, which rules out turbo, quick spin and slam stop across all remote games.
The practical consequence is that a stop button, where one still exists, terminates an animation rather than a computation. Sequential reel stops build anticipation; they do not give the result another chance to change. The presentation layer is padding a decision that finished in a fraction of the mandated cycle time.
Idempotency is the part that saves the balance
A dropped response is not a rare event at scale, and the retry that follows is where double debits are born. The defence is a transaction identifier the operator must treat as unique. Wallet calls have to be idempotent: two requests carrying the same transaction UUID must never be processed twice, and every duplicate has to receive the identical response. Balance lookups are usually exempt, since re-reading a balance costs nothing.
Retry behaviour is bounded rather than infinite. A typical published policy is three attempts with a one second timeout after a network failure such as a 502, a socket timeout or an unresolvable host. A duplicate that arrives with a different amount, currency, round or user gets rejected as a conflict rather than silently accepted, which is the difference between a replay and a bug.
There is a subtler rule that catches most first integrations. Session token expiry must not be validated on wins and rollbacks, because those calls can legitimately arrive after the bet has already been played and the session has gone stale. Enforce expiry there and you will strand real money in closed rounds.
Where the latency budget actually goes
The usability thresholds are well established. Under 100 milliseconds a system feels instantaneous, and up to one second the user notices the delay but their flow of thought holds. A spin has to land inside that second including every hop above, which is why aggregators run regional infrastructure and require a separate integration per operating region, each with its own API base URLs and operator identifiers, and each with the operator’s server IPs whitelisted in advance.
The animation is what absorbs the variance. A round that resolves in 180 milliseconds and one that resolves in 600 look identical to the player, because both finish well inside a 2.5 second reel sequence.
Logging sits on the critical path, not after it
In the Netherlands the log is not a convenience, it is a legal object. The Kansspelautoriteit requires licensees to record play data near real time in a separate system, the controledatabank, to which the regulator and other supervisors must be granted access. Article 4.42 of the Besluit kansspelen op afstand requires that database to sit physically in the Netherlands, and licensees cannot overwrite or amend what it holds.
That constraint shapes the write path. The round record has to be durable before the result is safe to show, not queued for a nightly batch.
When the wallet does not answer
Rollback is the release valve. A reversal references the original transaction, so the operator can identify exactly which debit to unwind, and failed credits belong in a reconciliation queue rather than being dropped. The harder cases are interrupted rounds, and the standards diverge by market. Game state has to be persisted server-side atomically at the point of wager commitment, with outcome, state transition and credit all logged before anything reaches the player’s device. AGCO’s better-outcome-for-the-player rule is the strictest fallback of the three major frameworks, and building to it satisfies the UKGC and MGA stake-return positions for pre-outcome interruptions.
Build for the disconnect and the happy path takes care of itself. Build for the happy path and the disconnect becomes a support ticket with a balance attached.
Which part of the chain has cost you the most engineering time: the idempotency contract, the round recovery policy, or the regional latency?

The Shipment That Turns an Ordinary Highway Into a Moving Puzzle
Payment for Order Flow
AI Film maker: Turn One Idea Into a Finished Short Film