0

I'm located in Saudi Arabia, and I have a web app that enables users to upload files. These files are stored in AWS S3 buckets (My S3 Bucket is located in EU).

I deployed my web app using Railway, knowing the fact that Railway's servers are located in the US.

But I was shocked about the massive difference between the upload time in my local environment and the upload time after deploying it to railway.

I decided to move my S3 bucket closer to the server's location, so I created a new S3 bucket in the US as well.

But unfortunately, it took the same duration to upload a file ..

I ran a timer to see how long it takes to upload a 21 MB PDF file to S3 bucket in each environment:

  • Upload file from Railway to S3 Bucket EU --> took 103 seconds
  • Upload file from Railway to S3 Bucket US --> took 103 seconds
  • Upload file from my local machine to S3 Bucket EU --> took 12 seconds
  • Upload file from my local machine to S3 Bucket US --> took 12 seconds

As you see above, a massive difference between my local machine and railway's server even though I moved S3 bucket to the US as well.

So how can I tackle this issue? Since most users won't wait 103 seconds to upload a file.

Saud Alghamdi
  • 149
  • 1
  • 9

0 Answers0