johntube
started a topic on Mon, 21 September 2015 at 4:50 AM
I have been looking at AWS DynamoDB's best practices and limits documents (also Item Collection Size limit).
Without the need to know the whole architecture behind PlayFab, guessing what SharedGroups/TitleData/UserData/PublisherData really represent is important in order to have an idea about their limits.
I might be wrong but SharedGroups/TitleData/UserData/PublisherData are "Tables" and their entries are "Items". I think PlayFab chose string as the DataType for all Items except UserStatistics entries which are Numbers. So PlayFab is only using "Attributes" for the predefined items in their built-in systems like Inventory, Characters, Currency etc.
Here is what I know right now:
SharedGroupDataRecord, UserDataRecord and other data records:
max size of key, max bytes, type string ==> max characters,
max size of value, max bytes == 400KB, type string ==> max characters
I think the 400KB is max key+value combined.
"For attribute values that are of type binary, the application must encode the data in base64 format before sending it to DynamoDB. Upon receipt of the data, DynamoDB decodes it into an unsigned byte array and uses that as the length of the attribute." from DynamoDB Limits doc....so we should not take into consideration the Base64 overhead?
max # of records (SharedGroup/User/Title/Publisher): infinite? "No practical limit in number of bytes or items." or "For a table with local secondary indexes [...] The maximum size of any item collection is 10 GB" from DynamoDB Limits doc.
max # of SharedGroups per publisher/title/user : infinite?
I'm waiting for PlayFab to release their limits per Plan. All that I know right now is:
max API calls per RunCloudScript call (<10 according to this video) "Maximum concurrent CreateTable/UpdateTable/DeleteTable API requests" from DynamoDB Limits doc.
max API call response size (<1MB according to this video), payload only? "The result set is limited to 1 MB per API call." from DynamoDB Limits doc.
max returned GetXData items/size: "BatchGetItem item maximum per operationUp to 100 items retrieved. The total size of all the items retrieved cannot exceed 16 MB." from DynamoDB Limits doc.
max API calls frequency (Parse: up to 30req./s free) ?