Enable Rate Limiting

Learn how to configure rate limiting

NGINX as a Service for Azure supports rate limiting via the ngx_http_limit_req_module module to limit the processing rate of requests. For more information on rate limiting with NGINX, see NGINX Limiting Access to Proxied HTTP Resources and Rate Limiting with NGINX and NGINX Plus.

Configuring Basic Rate Limiting

http {

    limit_req_zone $binary_remote_addr zone=mylimit:10m rate=1r/s;
    server {

        location /login/ {
            limit_req zone=mylimit;

Currently, NGINXaaS for Azure disables the sync parameter because NGINX instances in NGINXaaS are not deployed as a cluster, so each instance has its own memory zones.