AnandTech: A Brief History of Time
by Jason Clark on July 26, 2004 6:52 PM EST- Posted in
- IT Computing
AnandTech 5.0
After 5 years on the ColdFusion platform, the time had come to move on to what we think is a better platform for the future of the site - Microsoft .NET. The decision to move away from ColdFusion was a tough one in some ways. ColdFusion offers a tremendous advantage over other languages, thanks to its RAD (Rapid Application Development) roots, but the trade offs were cost and stability. Cost was definitely the major factor in our decision. Our server platform is standardized on Microsoft Windows, so .NET is free for us, while ColdFusion costs us $1299 USD per server. As we continue to grow, and keep up with the newer versions, the costs rise. One could argue that we would make up for those costs with the time that ColdFusion saves the developer. However, we found that not to be the case, and we'll explain why later.We did quite a bit of testing prior to beginning development, writing a skeleton framework and load testing it and comparing the results to ColdFusion. The results were attractive with .NET definitely, offering some serious performance gains (more to follow on our benchmark results). The architecture of the new AnandTech.com site consists of a VB.NET API behind the ASP.NET user interface; the API can be exposed as a web service with the flick of a switch, if necessary. We chose VB as it is a more natural progression from ColdFusion syntax, and offers the same performance and features as C# does. VB.NET is a completely different animal than VB; although the syntax may be similar in some ways, it offers a heck of a lot more than VB ever did.
Writing the API is what took the most time, as we had to port over our back-end framework from ColdFusion into our new VB.NET API. Our first step was to write a few functions that handled some of the tedious work in writing any web application: a database class that handles all the database calls, which reduces the amount of lines of code we had to write for each call; a few list functions; and, some other little functions that ColdFusion had built in. Those functions took a few hours at most to write, and covered the main functions that we had taken for granted in ColdFusion. After those functions were written, we found that the RAD argument started to diminish, especially with the slick IDE that Microsoft offers. Visual Studio .NET is, bar none, the best IDE that we've seen. It offers a robust development environment with extensive function insight features, which really speed up the development process. If Macromedia were to develop this kind of IDE for ColdFusion, I think the differences between the two platforms would most definitely start to diminish.
The next major piece of work that we did was to transition the interface from HTML to CSS. This was a major undertaking, but once the framework was complete, the rest just fell into place. The old site was all HTML, and had a few too many tables in it. The result was a slower rendering site, and combined with the ads, it only made the situation worse. As a result, we took a 130K site down to around 45K in HTML. Needless to say, the page rendering times are night and day in comparison.
Hardware used in version 5.0
5 x Dual AMD Athlon MP 1900+ w/ 1GB Memory
So, after we were finished, how does it perform? Take a look below.
Note: These benchmarks compare the old anandtech site to the new anandtech site, not ColdFusion to .NET. There were many changes that resulted in the performance increase, the platform was just one of them.
The graph above depcits how many requests per second the server was handling during the load test.
The graph above depicts how long the site takes (under load) to deliver the last byte to the client.
67 Comments
View All Comments
STaSh - Monday, July 26, 2004 - link
Keep up the great work guys. The site is very fast, and I really enjoy these behind the scenes articles.JasonClark - Monday, July 26, 2004 - link
Thanks for the comments thus far, some answers:Jeff7181:
1) Very true regarding what you can buy for a reasonable sum of money these days. We have been running the same hardware for over 2 years now, and I don't see any changes any time soon. The Dual Athlon MP's are holding up just fine, especially with the headroom we have from the performance jump the .NET migration gave. I'd say hardware has gone ahead of load, you need less to do more for less money, if that makes sense :)
2) We are all IDE in the webservers, no need for scsi as everything is in memory after initial compilation. The DB server has only changed in space, as the databases are growing, especially the statistics database..
Jeff7181 - Monday, July 26, 2004 - link
Excellent article... I've always wondered what kind of server AnandTech was hosted on. Very interesting. I do have a couple questions though that were answered though.#1 Besides bandwidth of course, has the cost of the hardware stayed pretty much the same? I mean, $15,000 today buys A LOT more power than it did 2 years ago simply because more power is available now. With loads considered (more users now than when the site first started) is the cost pretty much the same to get hardware capable of handling the load? In other words, has the cost of the hardware grown more in line with load, or technology?
#2 How has your disk storage needs changed, what drives were used in your first server and what ones are used now?
Locutus4657 - Monday, July 26, 2004 - link
Cool, .Net is deffonetly a great platform to develope in... I've been trying to convince my boss that if we switched away from PHP/MySQL and went to .Net/Posgres (or MSSQL) all of our problems would be solved!Carlo
tfranzese - Monday, July 26, 2004 - link
Not a bad job. I can relate to .NET as I recently had to jump into it for a client at work for a web application they speced out. It definately is a different animal compared to ASP.GokieKS - Monday, July 26, 2004 - link
Been reading the site since the version 2.0 days, and this certainly brings back some memories and gives some interesting insights. Good job. =)~KS
darkswordsman17 - Monday, July 26, 2004 - link
Cool article. I'm a relatively new member and found this to be fairly interesting.Also, keep up the great work!