lua-resty-limit-traffic icon indicating copy to clipboard operation
lua-resty-limit-traffic copied to clipboard

Rate-Limit Per Minute

Open arabsoheyl opened this issue 3 years ago • 1 comments

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)?

arabsoheyl avatar Jun 05 '21 08:06 arabsoheyl

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)

manoaratefy avatar Aug 31 '22 09:08 manoaratefy