question

Mihail Ilinov avatar image
Mihail Ilinov asked

Uploading save game data to playfab

Hello,

We are testing playfab as option for user database and save game database.

It's a mobile single player game at the moment the whole game state is saved in .json file which depending on the game progress can vary between 7kb and 30kb.

We want to upload the .json file (all the content as text) in playfab Player data that way it can be checked and edited if needed later on.

We don't want to create each save game key as they can be hundreds in a single playfab key value pair. The goal is to have something like "save_data": "{all of the json text content}".

Base on some questions and posts around the internet I saw that there are a request limit of 100 bytes?

Is this correct or is it for some concrete cases?

Also is saving 30kb every minute (autosave) for a mobile game a valid approach (possible target audience of thousands of players).

As we just started with playfab any guidelines or best practices for saving syncing mobile games with playfab are welcome.

Player 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

·
Citrus Yan avatar image
Citrus Yan answered

>>Base on some questions and posts around the internet I saw that there are a request limit of 100 bytes?Is this correct or is it for some concrete cases?

Regarding the request limit you mentioned above, not sure which post/question you were referring to, may I know more details about that? And, in fact, the limit of a single Player data value size is 300,000 bytes (300kb) by default (more limits can be found in the Limits tab in Game Manager -> Title settings), which is sufficient for your use case.

>>Also is saving 30kb every minute (autosave) for a mobile game a valid approach (possible target audience of thousands of players).

That’ll definitely work. Actually, you’ll be fine as long as you don’t exceed the following limits regarding player data:

Player data value updates per 15 seconds

Number of times the same player data value may be updated within a period of 15 seconds.

10 update operations
Player data value updates per 5 minutes

Number of times the same player data value may be updated within a period of 5 minutes.

150 update operations
Player data value updates per hour

Number of times the same player data value may be updated within a period of 1 hour.

1,800 update operations
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.