Which way to link to S3 files is better / faster?

Is this S3 file addressing method better / more reliable / faster?

http://abcinfo.s3.amazonaws.com/something.doc

or as follows:

http://s3.amazonaws.com/abcinfo/something.doc
+3
source share
1 answer

A fascinating discovery!

http://abcinfo.s3.amazonaws.com/something.doc

STATE is slower than another link mechanism!

Used file: Length: 3716075 (3.5 M) [video / mp4]

wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
7.0s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.2s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.7s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.2s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.1s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.9s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.2s

Average time spent on the http: // myfolder mechanism:

8.95 seconds

Average time spent on / myfolder / mechanism:

2.166666667 seconds

those. the first is at least four times larger than slower!

+2
source

All Articles