browserquest / BrowserQuest

Continuing the development of Mozilla BrowserQuest
http://browserquest.herokuapp.com
Other
444 stars 220 forks source link

Add support for serving static assets from S3 #133

Open Aaron1011 opened 11 years ago

Aaron1011 commented 11 years ago

I've noticed that it currently takes a long time to log in to our OpenShift BrowserQuest instance. From looking at the Chrome or Firefox debugging console, it seems that much of this time is spent fetching the images and sound files. It would be great to be able to serve these from an Amazon S3 bucket instead of relying on Node.JS to do it.

justinclift commented 11 years ago

It's interesting that you say that. :smile:

When the original BrowserQuest first launched, I think they made some patches to use the Mozilla CDN (Content Delivery System), sort of like an S3 bucket, optimised for static file serving.

It shouldn't be pretty easy to locate the exact patches, and see if the code is still in the code base. It might be as simple as turning on a variable + updating things to point to an S3 bucket (which is easy to set up too).

EddieOne commented 10 years ago

yeah a lot of downloads are required. It would be nice if there is already an option to load static files from an external source.