
Streaming ZIP Archives On the Fly With nginx + mod_zip: No Disk, No Buffers, No Problem
From Programming Tech Brief By HackerNoon by HackerNoon
June 1, 2026 · 14 min
About this episode
The episode discusses how to stream ZIP archives on the fly using nginx and mod_zip without disk writes or buffering.
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…
Topics covered
- streaming
- ZIP archives
- nginx
- mod_zip
- file handling
- backend
Keywords
- streaming
- ZIP
- nginx
- mod_zip
- file handling
- backend
- performance
Mentioned in this episode
Organizations: HackerNoon, nginx, PHP
More episodes of Programming Tech Brief By HackerNoon
- I Built a Sleep App for Myself. My First Review Was 1 Star · June 12, 2026 · 11 min
- What Happens When AI Makes Implementation the Easy Part · June 12, 2026 · 11 min
- The Fork in the Toolchain: How Agents Are Splitting Developer Tooling in Two · June 11, 2026 · 6 min
- Rethinking the Single Responsibility Principle for Modern Software Teams · June 11, 2026 · 19 min
- AI Coding Tip 023 - How to Shrink Your AI's Pull Request · June 10, 2026 · 9 min
- Understanding the Design Philosophy Behind the Linux Filesystem · June 10, 2026 · 8 min
Explore listener stats, chart rankings, contacts and more on the Programming Tech Brief By HackerNoon podcast page.