-
Notifications
You must be signed in to change notification settings - Fork 11
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 spams backend with requests #325
Comments
The UI is calling the endpoints for populating the tables every 10 seconds so the user visualizes its data if there is any change in the backend without the need to refresh the browser manually. I expect the server supports at a minimum a couple of hundred of users and the fact that the server was killed because of this should make us investigate the bottom of the real problem. In the context of the Search Page:
Having said that, I will reserve some time to double-check which calls can be optimized |
Right. How often to we expect data to change? How many requests per second will keeping a UI open like this cost? Is that worth the effort? Doing the math: 4 tabs, times 10 results each, leads to 40 requests every 10 seconds. For data that most likely doesn't change. I'd say, that's not worth it. True, we can deal with this on the backend, e.g. by just caching results and giving the UI the impression it just performed a request. Downside of this: this would cause additional work on the backend, and it would give users not spamming the backend, stale data. So I'd say, we do better, and optimize the UI. |
A few observations:
|
Thanks James, you make lots of good points above. Before do any analysis work I think we need to get to a stable data model. If we can get an upstream 0.2.2 release published today, then we can build a new downstream from that, and use that to start analyzingperformance. There are other issues that are concerning 303 and 1236. If we have a lot of duplicates in the database the performance is bound to suffer. |
the data model is not going to change very much from here on out - there are defo optimisations we can make to speed up parity work (and ingestion) which I have ignored in priority of other work ... after external references I plan to work with the team on that.
I believe that is happening right now.
I believe those issues probably addressed by trustification/trustify#1237 (and now in main and will go into todays release). |
To me, it looks like the frontend spams the backend with continuous requests, although just the search results page is opened:
This problem is, that a single UI instance seems to bring down the backend already:
For example, it continously re-requests information about PURLs:
GET https://trustify.dentrassi.de/api/v2/purl/8384d853-38ff-5bd9-bb7b-07b0b49c6bf5
Why is it doing that?
The text was updated successfully, but these errors were encountered: