openresty / lua-resty-limit-traffic

Lua library for limiting and controlling traffic in OpenResty/ngx_lua
817 stars 149 forks source link

Is there any performance issue if every request interact with ngx.shared.dict #55

Open fankeke opened 4 years ago

fankeke commented 4 years ago

eg: shm:set() / shm:get() in every request lifetime.

spacewander commented 4 years ago

Shdict operations are mostly inexpensive in real world. You could benchmark it if performance is critical to your API.