0
0
Nginxdevops~5 mins

Burst and nodelay options in Nginx - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ATimeout for requests
BNumber of extra requests allowed temporarily beyond the rate limit
CMaximum number of concurrent connections
DSize of the request body
What effect does the nodelay option have when used with burst?
AAllows burst requests to pass immediately without delay
BDelays all requests to match the rate limit
CBlocks burst requests
DIncreases the rate limit permanently
If burst is set to 5 and nodelay is not used, what happens to the 6th request arriving quickly?
AIt is rejected immediately
BIt passes instantly
CIt is delayed to fit the rate limit
DIt increases the burst size
Which directive defines the rate limit zone used with burst and nodelay?
Aserver_name
Blimit_conn_zone
Cproxy_pass
Dlimit_req_zone
Why would you use burst and nodelay together?
ATo allow sudden traffic spikes without delay
BTo reject all extra requests
CTo slow down all requests
DTo increase server memory
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.