News for hackers. Stuff that matters.
Re:The magic of HTML5 and S3 by nodata on Monday March 25, 2013 @04:25PM (#5439487)
I thought S3 wasn't suitable because it doesn't return http status codes that browsers expect? Anyone know?
Re:The magic of HTML5 and S3 by mbell on Monday March 25, 2013 @06:23PM (#5440096)
One problem is that S3's object availability is only 99.99%, which sounds good, but if your site has 20 assets it needs to load (html, js, img, fonts, whatever) then 1 out of every 50 non-cached loads could be expected to be missing an asset which can be a big problem for JS heavy sites.
Re:The magic of HTML5 and S3 by gphil on Monday March 25, 2013 @06:47PM (#5440218)
I think you're off by an order of magnitude: 9999/10000 requests should succeed, so 1 in 500 loads of 20 assets would be expected to have an asset missing.
Re:The magic of HTML5 and S3 by mbell on Monday March 25, 2013 @08:03PM (#5440530)
Oops, thanks for the fix
Re:The magic of HTML5 and S3 by jplur on Monday March 25, 2013 @09:10PM (#5440786)
I'm planning on s3 to serve my static assets, and hoping to mitigate this by serving a small file from a traditional server that checks up on all links and does the whole back off request dance if there is a problem.
Re:The magic of HTML5 and S3 by toomuchtodo on Monday March 25, 2013 @08:13PM (#5440560)
Using Cloudfront should improve your availability (if using Cloudfront URLs).
Re:The magic of HTML5 and S3 by mslot on Monday March 25, 2013 @05:00PM (#5439656)
I'm not aware of any invalid status codes, the main issue is that vanilla S3 does not support index or error pages. Instead, it either returns Access Denied or a list of all objects when making a "GET /" request. However, S3 has a website feature, which allows you to set up index and error pages, and redirects.

You might also want to put CloudFront in front of the S3 website. You lose some capabilities like root domain, but you gain a lot of performance and voodoo magic like mapping part of your website to a different origin (e.g., you can request RSS feeds directly from a third-party website using only JavaScript and CloudFront as a proxy).