Skip to content

Instantly share code, notes, and snippets.

@antonvasin
Forked from CMCDragonkai/http_streaming.md
Created July 15, 2025 15:32
Show Gist options
  • Select an option

  • Save antonvasin/ea2e81a03db0750adc784a118c9b5884 to your computer and use it in GitHub Desktop.

Select an option

Save antonvasin/ea2e81a03db0750adc784a118c9b5884 to your computer and use it in GitHub Desktop.
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of the HTTP transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on the data stream in chunks immediately instead of waiting for the entire data to arrive. Basically you're either saving space or you're saving time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment