GWAN – the fastest webserver in the world?
Tuesday, November 30th, 2010Sometimes you keep wondering, why really big companies still roll with PHP. Facebook, for instance, created a PHP to C++ Crosscompiler to allow more connections handled per server. Why not start out in C immediately?
G-WAN claims to be the fastest webserver in the world. It is not open source, and it's creator has some fantastic claims – i.e. G-WAN being 5.000.000 (that's right, 5 million) times faster than Microsoft IIS under certain circumstances.
As of now, there is a mention in Wikipedia but no full entry. Information seems to be very sparse on the Internet, most pages offering a download of the software.
Anyways, it's got some very interesting features which make it worthwile to have a look at:
-
configuration is done exclusively through folder structure (!)
-
small size, freeware
-
one threaded model vs. Apaches one thread for each connection
-
C scripts for content generation
The main downside is it being closed source. This is bad, because you are not able to review the source code for "phoning home", and if the developer decides to discontinue the product, no one else would be able to continue it.
As to the other downside claimed by some (using C instead of PHP): A reason for companies going the PHP route is the easy availability of a lot of pre-existing code libraries. You just have to build on top of this software to create your product. Sometimes it's easy to take an existing product and extend it (which is easily done having the source as it is mostly the case with PHP based software…). G-WAN could fit into the niche of delivering static content or generating images – taking the load off your PHP/ASP/… frontend step by step. And maybe some time you'll find yourself going the C route.
Here are some more links:
-
Comparison of G-WAN vs Nginx (heavily biased IMHO)
-
TrustLeap (the company behind G-WAN)
