What programming language for a webserver [closed]
What s开发者_如何学Chould be the programming language chosen for web server. The only thing I'm looking for is efficiency, doesn't matter how much time will it take to develop.
I recently saw some benchmarks where results show JAVA faster. I don't know how much those benchmark programs are relevant to developing a web server.
Well, my practical experience says C++ is faster than JAVA(I'm assuming C is generally faster than C++).
Please advise,
MayankThere are many languages that can be used to write a Web server, and many languages have already been used to write webservers.
Java is used to build Apache Tomcat and the Jetty Web Server. Resin is another example of a Web server written in Java.
The Apache Web Server was written in C.
The POW Webserver was written on Mozilla's Development Platform as an extension to Firefox.
In summary, you can use any language to build a Web server, but the language of choice depends on your goals. I'm assuming if efficiency is your goal then you need something super fast. I believe C was used to build Apache for this very reason, and is why Apache serves roughly 60% of the Web sites on the Internet.
精彩评论