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

Rate-Limit Per Minute #63

Open
arabsoheyl opened this issue Jun 5, 2021 · 1 comment
Open

Rate-Limit Per Minute #63

arabsoheyl opened this issue Jun 5, 2021 · 1 comment

Comments

@arabsoheyl
Copy link

I want to use this module for rate-limiting incoming requests per minute. This module has rate-limiting per second.
how can I limit incoming requests based on 3 requests per minute(With the possibility of sending 3 requests at the same time)?

@manoaratefy
Copy link

Hello,

I think you have to use resty.limit.count. Set something like this:

local limit_count = require "resty.limit.count"
limit_count.new("my_limit_count_store", 3, 60)

monkeyDluffy6017 pushed a commit to monkeyDluffy6017/lua-resty-limit-traffic that referenced this issue Apr 19, 2023
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

2 participants