question

romangolenok avatar image
romangolenok asked

Caching Internal title data

We are trying to implement "in maintenance" feature. And for that we created internal title data row with information that currntly we are updating our data and scripts and when it will be finished.
So clients send request via CloudScript for getting information and if "in maintenance" now - Showing UI with information about it.

Problem:

Some requests can retrieve old info, if I send 10 times request - 50% will be with wrong info. Is it caching title data? How we can reset caching or maybe you can say how we can do "in maintenance" in another way ?

CloudScriptTitle 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.

brendan avatar image
brendan answered

Yes, Title Data is a cached (and sharded) resource. So when you update Title Data, there will be a delay before all endpoints are updated, based upon the TTL of the data store. We're actually working on reducing that delay time this quarter.

If you have a known window for maintenance, or can schedule it at least a few minutes ahead of time, the best bet right now would be to put the maintenance window time into the Title Data entry, so that regardless of whether the client gets that data before the window, it knows to only display the notice during that time period.

10 |1200

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

Seth Du avatar image
Seth Du answered

How often do you request for title data? Title data is not designed for frequent use. In addition, is "wrong info" you mentioned the previous data in that field?

In normal circumstance, after players login successfully, there will be a process that checks server status. If the server is under maintenance, a dialog may pop up to inform players then the application can process a restart so that the game client will not request for title data frequently.

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]