spacewander commented on issue #4382: URL: https://github.com/apache/apisix/issues/4382#issuecomment-855668192
> In my company, many users set 200 r/m on remote_address or even lower, If it divided by 60, 1r/s or 2r/s will be reached easily, It's how Nginx works too. Note that the r/m is the speed rate, it doesn't mean you can have 200 requests in a minute, it means you can't be faster than 200r/m. Drive a car in 36km/h is equal to 10m/s. > because modern browser support http2, so one user visit one nignx over 1r/s is very common. In this case we need a good burst and/or use delay. > ctx->rate = rate * 1000 / scale; `resty.limit.req` does the same thing, see https://github.com/openresty/lua-resty-limit-traffic/blob/56b9a35a69117ed0e8a2e3b9a0866c426403e1b9/lib/resty/limit/req.lua#L144 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
