1Streaming to the Client
If a user requests a large file from your API, do NOT read it into memory and send it in one block. Instead, create a ReadStream from the file and immediately '.pipe()' it to the HTTP 'res' object. The user's browser will start downloading immediately, and your server will use almost zero RAM.
