Someone help me understand; the flat assets are hosted on S3 but how do http requests get resolved to the correct html file? Is it done with DNS settings?
Can you help me understand why someone would host static content on S3 versus any other host? Is it because S3 automatically scales up when traffic increases? I know almost nothing about S3.
The pricing is competitive, its easy and reliable, and it can handle as much traffic as you like. S3 may not be the best option, but it's definitely a good, no-worries option.
"Competitive" is an interesting word to use. For example, I can get 100Mbit bandwidth from Hetzner for $9/TB. Transferring the same amount of data over S3 would cost me 10x more.
Now, if you're serving large files and you really need more than 100Mbit sustained, S3 makes sense. But it's unquestionably a premium service for a premium price.
Not sure how others do this, but I use Amazon Cloudfront. You just prepend the cloudfront url to your asset path (like mybucket.cloudfront.net/path/to/my/local/file), and ... that's it. That's all you have to do. It's fantastic.