-
Notifications
You must be signed in to change notification settings - Fork 261
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
Add Rate Limiting Support #100
Comments
@thinkingserious . I would like to help with this. But I am not sure I understand this issue completely. Isn't the rate limit already implemented for the SendGrid API? i.e. - https://api.sendgrid.com/v3/resource HTTP/1.1 Or are you looking to implement the rate-limiting logic in the sendgrid-go codebase ? |
Hi @tariq1890, We are looking for a solution similar to this one. I hope that helps! With Best Regards, Elmer |
This isn't a good idea! This is one kind of error that the user must handle. |
Thanks for the feedback @leandro-lugaresi. Since we have users asking for this, I like the idea of making it optional and off by default. I also think we should document how this could be handled by the user as you suggest here. Would you be interested in making a PR for documenting best practices? That would at least be a medium task for hacktoberfest. With Best Regards, Elmer |
I can make this PR but first how we will handle the rate-limit? |
Yes. If I understand what Elmer said, by default we will just return a 429. The users can a use a flag if they want to sleep and retry on reaching rate limit. |
@thinkingserious This requires a change in the rest repository rather than sendgrid-go I also see that there is this issue #94 where you guys are planning on phasing the dependency out. I can continue working on this once issue #94 is closed. |
We would like to add support for v3 Web API rate limits, as described here.
How would you like this to be implemented? Or please give a thumbs up to express your interest in us implementing to move this task up our queue.
PRs are always welcome as well :)
The text was updated successfully, but these errors were encountered: