Feature #1245
Reduce frequency of GET requests for UI updates
Status: | Closed | Start date: | 09/22/2011 | |
---|---|---|---|---|
Priority: | Low | Due date: | 11/11/2011 | |
Assignee: | Kostas Papadimitriou | % Done: | 0% |
|
Category: | Cyclades UI | Spent time: | - | |
Target version: | v0.8.0 |
Description
Please explore two ways to reduce the frequency of GET requests for UI updates:
a) is it possible for the UI to detect window/tab hide/unhide events? there is no reason to update the UI when it is not visible.
b) is it possible to increase the time between consecutive requests, perhaps if no updates have been received for a while? Say, whenever there's an update, the requests happen at intervals of 1s, 1s, 2s, 5s, 10s, and then every 10s.
The intervals should be configurable.
Associated revisions
Improved updateHandler object, Refs #1245
- Optionally dynamicly increased interval by specified value
- Event triggering/handling for recurrent API events
A more sophisticated approach on UI update intervals, Refs #1245
Dynamically updated intervals of recurrent api calls.
- Start updating on UI_UPDATE_INTERVAL intervals.
- Increase interval by UI_UPDATE_INTERVAL_INCREASE after
UI_UPDATE_INTERVAL_INCREASE_AFTER_CALLS_COUNT notmodified responses.
Increase should stop when UI_UPDATE_INTERVAL_MAX is reached.
- On non notmodified responses and other api requests set interval
to UI_UPDATE_INTERVAL_FAST and continue by increasing it.
History
#1 Updated by Vangelis Koukis over 12 years ago
- Due date set to 11/11/2011
#2 Updated by Kostas Papadimitriou over 12 years ago
- Status changed from Assigned to Feedback
A more sophisticated approach on UI update intervals has been commited on 1cc6e94
the intervals are now dynamically set by the following rules,
- Start updating on UI_UPDATE_INTERVAL intervals.
- Increase interval by UI_UPDATE_INTERVAL_INCREASE after
UI_UPDATE_INTERVAL_INCREASE_AFTER_CALLS_COUNT notmodified responses.
Increase should stop when UI_UPDATE_INTERVAL_MAX is reached. - On non notmodified responses and other api requests set interval
to UI_UPDATE_INTERVAL_FAST and continue by increasing it (step 1).
#3 Updated by Vangelis Koukis over 12 years ago
- Status changed from Feedback to Closed