You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Status is returned for pretty much every API call. Fixes to reduce the overhead.
Make the return of status optional, have an api argument no_status which over-rides the return of the status block. Client can (for example) then only request it if more than (say) 60 seconds have elapsed.
Server can choose to send status anyway if something has changed (e.g. mail has arrived).
For baby empires make the request for baby empires/planets a separate API call. We only need to get the planets for a baby empire when we open the empire in the Right Hand Menu.
The text was updated successfully, but these errors were encountered:
We could turn this around, only send the status block on request. The server could have a cache value for 'significant events' for each empire. A significant event being anything that would change the empire, e.g. an email being read/received, a new colony being created/destroyed, essentia being spend/purchased.
A similar cache value for each body could be created to catch significant events (not, for example normal increase in resources, which can be calculated) but things like more incoming ships, a 'needs_surface_refresh' etc. This cache value would have a modest timeout, say 2 minutes to ensure that it is sent fairly frequently (but not always)
Status is returned for pretty much every API call. Fixes to reduce the overhead.
The text was updated successfully, but these errors were encountered: