{"repo":"timebug/lua-resty-redis-ratelimit","free":true,"listed":false,"github":"https://github.com/timebug/lua-resty-redis-ratelimit","clone":"git clone https://github.com/timebug/lua-resty-redis-ratelimit.git","description":"Limit the request processing rate between multiple NGINX instances backed by Redis","language":"Perl","stars":169,"topics":["lua-resty","redis","ratelimit","leaky-bucket"],"license":null,"category":"databases-storage","readme_excerpt":"Name lua-resty-redis-ratelimit - Limit the request processing rate between multiple NGINX instances backed by Redis. Table of Contents Status Description Synopsis Methods new incoming set burst Author Copyright and License See Also Status Ready for testing. Probably production ready in most cases, though not yet proven in the wild. Please check the issues list and let me know if you have any problems / questions. Description This lua library is a request processing rate limit module for ngx lua: http://wiki.nginx.org/HttpLuaModule It is used to limit the request processing rate per a defined key between multiple NGINX instances. The limitation is done using the \"leaky bucket\" method. This module use Redis ( = 2.6.0) as the backend storage, so you also need the lua-resty-redis library work with it. NOTICE: If you do not use the duration feature and the incoming traffic is evenly distrbuted , it is recommended that use the module resty.limit.req to avoid unnecessary network delays. Synopsis Methods Back to TOC new syntax: obj, err = class.new(zone, rate, burst, duration) Instantiates an object of this class. The class value is returned by the call require resty.redis.ratelimit . This method takes the following arguments: zone : Sets the namespace, in particular, we use : string as a unique state identifier inside Redis. rate : The rate is specified in requests per second (r/s). If a rate of less than one request per second is desired, it is specified in request per minute (r/m)","default_branch":null,"files":null,"tree":[],"storefront":"/r/timebug","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/timebug/lua-resty-redis-ratelimit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}