The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
/clientscripts over to Amazon S3/Cloudfront?
We have moved most of our static images over to Amazon Cloudfront/S3 content delivery network (CDN) over the past few months with good results.
Now, I am considering moving all the vB clientside Javascript in the /clientscript directory over to Cloudfront as well. Anyone else using a CDN for the JS in the /clientscript directory? Any issues other than keeping in sync with updates anyone can think of? |
#2
|
||||
|
||||
Why would you want to do this?
|
#3
|
|||
|
|||
Because these (clientside) scripts account for (approx) 1/3 of the traffic, so moving them to a CDN will reduce the load on the server and also increase performance (just as it did when we moved most of all the static images).
|
#4
|
|||
|
|||
You should consider adding "Expires" HTTP header to .js files, so the user browsers won't have to re-check these files for updates on every page load. And by the way, the same could be done for the static images.
For the record, .js files (with the Expires header) account for 0.9% of our bandwidth usage. Forum images take another 1.20%. |
#5
|
||||
|
||||
I would think putting your money in a better setup/server is better then putting your money into another host, in this case the cloud setup.
I agree that static images and .js have little to no impact on any of my servers or sites. There is more to be had with a good server and proper setup. |
#6
|
|||
|
|||
Quote:
While your "opinion" is valuable. It is also incorrect because we have alread run the performance numbers and know the gain realized from the global Amazon CDN. OBTW, Amazon CloudFront services are not "another host", so it seems you enjoy an "opinion" about something you do not understand. CloudFront is a Content Delivery Network with (seven I think, at last count) global geographic locations. It is not a hosting solutions. We run over 500 metrics on our configuration and know the performance better than an uninformed third party who, frankly speaking, is just "hip shooting". In fact, in the vBSEO forum, there are a number of users, like us, who server static content off the main server. Some use other hosts, others, like us, use a global CDN. Sorry to be so direct. Facts are facts. Cheers. |
#7
|
||||
|
||||
Not wanting to argue here, but if they are storing your images and then serving them and you are paying for this service, then in fact they are a host... lol
The only benifit I an see is one that you mentioned, being globally located for faster service to people on the other side of the world. Other then that you are still paying for something you should be able to do yourself. This all changes as the size of the forum has a large impact on these things as well, but since you didn't mentione this I went with what the aerage user would need and this service for the average user is useless imo. |
#8
|
|||
|
|||
Let's not argue, because you are shooting from the hip and will just keep shooting yourself in the foot my friend :-) I posted here, not do debate performance, but to look for configuration issues related to vBulletin, but I was able to work with the folks on the vBSEO board to fine tune all those issues.
Here are some published data related to CF/S3 performance, you can review yourself. Amazon CloudFront / S3 Small Object Test Result Huge client side gains for using CloudFront (across the board), some as high as 95% improvement. On a different note, related to server side apache GETs (which effects apache workers, load, etc.) As I posted earlier in this ill-fated thread, our /clientscript traffic accounted for 30% of all our GET requests (before I moved them to S3/CF yesterday). (The static gifs are mostly gone off the server and were already served from CF globally). Regarding the reason I posted here, I was not looking for a performance discussion, as I know the performance intimately, serving millions of PVs per month. We are all set now..... We had a very useful discussion over at vBSEO on this. Cheers. |
#9
|
|||
|
|||
I would be interested in the outcome of this strategy.
|
#10
|
|||
|
|||
The basic outcome has already been published:
Amazon CloudFront / S3 Small Object Test Result I can confirm that moving the /clientscript also results in better server performance, especially if you have a lot of .js code (from mods, plugins, etc.). Globally, pulling static objects like images and Javascript results in faster response time for end users (unless they are next to the server, of course, see results above), decreased Apache workers, decreased bandwidth (out from the main server, increased at CF/S3 of course) and a decrease in load average (load results depend on a number of factors and is not easily qualified). Please note that vB/Jelsoft uses the same strategy (for a long time) in the Server Settings and Optimization Options: Quote:
:-) Maybe we can convince Jelsoft to serve their scripts in S3/CF and permit all vB customers to pull from the global CDN as part of the license :-) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|