Streaming ZIP Archives On the Fly With nginx + mod_zip: No Disk, No Buffers, No Problem episode artwork

EPISODE · Jun 1, 2026 · 13 MIN

Streaming ZIP Archives On the Fly With nginx + mod_zip: No Disk, No Buffers, No Problem

from Programming Tech Brief By HackerNoon · host HackerNoon

This story was originally published on HackerNoon at: https://hackernoon.com/streaming-zip-archives-on-the-fly-with-nginx-mod_zip-no-disk-no-buffers-no-problem. How we stream ZIP archives on the fly at scale using nginx + mod_zip — no disk writes, no buffering, with local and remote files in a single archive. Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #nginx, #zip, #php, #architecture, #performance, #file-handling, #backend, #hackernoon-top-story, and more. This story was written by: @dmitriistarikov. Learn more about this writer by checking @dmitriistarikov's about page, and for more stories, please visit hackernoon.com. Instead of downloading files to disk, computing checksums, and building a ZIP before serving it, we use nginx + mod_zip to stream archives directly to the client. PHP returns a short manifest listing file URLs and sizes — nginx fetches each file via internal subrequests and pumps them into a ZIP stream in real time. No temp files, no buffering, no waiting. The main gotcha: file sizes are required upfront (ZIP format constraint), which is trivial for local files and requires a HEAD request for remote ones. We hit a production incident caused by zero sizes in metadata from an external team — silent broken archives, hard to debug because mod_zip subrequests don't surface in normal log pipelines.

Episode metadata supplied by the publisher feed · Published Jun 1, 2026

Embed this episode

NOW PLAYING

Streaming ZIP Archives On the Fly With nginx + mod_zip: No Disk, No Buffers, No Problem

0:00 13:33

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Programming Tech Brief By HackerNoon?

This episode is 13 minutes long.

When was this Programming Tech Brief By HackerNoon episode published?

This episode was published on June 1, 2026.

Can I download this Programming Tech Brief By HackerNoon episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!