CloudFront vs. S3 vs. My Plain Old Apache Server
Yes, another CloudFront post. I'm a penny-pinching, performance minded AWS user, what do you expect?
Anyway, I'm a couple of weeks into my CloudFront experiment and while the traffic numbers are still too fresh to offer any insight on what the speed improvement might be doing for my European and Asian bounce rate (I cache everything, so it should really only affect initial page views,) I do have enough data to compare and contrast the absolute speed difference at play here.
Serving my site sprite from the three different locations I get the following results using pingdom's excellent monitoring service:
| Server | Average Response Time |
|---|---|
| Amazon CloudFront | 134 ms |
| Drunkenfist.com | 345 ms |
| Amazon S3 | 522 ms |
As you can see CloudFront is a significant relative improvement over the other two servers (by two and three times.)
Without researching it extensively it seems like a pretty good absolute result as well. While the sprite is slightly larger than the Lookery JS file he used to test, CloudFront performs well within the standard that CacheFly and EdgeCast set when Dave Cancel tested a few different CDN options earlier this year. Granted, his research wasn't exhaustive so someone out there might be pushing closer to 100ms for smaller files, but for the price and ease of use, I'll gladly take 134ms.
Anyone know of any broader research into CDN response times? I'd love to see it if you do, so drop it into the comments.