Fetching data from S3 is very slow

In my application I am using S3

to store user data. The user has files, and each file has its own ID, and I need to store its data and snapshot (png) for each file. I store data in the following architecture:

Main files bucket >
       File_id_folder >
          file.data
          file.png
       File_id_folder >
          file.data
          file.png
       File_id_folder >
          file.data
          file.png

      

My problem is that it takes a long time to fetch files from S3. It may take about a minute to get 5 png files.

The size of my png files is about 100K. I am using scope N.California

and loading files from Israel

. Png files are loaded via iOS app (used to initialize UIImage)

What can I do to improve the performance of S3?

+3


source to share


1 answer


If you want to save your images to s3 and download them as quickly as possible from remote locations (like Israel), consider using AWS cloud distribution on your s3 bucket so that images can be served from a datacenter closest to the place where you download them.

Adding a cloud board will be easy to use and the cost will give you next to nothing, at least check and see if it helps.



If after adding the cloud framework and even slower than you think it should be, I would consider other aspects of your solution. It can be slow due to other factors not related to AWS.

+3


source







All Articles