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

Append wait time or rate for every thread due to server limits #166

Open
latot opened this issue Jun 7, 2023 · 1 comment
Open

Append wait time or rate for every thread due to server limits #166

latot opened this issue Jun 7, 2023 · 1 comment

Comments

@latot
Copy link

latot commented Jun 7, 2023

Hi, actually some server has some limits, is hard to tell a server too much requests and in some ones the rate can be very low.

I think would be great be able to set a strategy to be able to handle this, some ideas:

  • Set a rate of request per second
  • wait some time after complete a request

I think would be pretty useful implement something like this.

Thx!

@spyoungtech
Copy link
Owner

I think this would be a very useful feature. I've looked at some existing implementations of rate-limiting and I was a bit overwhelmed by the number of different ways rate-limiting can be implemented.

It's not clear to me if any one rate limiting strategy stands out as more useful in the context of grequests than others. I suppose the rate limiting a user would want grequests to use depends on how the server implements rate limiting.

In any case, I'd like to figure this out and get it implemented.

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

No branches or pull requests

2 participants