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

feature: new module resty.limit.rate

Open timebug opened this issue 6 years ago • 3 comments

This PR have been discussed at https://github.com/openresty/lua-resty-limit-traffic/pull/26.

This module provides APIs to help the OpenResty/ngx_lua user programmers limit request rate using the "token bucket" method.

Small differences with existing modules, this module use resty.lock to make sure shdict operations across multiple nginx worker process is atomic, but default disable.

timebug avatar Nov 05 '17 09:11 timebug

Given that there are some features that apply to our own business environment, we maintain a repository independently, see https://github.com/upyun/lua-resty-limit-rate

@agentzh Thanks to the review code, I got a lot of valuable advice, I will continue to improve in the future if necessary :-)

timebug avatar Oct 25 '18 03:10 timebug

Why hasn't merged this PR?

wangdiqi avatar Jan 21 '21 01:01 wangdiqi

@deetchtoys Hello, I reopened this PR, over the years, this module has been used in some company production environments for a long time, if @agentzh @doujiang24 see fit to merge into limit-traffic, I will continue to improve this.

timebug avatar Jan 21 '21 03:01 timebug