question

Canberk Soner avatar image
Canberk Soner asked

Title data caching

I'm aware that title data is cached and we should only use it for infrequently updated stuff, but my current problem is a bit different.

We are using externally hosted game servers (completely under our management) and when these servers go on maintenance, we want to send an error to the clients during their post-login cloudscript call.

Option 1: We can write a maintenance flag to title data. It is not something that is frequently updated, but it is something that needs to be available quickly. Not all maintenance can be planned in advance, so we need to be able to inform the clients asap. Is it possible to purge the title data cache? If not, what kind of delay can I expect until clients get the updated data?

Option 2: We also have an external web API and we can use that to set the maintenance. But this means adding 1 http request (to check for maintenance) to our post-login method. Since I'm already doing a GetTitleData for other stuff (and playfab apis respond quite fast to cloudscript), this cost does not exist for Option 1.

Option 3: Is there an option 3? I don't know, I'm open to ideas!

Title 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

·
JayZuo avatar image
JayZuo answered

Have you checked Brendan's answer here https://community.playfab.com/answers/25894/view.html? I'd believe it's the same question as yours. If Brendan's answer can't meet your requirement, Then you can try with option 2, in my opinion, adding one http request in cloudscript is feasible.

1 comment
10 |1200

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

Canberk Soner avatar image Canberk Soner commented ·

Hi Jay. If the delay is short enough that notifying the maintenance several minutes in advance (as Brendan said in the answer you linked) would be enough, then that is good for us! Thank you.

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.