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

Client side sync rate limiting #101815

Closed
roblourens opened this issue Jul 6, 2020 · 2 comments
Closed

Client side sync rate limiting #101815

roblourens opened this issue Jul 6, 2020 · 2 comments
Assignees

Comments

@roblourens
Copy link
Member

Verifying #99102

A couple things, first when I trigger this by executing "Sync Now" a lot of times, I get two notifications

image

The second is good but the first has no context and seems redundant.

Also I'm just wondering in what scenarios would the user see this? Clearly if I run that command 100 times in a row something weird is going on, but is it also possible that I could see it just from editing my settings.json many times quickly? In that case, what am I supposed to do about that and how do I reenable Sync? This has probably been discussed a bunch already but did you consider doing something quieter like debouncing sync with a larger timeout? Or, if this would probably only happen as the result of some weird bug, it's probably fine to get in the user's face like this.

@sandy081
Copy link
Member

sandy081 commented Jul 7, 2020

First message is an error notification for the operation (Sync Now) user performed manually has failed.

I do not think it is practical that a user performs this operation continuously. This can also happen if someone tries to initiate sync every 5s with a setting change. In this case user will see only second notification. Again this is not practical.

If user hits a client side rate limit without doing any non-realistic scenarios, then the client has some issue which has to be reported. So I do not think user shall be seeing this unless in an extreme unrealistic scenarios.

@sandy081 sandy081 closed this as completed Jul 7, 2020
@roblourens
Copy link
Member Author

Ok, the 2 notifications makes sense. One realistic case for making lots of settings.json edits that I can imagine is someone continuously tweaking colors (eg workbench.colorCustomizations) for a couple minutes. But they would have to be doing it very frantically and I guess we should wait and see whether it actually happens.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants