Libraries: Status Report
Thursday, March 27, 2003 by Frogboy | Discussion: WinCustomize News
So there are 3 variables in running a vastly popular website:
1) Bandwidth
2) SQL server performance
3) Scripting performance
Bandwidth is the easiest to solve. You just pay more money and you get more bandwidth. But on a site as popular as WinCustomize, the number of people on at the same time (think thousands) require a lot of SQL and page generation resources.
So even as we increase the bandwidth, you then end up where the SQL server gets maxed. So then you increase your SQL server resources and then more people are able to get on until the scripting resources are maxed. That's where we are now.
You can optimize things, tweak things, etc. And you're always battling out having a site that looks nice and presents information and isn't too hard to code and maintain with the demands of thousands of users browsing the libraries at the same time.
So what got this going in the first place? First, as some long time users know, late last Fall we increased our servers and bandwidith and everything else and our traffic increased dramatically. By March, we'd reached a new level of website popularity (Which is good except that since we're not ad driven, it's a mixed blessing). But we also just launched GalCiv.com which is seeing traffic that is an order of magnitude beyond what we had projected.
We have the bandwidth situation reasonably okay, but the SQL and scripting resources are what we have to work on further.
Reply #2 Thursday, March 27, 2003 4:25 PM
It's just an idea...

Reply #3 Thursday, March 27, 2003 7:17 PM

Wallpaper is down? *Phew* For a minute I thought my wall was already ready for retirement because of the 0 downloads status.
Anyway, sounds like a lot of work; I commend you for the valiant efforts to keep this wonderful site running nicely for all of us!
I know it can be stressful trying to get so much imperative stuff done properly when you feel rushed but taking the time to do things right and make the necessary accommodations/changes will save headaches further down the line for everyone especially when there’s only so much blood you can get from a maxed out turnip.
I have all the patience in the world...but okay, that might not be a fair statement since I have a subscription TO OD etc. and therefore my access isn't/hasn't been hampered.

Va-Va-Varoom!

Reply #4 Thursday, March 27, 2003 7:40 PM
Also, with Apache + PHP + MySQL you can get special cache modules which work like so:
A page is generated dynamically. Yay! Now that page has been stored in the cache of the server so if it is called again with the same parameters and hasn't been changed, the cache is dished out and no parsing is required. Basically it just lightens the load on the server's processing end, but bandwidth usages stays the same.
Then you can use what's known as GZip output compression. This may or may not be viable on such a large scale because I'm pretty sure it takes some processing to compress the pages, which might create some lag. But it could be worth a try. What happens is the pages are compressed using GZip and sent the browser and they are much smaller in size. Any browsers capable of handling GZip-compressed pages (still HTML, with .php or .html extensions etc) will render the pages as normal but will have downloaded a significantly smaller amount of data.
PHP + Apache would certainly be a good way to go for security reasons, too

Reply #6 Friday, March 28, 2003 12:54 AM
Reply #7 Friday, March 28, 2003 2:24 AM
Frogboy, have you guys seen these: http://www.cenatek.com/ - Solid state ramdisks designed for what you need, I think. They can be self-powered to retain data, etc. With some redundancy you could guarantee no data loss, and have the frontline servers running about as fast as is possible, considering the whole damn thing is in RAM.
It's worth a look, anyway...I have no affiliation, BTW, just one of the bookmarks I keep as a "when I get the money" link.

Reply #8 Friday, March 28, 2003 6:25 AM

back in the begining, this site was conjoured up out of nothing in next to no time, so stardock went with what they new

Reply #9 Friday, March 28, 2003 7:35 PM
PHP is actually very easy to learn. Its syntax rules are very simple. The only think one needs to know is what functions are available to them. Functions can be found at the PHP site (php.net) so it's easy to find what you need.
Then there's JSP (Java Servlets), but I'm not sure how much faster/slow that would be than PHP or ASP. My guess would be faster, but it's definately not as easy to learn and write as PHP.
Reply #10 Friday, March 28, 2003 9:39 PM

Reply #11 Saturday, March 29, 2003 12:57 PM

Reply #12 Tuesday, April 1, 2003 8:54 AM
the way in which the asp.net is parsed and run by the server makes it not only very powerful, but also highly efficient. It does similar to the Apache thing mentioned above in that it stores pages in cache. asp.net allows for far higher simultaneous connections at lower system resource levels. PHP is in essence an old technology. asp.net software with good server load balancing can run the heaviest of sites. Switching to asp.net will also allow for less SQL calls in the way it deals with recordsets and thus lessening the demand on the SQL servers. Good luck with the site, and keep up the good work, shame the Wall's are down as that's what I came here for today.

Reply #13 Tuesday, April 1, 2003 4:51 PM
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!








Reply #1 Thursday, March 27, 2003 4:25 PM
You'll never know how much I appreciate this site. I just wish I could afford to subscribe or had artistic talent so that I could contribute in a real way.
Anyhoooo... ramble over.
Thanks!