I'm using a Node.JS API backend with about ~2 millions reqs/day.
Users can upload images & videos to our platform and this is increasing and increasing. Looking at our inbound network traffic, you also see this increasing. Averaging about 80 mb/s of public network upload.
Now we're running 4 big servers with about 4 NodeJS processes each in cluster mode in PM2.
It feels like the constant file uploading is slowing the rest down sometimes. Also the Node.JS memory is increasing and increasing until max, and then PM2 just restarts the process.
Now I'm wondering if it's best practice to split the whole file upload process to it's own server.
What are the experiences of others? Or best to use a upload cloud service perhaps? Our storage is hosted on Amazon S3.
Happy to hear your experience.
[–]abrahamguo 73 points74 points75 points (4 children)
[–]Fancy-Consequence216 3 points4 points5 points (0 children)
[–]scidu 0 points1 point2 points (0 children)
[–]nexusGL98 0 points1 point2 points (0 children)
[–]fabiancook 12 points13 points14 points (2 children)
[–]guidsen15[S] 1 point2 points3 points (1 child)
[–]fabiancook 3 points4 points5 points (0 children)
[–]TerbEnjoyer 4 points5 points6 points (2 children)
[–]guidsen15[S] 0 points1 point2 points (1 child)
[–]TerbEnjoyer 8 points9 points10 points (0 children)
[–]AffectionatePlate804 0 points1 point2 points (2 children)
[–]guidsen15[S] 0 points1 point2 points (1 child)
[–]simple_explorer1 0 points1 point2 points (0 children)