Recall & Review
beginner
What is proxy buffering in nginx?
Proxy buffering is a feature in nginx that temporarily stores the response from a backend server before sending it to the client. This helps improve performance and manage slow clients.
Click to reveal answer
beginner
Which nginx directive controls whether proxy buffering is enabled?
The directive
proxy_buffering controls if buffering is enabled. Setting it to on enables buffering, and off disables it.Click to reveal answer
intermediate
What happens if
proxy_buffering is set to off?When
proxy_buffering off; is set, nginx sends data to the client immediately as it receives it from the backend, without storing it. This can increase latency for slow clients.Click to reveal answer
intermediate
Name two directives related to proxy buffering size in nginx.
Two important directives are
proxy_buffer_size which sets the size of the buffer for the first part of the response, and proxy_buffers which sets the number and size of buffers for the rest of the response.Click to reveal answer
intermediate
Why might you want to disable proxy buffering in nginx?
You might disable proxy buffering to reduce latency for streaming or real-time data, where you want the client to receive data as soon as possible without delay.
Click to reveal answer
What does the
proxy_buffering directive do in nginx?✗ Incorrect
proxy_buffering controls whether nginx buffers responses from the backend server before sending them to the client.
If
proxy_buffering is off, what is the effect?✗ Incorrect
With buffering off, nginx streams data directly to the client without storing it first.
Which directive sets the size of the buffer for the first part of the response?
✗ Incorrect
proxy_buffer_size sets the size of the buffer used for the first part of the response.
Why is proxy buffering useful for slow clients?
✗ Incorrect
Buffering allows nginx to receive the full response quickly and send it to slow clients at their pace, reducing backend load.
Which of these is NOT a reason to disable proxy buffering?
✗ Incorrect
Disabling buffering does not improve caching; it is mainly for reducing latency and streaming.
Explain what proxy buffering is in nginx and why it matters.
Think about how nginx handles backend responses before sending to clients.
You got /3 concepts.
Describe how to configure proxy buffering in nginx and what happens when it is turned off.
Consider the directives and their impact on response delivery.
You got /3 concepts.