Search code examples
c++nginxwebservercherokeeg-wan

C++ compatibility for lightweight web servers


I'm very new to Web server matters, and relatively a naive student of C++. I'm now working on a project where I have to create a Plugin to an existing web server. It is a commercial project for a company, but it's also my bachelor thesis project. I'm not quite sure which web server would be suitable for my project. The web server that I am looking for should handle the Network socket and present the http or https request as object,from which the plugin(That I want to develop) should read the header,url,data and translate(translating specially the SOAP and REST) it accordingly for the company's Data storage's Filesystem API and vice versa.The plugin has to be developed using C++.The server environment is Linux Cent OS 6. The normal staffs of the company has never worked with linux server environment before. Its a small company. They only worked with windows and IIS web server before. Our project manager is reluctant to use Apache because it has heavy footprint and it's slow, while IIS is not suitable for linux. So, we are looking for a free light-weight web server for linux.

I see that people talk a lot about Nginx, G-WAN, Cherokee, Lightspeed, Varnish, Tntnet etc. But I didn't really find any standarad source of judgement about the comparison of these web servers. So, please let me know, which web server would be preferable for me. Waiting for response.


Solution

  • There are several, for example lighttpd. Here is a description of how C plugins can be built for it.

    NOTE

    I want the source code of web server to be as less as possible.

    The length of the source code is not a good metric for performance and memory use of a program.