Skip to content

Fix retry storm problem in data fetching in visualizer #394

Open
gsoosk wants to merge 1 commit intoalgorithmicsuperintelligence:mainfrom
gsoosk:fix-visuazlier-fetch-and-render-retry-problem
Open

Fix retry storm problem in data fetching in visualizer #394
gsoosk wants to merge 1 commit intoalgorithmicsuperintelligence:mainfrom
gsoosk:fix-visuazlier-fetch-and-render-retry-problem

Conversation

@gsoosk
Copy link

@gsoosk gsoosk commented Feb 5, 2026

This PR addresses an issue in the visualizer/main.js where multiple simultaneous data-fetching requests could be triggered if a previous request had not yet completed.

In scenarios with high latency, limited bandwidth, or large data payloads, the fetchAndRender function could overlap with the next scheduled interval. This led to a "retry storm" or request buildup, unnecessarily taxing the API causing UI to not be able to load the data or crash after some time.

Screenshot 2026-02-05 at 12 23 23 AM

…ests

- Introduced a flag to track ongoing fetch requests, preventing multiple simultaneous calls to the API.
- The problem of retry storm can happen if the data is large or the bandwidth is limited. fetchAndRender does not finish before the next interval and a buildup of requests will happen.
@CLAassistant
Copy link

CLAassistant commented Feb 5, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants