Hi, im looking into using GroupShared Data to store a gameState given by Photon's RoomClosed webhook. The problem is, Shared data looks like it limits the number of key/value pairs to 5 per request. A photon state is passed as an object with between 10-20 key/value pairs within the state property. Am i reading this wrong? Is the state object passed by photon only viewed as one key/value pair? If not, whats the best method to go about storing a photon game state? Thanks.
Answer by Brendan · Feb 08, 2018 at 02:25 AM
The Photon webhook call is to a handler in the Cloud Script in your title, so regardless of how it's passed in, you could collapse the data down to just what you need or just a few keys. But the question is, what specifically are you using this data for? Please bear in mind that Shared Group Data is only designed for use by a small number of players. If many players were to be trying to read from this data store, that could get your title throttled or blocked. We do have a new data system we'll be releasing shortly which will be usable by larger groups.