Skip to content

Added support for rate limit per minute - #896

Merged
Ice3man543 merged 4 commits into
projectdiscovery:devfrom
souvikhazra1:master
Aug 2, 2021
Merged

Ice3man543 merged 4 commits into
projectdiscovery:devfrom
souvikhazra1:master

Conversation

@souvikhazra1

Copy link
Copy Markdown
Contributor
  • Added support for rate-limit per minute
  • Updated go.uber.org/ratelimit from v0.1.0 to v0.2.0

@ehsandeep
ehsandeep changed the base branch from master to dev August 1, 2021 20:33
@ehsandeep

Copy link
Copy Markdown
Member

Thank you @souvikhazra1, can you please highlight the use case of rate-limit per minute instead of seconds?

Also, can you please open a separate PR for env file reading support to make it simple for review? please see the related issue - #643

@ehsandeep ehsandeep added the Type: Discussion Some ideas need to be planned and disucssed to come to a strategy. label Aug 1, 2021
@souvikhazra1

Copy link
Copy Markdown
Contributor Author

Hi @ehsandeep, the .env support I don't want to submit now, still working on that, I pushed that by mistake, I have reverted the changes.
For rate-limit per minute the use case is--

  • In the case of an application that has a firewall in front of them blocking very frequent requests, in that case even 1 request per second might get blocked.
  • In case of an application running under dev environment with very limited resources, 1 request per second can cause the application to hang or even crash.

For these type of scenarios I have introduced rate-limit per minute, basically, it is useful for every scenarios where 1 request per second will be too much requests.

@ehsandeep ehsandeep added Status: Review Needed The issue has a PR attached to it which needs to be reviewed and removed Type: Discussion Some ideas need to be planned and disucssed to come to a strategy. labels Aug 2, 2021
@ehsandeep

Copy link
Copy Markdown
Member

thank you @souvikhazra1 for the additional context and update, we will review this asap.

@Ice3man543

Copy link
Copy Markdown
Member

This looks good to me. Merging!

@Ice3man543
Ice3man543 merged commit e8d3048 into projectdiscovery:dev Aug 2, 2021
@ehsandeep ehsandeep added Status: Accepted and removed Status: Review Needed The issue has a PR attached to it which needs to be reviewed labels Aug 2, 2021
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

Successfully merging this pull request may close these issues.

3 participants