question

aaron123 avatar image
aaron123 asked

Is GroupShared data big enough for photon state

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.

photonShared Group Data
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

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.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.