question

brendan avatar image
brendan asked

Saving binary player data

Andy
started a topic on Wed, 15 April 2015 at 4:20 PM

Any best practices on saving binary game data for a user? Convert to text and save via UpdateUserData? If so, what are the size limits on saved user data if any? Performance implications?

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

Best Answer
Brendan Vanous said on Wed, 15 April 2015 at 6:02 PM

We'll be adding more specific storage functionality for user-related binary data in an upcoming sprint. For now, yes, the recommendation would be to store this as an encoded string. The user data storage is in DynamoDB, which has a limitation of 400KB, which works out to just over 200,000 characters in a string. The performance limitations on this are effectively the same as you would get for any other Web API call - mainly the time to send the request and receive the response, but also (in this case) the processing time needed on the client to encode/decode the string, as well as concatenate the binary, if necessary.

How large of a file are you looking to store?

Brendan


3 Comments
Brendan Vanous said on Wed, 15 April 2015 at 6:02 PM

We'll be adding more specific storage functionality for user-related binary data in an upcoming sprint. For now, yes, the recommendation would be to store this as an encoded string. The user data storage is in DynamoDB, which has a limitation of 400KB, which works out to just over 200,000 characters in a string. The performance limitations on this are effectively the same as you would get for any other Web API call - mainly the time to send the request and receive the response, but also (in this case) the processing time needed on the client to encode/decode the string, as well as concatenate the binary, if necessary.

How large of a file are you looking to store?

Brendan


Andy said on Wed, 15 April 2015 at 6:39 PM

We're not sure yet, but probably more on the megabyte level. Do you have any plans to support this sort of storage? It wouldn't necessarily need to be in DynamoDB, maybe just more generic binary file storage through aws.


Brendan Vanous said on Wed, 15 April 2015 at 7:03 PM

Yes, we do plan to offer storage more targeted at binary data, specific to user data storage. I don't have a specific date for that as yet, but if you have a target date you're working towards, feel free to let us know at devrel@playfab.com.

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.