Features of XBOX services Title Storage
XBOX services Title Storage includes the following high-level features.- Can be shared across players, titles, and various platforms
- Supports JSON, binary, and configuration files
Types of storage
Throttle limit
There are no limits to how many reads and writes a title can make per minute, but it generally can’t make more than one per minute on average, per one-hour session. For example, a title can make 60 reads or writes at the beginning of a session, but no more for the remainder of the hour. Titles should be hardened against making more calls later, in case XBOX services needs to throttle the requests.If your title has special partitioning requirements, such as extra reads or writes, contact your Microsoft representative.
Types of data
This section describes the three supported types.Binary information
Binary information includes things like images, sounds, and custom data. Because the data must be transmitted over HTTP, binary data must be encoded into characters that HTTP accepts. For example, you can convert the data to hexadecimal strings, or use base64 encoding. Title Storage doesn’t process encoded data, so your game must use the same scheme for encoding and decoding data when reading from and writing to Title Storage.JSON information
JSON information includes structured data (key-value pairs). You can use JSON objects in languages that support them, like JavaScript. When you retrieve data from JSON files, the game can supply aselectQuery parameter to return specific items within the structure. For example, you could use a JSON file that contains the following information.
For security purposes, the first element of the JSON data must not be an array. JSON data submitted with an array at the root is rejected by the service.
selectQuery (for example, weapon.name), and then it receives the following:
Configuration information
Configuration blobs are data structures that are stored in global title storage. The format of a configuration blob is similar to that of a JSON object. Configuration blobs can include virtual nodes that return a setting from a list of possibilities. Virtual nodes are useful for providing settings for specific situations such as for a title or locale. The virtual node includes several possible settings along with values and conditions for selecting from the values. In the following example, thedefaultCardDesign setting can have one of the values in the virtual node.
\_sourceNodes array. In this case, the item is selected based on the game’s title ID. For example, players playing the game 12456799 would see the following:
customSelector parameter to select which item to return. For example, to get the second option, a game requests gameMode.serious as a selectQuery.
To get started using XBOX services Title Storage
- Determine which kind of data you want to store. Examples include saved games, game state, daily challenges, game maps, and art resources.
- Determine what titles and platforms need to access the data. Title Storage supports cloud data access from a single title on a single platform, and from multiple titles on multiple platforms .
