Stateful Cloud Code
Persist game state across Cloud Code function calls using scopes, serialization, and timers.
Read time 1 minuteLast updated 2 days ago
By default, Cloud Code is stateless, meaning each function call runs independently and doesn't retain data from previous calls. Stateful Cloud Code lets modules persist data for individual players or multiplayer sessions, so you can build server-authoritative logic for games such as card, puzzle, and idle games without managing your own storage.