0
0
Nginxdevops~5 mins

Streaming and chunked transfer in Nginx - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is chunked transfer encoding in nginx?
Chunked transfer encoding is a way to send data in pieces (chunks) without knowing the total size beforehand. nginx uses it to stream data to clients efficiently.
Click to reveal answer
beginner
How does nginx enable streaming responses to clients?
nginx streams responses by sending data as it is generated, often using chunked transfer encoding, so clients start receiving data immediately without waiting for the full response.
Click to reveal answer
intermediate
Which nginx directive controls chunked transfer encoding for proxied responses?
The directive is proxy_http_version 1.1; combined with chunked_transfer_encoding on; to enable chunked transfer for proxied HTTP/1.1 responses.
Click to reveal answer
beginner
Why is chunked transfer encoding useful for large or dynamic content?
It allows sending data as it is produced without waiting for the entire content size, reducing latency and memory use on the server.
Click to reveal answer
intermediate
What happens if chunked transfer encoding is disabled in nginx for streaming content?
nginx will buffer the entire response before sending it, causing delays and higher memory use, which can slow down client experience.
Click to reveal answer
What HTTP version must nginx use to support chunked transfer encoding?
AHTTP/3
BHTTP/1.1
CHTTP/2
DHTTP/1.0
Which nginx directive enables chunked transfer encoding for proxy responses?
Achunked_transfer_encoding off;
Bproxy_pass_request_body off;
Cproxy_buffering off;
Dproxy_http_version 1.1;
What is the main benefit of streaming data with chunked transfer encoding?
ASend data immediately without waiting for full content size
BCompress data before sending
CEncrypt data during transfer
DCache data on the server
If chunked transfer encoding is off, what does nginx do before sending the response?
ABuffers the entire response
BSends data in chunks
CDrops the connection
DCompresses the response
Which scenario benefits most from chunked transfer encoding?
ARedirecting URLs
BServing small static files
CStreaming live video
DServing cached pages
Explain how nginx uses chunked transfer encoding to improve streaming performance.
Think about how data can be sent piece by piece instead of waiting for everything.
You got /4 concepts.
    Describe the nginx configuration needed to enable chunked transfer encoding for proxy responses.
    Focus on HTTP version and chunked transfer directives.
    You got /3 concepts.