Good point. I have applications in production using the current code that are working well for files in GB level, with low traffic.

For large files (>10GB or TB level), we use other file storages to avoid burdens to web servers. In other words, we share links instead of providing files in applications.

I haven't worked on scenarios that are high throughputs + large files. I would image a file storage + a cache service to solve this problem.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store