Recall & Review
beginner
What does the
burst option do in nginx rate limiting?The
burst option allows a temporary extra number of requests to pass beyond the set rate limit. It acts like a small buffer for sudden spikes in traffic.Click to reveal answer
beginner
Explain the
nodelay option in nginx rate limiting.The
nodelay option lets requests in the burst queue pass immediately without delay. Without it, requests in the burst queue are delayed to match the rate limit.Click to reveal answer
intermediate
How do
burst and nodelay work together in nginx?The
burst option allows extra requests to queue up temporarily. The nodelay option makes those queued requests pass instantly instead of waiting, helping handle sudden traffic bursts smoothly.Click to reveal answer
intermediate
What happens if you set
burst without nodelay in nginx?Requests above the rate limit are queued up to the burst size but are delayed to match the rate limit speed. This can cause some requests to wait before being processed.
Click to reveal answer
beginner
Give a simple nginx configuration snippet using
burst and nodelay.limit_req_zone $binary_remote_addr zone=mylimit:10m rate=5r/s;
server {
location /api/ {
limit_req zone=mylimit burst=10 nodelay;
}
}
Click to reveal answer
What does the
burst option control in nginx rate limiting?✗ Incorrect
The
burst option allows a temporary buffer of extra requests beyond the set rate limit.What effect does the
nodelay option have when used with burst?✗ Incorrect
nodelay makes burst requests pass instantly instead of waiting.If
burst is set to 5 and nodelay is not used, what happens to the 6th request arriving quickly?✗ Incorrect
Without
nodelay, burst requests beyond the limit are delayed to match the rate.Which directive defines the rate limit zone used with
burst and nodelay?✗ Incorrect
limit_req_zone defines the shared memory zone and rate for limiting requests.Why would you use
burst and nodelay together?✗ Incorrect
Together they allow extra requests to pass immediately, handling traffic spikes smoothly.
Describe how the
burst and nodelay options affect request handling in nginx rate limiting.Think about how nginx handles sudden spikes in requests.
You got /3 concepts.
Write a simple nginx configuration snippet that limits requests to 10 per second with a burst of 20 and uses nodelay.
Use $binary_remote_addr for the zone key.
You got /3 concepts.