lua-resty-limit-traffic
lua-resty-limit-traffic copied to clipboard
resty.limit.req vs resty.limit.count
what is different resty.limit.req with resty.limit.count? If i want to restrict qps,which one shoud i choose?
thks.
you should choose resty.limit.req, it based on the leaky bucket algorithm. resty.limit.count is similar to quota or frequency control, it based on the fixed window algorithm. resty.limit.req is more accurate than resty.limit.count for qps control.
thks
you should choose resty.limit.req, it based on the leaky bucket algorithm. resty.limit.count is similar to quota or frequency control, it based on the fixed window algorithm. resty.limit.req is more accurate than resty.limit.count for qps control.