-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UI] Reduce number of backend requests from the UI (SUGGESTION: Forecast-based, not empirically confirmed) #36
Comments
@wwerner Would this use expiration headers to prevent stale state? What would the appropriate timeout be? For the initial version we shouldn't worry about this but the issue should remain for later decision making. This will need to scale in the near term. |
The simple option is to reload data from the client from time to time, either scheduled or tied to specific user actions. A cool alternative would be to leverage SSEs (which seems to be supported in |
This will be handled by #147 |
Now in the new Svelte UIThis suggestion and forecast (not yet an issue) is now more accessible because of #147 being done. However, consider some tradeoffs.
|
This can later be achieved by doing something like this: Tim Raderschad: Modern fetch in svelte using stores |
Currently, most things the UI requires are queried from the backend each time they are required.
This includes:
While this makes state management between client and server easier, it is more chatty then stricly required.
Since the payloads are rather small, this is not a big issue now, but we should probably discuss the trade-off between state management complexities and responsiveness of the UI and network load.
The text was updated successfully, but these errors were encountered: