I bumped my payload version to 3.44, 3.45, and now 3.46, and since then I've been having a lot of issues with media. (It more or less was at the same time of having more people adding data to our application).
I'm using the s3 adapter.
The main issue was that when retrieving data, the socket limit (default config) would hit everytime, it wasn't even able to load like 10 images without being hit... I tried upping the socket limit, enabling keepAlive for connections and other stuff, which didn't work (and I think this should NOT be the solution for a problem like this, specially when there's not even that many people using the app, maybe 5-10 people simultaneously using it).
I ended up using the generateFileURL method to retrieve the s3 object url to server the images directly from S3, which has been workin fine so far.
The problem is that for the admin panel it still uses the API, and it still gets extremely slow, I'm talking about taking 5-10 seconds to load the images, and I can't even upload images anymore, production takes maybe 1-2 minutes to load a single image, and staging, which has slightly less resources gets a 524 (Timeout) every single time.
I honestly don't know what else to do here... could someone help me pls