>An issue (I think) is that I end up downloading the user's file twice. I download it once on the web server, and then again on the "image server."
mfw it finally hits me that I should've streamed the file from the client to the webserver and then finally to the image server instead of waiting for it down fully download on the webserver. I wish I wasn't using Multer and opted for busboy early on so I could use streaming... but the even larger issue is that my code is such a mess that it's not easy to change something fundamental.
I'm working on a different project now, but if I could go back in time, I would use MinIO to store images and stream the images over the over the webserver to solve the duplicate download, would use a different architecture than your basic MVC, and I would write the front end using Next.js rather than plain React. Thank you for reading my blog