from my understanding, S3 optimizes throughput but not latency. I'm not surprised that his performance serving from S3 is perfectly fine, but I think the "answer" is to skip straight to CloudFront. CloudFront can mirror directly from your appserver, or from S3, it doesn't matter.
update: did a little googling, and found only anecdotal evidence that latency to S3 is fine but not awesome:
Unless you have a very specific need, consider switching to a web server more explicitly designed for static content. Nginx takes minutes to install and configure.
I hope you don't mind, but I just mirrored it on Github (https://github.com/seancron/kathack). You can use the following javascript to load it from the mirror.
* Hold two fingers on middle of track pad
* Click thumb on bottom of track pad; katamari should start to move at this point
* Release two fingers on middle of track pad
* Use single finger to move cursor while still holding down thumb
A Macbook user here as well. To try it out, I forked seancron's repository and changed the right mouse button to left mouse button. You have to avoid clicking on links, though.
This is amazing. I'm definitely going to keep this in my bookmarklets collection! That said, can you give us a way to re-generate the grid data? I want to roll up everything in Google Reader. (Maybe when the bookmarklet is run, if it's already active, re-generate the grid. It currently creates a second Katamari, which is also awesome.)
I thank you from the bottom of my heart for helping me fall into a haze for about 45 minutes. That was remarkably ingenious.
Rolling around on a huge page like the Wikipedia article for World War II (http://en.wikipedia.org/wiki/World_war_II) caused a pretty significant slowdown. Interestingly, once the ball got to the size to pick up larger images, the rest of the ball would clear and there would be a noticeable boost in speed. It was intriguing to observe the dynamics of the ball rolling on different sized pages.
Very entertaining, especially when it picks up images. Too bad it loses them too fast. Can you please add an option to keep images for longer? I love Hitler spinning around.
37 comments
[ 4.0 ms ] story [ 163 ms ] threadEDIT: We're serving this off ec2 + apache. It's all static html + js. Any quick tips for speeding things up?
update: did a little googling, and found only anecdotal evidence that latency to S3 is fine but not awesome:
http://www.cloudclimate.com/s3/
http://www.codeswimming.com/blog/2010/04/amazon-s3-and-cloud...
http://www.slideshare.net/ehwinter/using-amazon-cloud-front-...
Looks like we have a ~275MB access.log from before the switch. Over a million requests!
Really well done, I love it. The only shame was that the music didn't work on Safari, but maybe it's just how I roll.
I meant is there a way to change the javascript to use a different button?
The easiest way I found was to just move the cursor where you want the ball to go, then right click. Repeat.
And if you like this, check out this other amazing bookmarklet game:
http://erkie.github.com/
Rolling around on a huge page like the Wikipedia article for World War II (http://en.wikipedia.org/wiki/World_war_II) caused a pretty significant slowdown. Interestingly, once the ball got to the size to pick up larger images, the rest of the ball would clear and there would be a noticeable boost in speed. It was intriguing to observe the dynamics of the ball rolling on different sized pages.
Congratulations to the team on a great project and it's really nice to see how savvy about web technology the students at Wash-U are.
Also for dynamic pages, run the script after the content changes and click the "x", and the new content should be pick-uppable.