openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

UI code sends high number of requests to backend.

Open meysholdt opened this issue 2 years ago • 1 comments

We just had a case where the loadMore function sent excessive requests to the backend at 45 requests / second:

https://github.com/eclipse/openvsx/blob/25173d633fb5e2417f0583ef304d25ce6a9a58f0/webui/src/pages/extension-list/extension-list.tsx#L102-L134

Request example: image

Proposed solution: If a request returns an error, don't immediately retry.

meysholdt avatar Jul 28 '22 14:07 meysholdt

We should also add rate limiting https://github.com/eclipse/openvsx/issues/502

svenefftinge avatar Jul 28 '22 16:07 svenefftinge