0
0
Nginxdevops~5 mins

Proxy buffering in Nginx - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AControls if nginx stores backend responses before sending to clients
BEnables caching of static files
CSets the timeout for proxy connections
DDefines the maximum upload size
If proxy_buffering is off, what is the effect?
ANginx sends data to clients immediately as it receives it
BNginx buffers all responses fully before sending
CNginx disables proxying
DNginx caches the response on disk
Which directive sets the size of the buffer for the first part of the response?
Aproxy_cache_path
Bproxy_buffers
Cproxy_buffer_size
Dproxy_pass
Why is proxy buffering useful for slow clients?
AIt speeds up backend server processing
BIt reduces load on the backend by sending data at client speed
CIt stores responses to send faster to clients
DIt compresses data before sending
Which of these is NOT a reason to disable proxy buffering?
ATo reduce latency for streaming data
BTo immediately send data to clients
CTo support real-time applications
DTo improve caching efficiency
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.