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.

AnandTech Old vs New
The graph above depcits how many requests per second the server was handling during the load test.



AnandTech Old vs New
The graph above depicts how long the site takes (under load) to deliver the last byte to the client.

Conclusion

As you can see, the new site was a technical success for us. As always, there was feedback after the initial launch, and we addressed most of the comments. We've come a long way from the day of our first dynamic site, and have learned more in 3-4 years than some people do in their entire career. So what's next? Well, 64-bit is certainly on the horizon; we already have a 64-bit platform in production that is performing incredibly well. We'll have an article in the near future on how our quad Opteron performed in comparison to our older platform. For now, it's back to building a better AnandTech; it never ends...

AnandTech 4.0
Comments Locked

67 Comments

View All Comments

  • Phiro - Tuesday, July 27, 2004 - link

    So how are you laid out? Are your web servers clustered? Are you using App Center? Component Load Balancing? Request forwarding?
  • JasonClark - Tuesday, July 27, 2004 - link

    In regards to linux, our expertise lies in windows and it hasn't given us any grief what so ever. Windows can be stable if it is administrated properly.

    Code is as bloated as the developer makes it, experience, experience...
  • joeld - Tuesday, July 27, 2004 - link

    alfatekpt - what are the advantages of PHP/MySql over Windows and the .Net platform? I haven't researched this much, but I am under the impression that a SQL server is better than a MySQL server, and would guess that PHP/Apache would be a little faster than IIS/.NET, but that's just a guess. I know it's very easy to code on .NET, which can make your pages bloated if you are not careful - something that hardly happens with PHP.
  • alfatekpt - Tuesday, July 27, 2004 - link

    You have servers with high needs and you use Windows and .NET plataform... I don't need to be a big *nix zealot to say that is so wrong...

    You never tried PHP/MySql? You can save the money in software to hire a linux sys admin to tune your servers...
  • vda - Tuesday, July 27, 2004 - link

  • vda - Tuesday, July 27, 2004 - link

    Did you ever considered using Linux?
  • sonicDivx - Tuesday, July 27, 2004 - link

    Very Interesting. Im a ColdFusion developer so kinda bummed that you had switched. Looking at the performance numbers, I was wondering was % of improvement can be attributed to .Net and wondering did you try recoded routines in MX to do a performance comparisons ( always new ways to skin a cat).

    Just curious from an informational standpoint.

    Thx
  • ChucklesHB - Tuesday, July 27, 2004 - link

    I got turned onto Anandtech about... 2 years ago (the 3.0 version was only around a short time) and I've been a fan ever since.

    As a web developer myself, it's great to see sites that don't have an issue with showing the evolution of the technology behind the scenes. Thanks for a peek behind the curtains. ;)
  • Creig - Tuesday, July 27, 2004 - link

    It'd be nice to be able to go through the old news/forums again. Maybe they could be rehosted on a "Limited time only" basis so the oldtimers could reminisce and the newcomers could see cutting edge overclocking with a 300a Celeron that would do 450. :)
  • RZaakir - Tuesday, July 27, 2004 - link

    Cool article,

    But come on now, ASP.NET syntax is VERY different from ASP. If for no other reason than the fact that you're going from VBScript to VB and Javascript to J#/C#.

    Not to mention the other features like User/Server controls (as opposed to SSIs), Assemblies (as opposed to COM Objects), and language independence. Though ASP was a bit more flexible than many people thought on the latter.

Log in

Don't have an account? Sign up now