Using NGINX limit_req to Shield APIs from Traffic Bursts
Learn how NGINX's limit_req module uses a leaky‑bucket filter to throttle API traffic, with a concrete configuration, trade‑offs, and verification steps.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how NGINX's limit_req module uses a leaky‑bucket filter to throttle API traffic, with a concrete configuration, trade‑offs, and verification steps.
Goal To understand how nginx applies burst limits on a per‑location basis when using limit_req_zone and how these limits interact with limit_conn when both directives are enabled on the same location. Constraints & Uncertainty The limit_req_zone directive defines a shared memory zone and a global rate; it does not expose a burst parameter inside the zone