Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a known problem, S3 alone is <strong>slow</strong> when it comes to the upload and download of images.</p> <p>Well, it actually isn't a problem when you enable CloudFront and use other AWS services.</p> <p>What you are looking for is the <a href="http://aws.amazon.com/cloudfront/" rel="noreferrer">Cloudfront CDN from Amazon</a>. You can specify an origin (that would be your S3 bucket in your case) and then your files will be distributed to all the Amazon Cloudfront edge locations worldwide. Check out their <a href="http://aws.amazon.com/cloudfront/faqs/" rel="noreferrer">FAQ</a> and the <a href="http://aws.amazon.com/cloudfront/#details" rel="noreferrer">list of edge locations</a>.</p> <p>You would upload to a central server, where majority of your users would be (estimation). And download from a signed URL in which directs you to a server closest to the user that contains a copy of your bucket... You can also cache the images on the servers to make uploading and downloading faster.</p> <p>Also, I am not sure how you determine <code>path</code> (the key), but if you are listing keys from S3 buckets, stop that! Its slow! You should use DynamoDB or SimpleDB, both alternatives to storing small datasets, DynamoDB is super fast but doesn't really have query options, you can store all keys into DynamoDB with a certain format and match them.</p> <p>You could use SimpleDB and store all your keys with relevant attributes (properties) and query SimpleDB using SELECT expressions similar to SQL -- but a slightly different syntax</p> <p>There are a lot of things you can do to optimize S3!</p> <p>If you need detailed steps on <strong>everything</strong> to do, I will do it if you put a bounty on the question. Its not easy picking this up from the documentation but could take me <strong>hours</strong> to write as well, and I have school!</p> <p>After following all these steps, I reduced ~8 seconds to almost the snap of a thumb!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload