Introduction
Sometimes, web servers need to send data to browsers or clients as it is generated, without waiting for the whole content to be ready. Streaming and chunked transfer let nginx send data in pieces, so users start receiving content faster and the server uses memory efficiently.
When serving live video or audio streams that are generated on the fly.
When delivering large files without loading them fully into memory first.
When proxying requests to backend servers that send data slowly or in parts.
When you want to reduce latency so users see content as soon as possible.
When handling APIs that send data in multiple parts or events.