I have an express app that allows downloads via special ids in the url.
Somebody can add a file, say file.pdf and someone else can download it via http://app/files/<64 char id>.
For the files/:id route I use res.download().
The download speed however never exceeds 300kbit/s and averages around 162kbit/s (measured with wget). This is in contrast to the 200 Mbit/s bandwidth that iperf3 reports between the two systems. The files are also placed on a ssd so access speeds should not be an issue.
The average file size is around 10 MB.
Is there any way I can speed res.download up or how I can implement the same app with different, more performant, expressjs functions ?