question

juanrodriguezgiles avatar image
juanrodriguezgiles asked

Content Title Data Versioning

For our mobile game we are working on storing content title data locally so we don't have to download it every time the player opens the app. We are making sure to handle sensitive data through CloudScript to minimize the chances of cheating. Caching our content title data poses the following question: is there a way for the client to check if the title data has been updated on the server?

apisTitle 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

·
Neils Shi avatar image
Neils Shi answered

You can create an additional pair of key-value pairs to store version information, then players can use API GetTitleData to get this specific KVPs and check if the Title Data has been updated. Since Title Data is sharded and cached, it can take a significant amount of time before all servers are returning the new value. And during that time, depending on which cache services the request, the client could get the old value or the new value.

2 comments
10 |1200

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

juanrodriguezgiles avatar image juanrodriguezgiles commented ·

Thank you, regarding the use of GetTitleData i assume it is faster to request only 1 key versus requesting all of them right?

0 Likes 0 ·
Neils Shi avatar image Neils Shi juanrodriguezgiles commented ·

Yes, requesting only 1 key is faster than requesting all keys. And the client only needs to request the key-value pairs which store the version information.

0 Likes 0 ·

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.