Rate limting in a distributed setup

Saurav Sarkar saurav.sarkar1 at gmail.com
Sat Dec 3 14:19:37 UTC 2022


Hi All,



I am newbie to NGINX and want to use NGINX as a reverse proxy for my cloud
foundry apps.



I am using NGINX cloudfoundry buildpack.

https://docs.cloudfoundry.org/buildpacks/nginx/index.html



I was exploring the rate limiting options and was able to achieve basic
rate limiting using NGINX limit_req_zone



Now I want to run NGINX in distributed mode/multiple instances.



I want to save the rate limiting counters in  a shared cache like Redis.



I was exploring nginxjs for extension.



Is it possible to do so using the NGINX rate limiting module
"limit_req_zone" in nginxjs ? Or I have to write a complete implementation
of my own  in java script?



I checked some openresty lua modules with rate limtiing in redis are
avaialble. But was looking for some examples in javascript.



Any other hints for this topic will be also highly appreciated.





Best Regards,

Saurav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20221203/cfaa620b/attachment.htm>


More information about the nginx mailing list