Skip to content
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

[Webinterface] After mainnet, revisit polling #146

Open
rfornea opened this issue May 30, 2018 · 2 comments
Open

[Webinterface] After mainnet, revisit polling #146

rfornea opened this issue May 30, 2018 · 2 comments

Comments

@rfornea
Copy link
Contributor

rfornea commented May 30, 2018

There are probably many solutions to this problem. Long term there may be iota events we can listen for, but that's a ways away.

But currently, requests to the iota node can "pile up" before any of them complete. My suggestion is wait for polling requests to complete before issuing subsequent requests. It would be better if we would wait for each poll to come back, before polling for the same iota addresses again. Basically still poll, but just not on a strict interval, and don't issue subsequent GETs to iota node until the previous has resolved.

Discuss other options in the comments.

@AaronVasquez
Copy link
Contributor

Is the problem that we don't wait for a response before polling again? Or are we just making too many requests in general?

@rfornea
Copy link
Contributor Author

rfornea commented May 30, 2018

I think it is likely a combination of both. Even with a decrease in the amount of polling they still seem to be bogging down.

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

No branches or pull requests

2 participants