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

Option for API-RATE-LIMITER for interservice http request #1427

Open
aryanmehrotra opened this issue Jan 22, 2025 · 2 comments
Open

Option for API-RATE-LIMITER for interservice http request #1427

aryanmehrotra opened this issue Jan 22, 2025 · 2 comments
Assignees

Comments

@aryanmehrotra
Copy link
Member

aryanmehrotra commented Jan 22, 2025

Is your feature request related to a problem? Please describe.
When connecting to an external service for example: zoho - they have a limit on how many request should be sent per min or per sec etc.
Which the user would need to implement separately i.e a queue.

Describe the solution you'd like
Similar to default headers, basic auth etc we should have an option to queue the api calls based on the setting defined.

Describe alternatives you've considered
Alternatively I will write the code myself to rate limit outgoing calls

Additional context
Usage would be something like:

app.AddHTTPService("zoho", app.Config.Get("ZOHO_HOST"),  
&gofrSvc.APIRateLimit(10, time.Duration(1)*time.Second))

Reference : https://www.zoho.com/billing/api/v1/introduction/#api-call-limit

@vaidehiadhi
Copy link
Contributor

@Umang01-hash can you please assign this issue to me

@Umang01-hash
Copy link
Member

Sure @vaidehiadhi done.

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

3 participants