News for hackers. Stuff that matters.
Re:Root Domain Website Hosting for Amazon S3 by saurik on Friday December 28, 2012 @10:48AM (#4978079)
You are still thinking about this as an API, with for example JavaScript and some AJAX. The use case here is zone apex static website hosting: if you go to http://mycompany.com/ and get a 500 error, the user is just going to be staring at an error screen... there will be no JavaScript, and the browser will not retry. As I actually explicitly said multiple times: for an API that is a perfectly reasonable thing to have, but for static website hosting it just doesn't fly.
Re:Root Domain Website Hosting for Amazon S3 by recuter on Friday December 28, 2012 @11:28AM (#4978222)
Oh I see what you mean, you're concerned about the first bytes to the browser being faulty. Well, that 2% error rate is spread out across the total of requests, the likelihood of a user getting a 500 on his first hit should be significantly less then 2%. (but it does seem like it will still be way too high)

Very valid point saurik, thanks for pointing out the extent of the problem. It is a dilemma. Seems kind of silly to have an instance just for the first hit to go through reliably for visitors, goddamit Amazon.

Edit: Wait a minute, maybe this could be solved with custom error pages which I think they support. :P

Re:Root Domain Website Hosting for Amazon S3 by Dylan16807 on Friday December 28, 2012 @02:15PM (#4979031)
I..what? That's not how percents work.
Re:Root Domain Website Hosting for Amazon S3 by recuter on Friday December 28, 2012 @05:15PM (#4979891)
No, it isn't, but that's not what I meant either. I'm assuming that not all requests are equivalent because of the nature of S3.
Re:Root Domain Website Hosting for Amazon S3 by Dylan16807 on Friday December 28, 2012 @06:00PM (#4980047)
You're going to need to explain how the requests would differ. If anything I'd expect image files to be more cache-friendly and have fewer visible failures than the critical html files. An image might have a 2% failure rate once or twice plus fifty error-free cache loads, while an html page might have 2% failure every single click.
Re:Root Domain Website Hosting for Amazon S3 by ryeguy on Friday December 28, 2012 @04:52PM (#4979786)
The likelihood of a user getting a 500 on his first hit is the same as the user getting a 500 on his 100th hit - 2%.