1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Why is Amazon S3 Faster

Discussion in 'Cluster Computing' started by Foxxy, Feb 5, 2014.

  1. #1
    I've seen it suggested more than once that hosting your images remotely on Amazon S3 will improve the load time of your pages.

    My question is, why is using a remote service faster than just keeping them in a local directory?

    Also, if anyone has used S3 before, I would appreciate any comments or suggestions on the service.
     
    Foxxy, Feb 5, 2014 IP
  2. SeerKan

    SeerKan Greenhorn

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    23
    #2
    The only reason why that would be faster is that s3 is distributed across multiple locations around the world and it could serve the files from Ireland for europe, from US to us and so on. Another advantage would be that your apache doesn't need to create connections for the images leaving it resources to serve more users.
     
    SeerKan, Feb 6, 2014 IP
    Foxxy likes this.
  3. ironcladservers

    ironcladservers Well-Known Member

    Messages:
    389
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    115
    #3
    ^^ SeerKan is correct. Also, a good portion of the reason pages load faster this way, is because browsers can "multi-task" object downloading when coming from a subdomain or different domain than the one serving the page itself. Most browsers limit concurrent HTTP connections per single server (or domain in this case), meaning that if you spread the images over another subdomain/domain or server then the browser can fetch these things all at once, rather than image by image. This speeds things up, especially if there are a lot of images.

    If you want to improve it even more, create a CSS image "sprite" which will put all the images in 1 file, meaning the browser will only need to download 1 image, instead of 100, and the reason this would be faster is because it avoids all the TCP/IP handshakes (TCP connection setup and teardown) of those extra 99 images, speeding things up.
     
    ironcladservers, Feb 6, 2014 IP
    Foxxy likes this.
  4. Adam James Jack

    Adam James Jack Banned

    Messages:
    39
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #4
    This is true, they quite naturally have a huge CDN network.
     
    Adam James Jack, Feb 13, 2014 IP
  5. BenAxe

    BenAxe Member

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #5
    We're using Amaon S3 to host our landing site with all images.
    It's not faster by itself, only when you're using it's CDN (called Amazon CloudFront).
    In this case, your files are served from the closest location to the end user.
    For CloudFront, Amazon has more than 20 locations around the world, so that's why it's fast.
     
    BenAxe, Apr 10, 2014 IP
  6. Foxxy

    Foxxy Active Member

    Messages:
    465
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    90
    #6
    I'm pretty much going to have to try this. I need to speed up my site a little and I'm running out of steps I can try. I wish they had more clear pricing on this service. When I went there I was presented with a ton of different options all depending on how many images and how much transfer. It is difficult for me to figure this up in order to know what this plan will cost me.
     
    Foxxy, Apr 10, 2014 IP
  7. Slicebox

    Slicebox Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #7
    Amazon service it self is not faster in anyway , unless you have CDN enabled.
     
    Slicebox, Jun 8, 2014 IP
  8. Foxxy

    Foxxy Active Member

    Messages:
    465
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    90
    #8
    I still have not given it a try. Their pricing structure is too confusing.
     
    Foxxy, Jun 8, 2014 IP
  9. Slicebox

    Slicebox Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #9
    may be a lot of people just buy service blindly and then when the overages come, they think what the site might need . most of the cases sites dont need much power.
     
    Slicebox, Jun 8, 2014 IP
  10. Foxxy

    Foxxy Active Member

    Messages:
    465
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    90
    #10
    If they would have had 3-4 packages that were tiered in some way, I probably would have subscribed. But the page I landed on had dozens of options that were all based on number of images and amount of data transfer. Sure, I could take the time to dig into the logs to figure out that information, but it's just honestly too much effort and I have too much on my plate already to add on the additional task. Over-complicating their plans cost them a customer, in my case anyway.
     
    Foxxy, Jun 10, 2014 IP