<div dir="ltr"><p style="margin:0in;font-family:Calibri;font-size:11pt">Hi All,</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">I am newbie to NGINX
and want to use NGINX as a reverse proxy for my cloud foundry apps.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">I am using NGINX
cloudfoundry buildpack.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"><a href="https://docs.cloudfoundry.org/buildpacks/nginx/index.html">https://docs.cloudfoundry.org/buildpacks/nginx/index.html</a></p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">I was exploring the
rate limiting options and was able to achieve basic rate limiting using NGINX
limit_req_zone</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">Now I want to run
NGINX in distributed mode/multiple instances.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">I want to save the
rate limiting counters in a shared cache
like Redis.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">I was exploring
nginxjs for extension.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">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?</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">I checked some
openresty lua modules with rate limtiing in redis are avaialble. But was
looking for some examples in javascript.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">Any other hints for
this topic will be also highly appreciated.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">Best Regards,</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">Saurav</p></div>