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

feature: resty.limit.count counts made instead of remaining requests

Open mikz opened this issue 6 years ago • 2 comments

by keeping track of requests that were made instead of remaining ones it is possible to change the limit on the fly and share one counter between several count limiters with different limits

It is possible all the details are not right, I didn't really understand the part of calling DICT:expire. But I'd at least like to verify the approach and open a discussion.

ref: https://github.com/openresty/lua-resty-limit-traffic/issues/23#issuecomment-389069514

mikz avatar May 16 '18 13:05 mikz

Hi @mikz Sorry for our delay

I think this PR is good for us to share a counter for difference rate limit policy, just like limit:conn.

And could you split the incr to difference version like here, and the old version Openresty could be supported too.

rainingmaster avatar Jan 22 '21 08:01 rainingmaster

@rainingmaster thanks for the feedback. I no longer work on this, but someone from https://github.com/3scale/APIcast could take over. /cc @eloycoto

mikz avatar Jan 22 '21 09:01 mikz