Skip to content

Conversation

@devlikepro
Copy link

The default value for RACK_ATTACK_LIMIT is 3000, so the documentation should state either 3000 rpm or 60 rps.
Since rate limits are usually expressed per second, it makes more sense to describe it as 60 rps instead of 60 rpm.

throttle('req/ip', limit: ENV.fetch('RACK_ATTACK_LIMIT', '3000').to_i, period: 1.minute, &:ip)

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.

1 participant