Design Considerations - C++ Server Development
<p>I want to convert my web application prototype (PHP server side) to a C++ solution. This has already been decided.
I've been on Wikipedia, Google, and SO to determine the best way to to this.</p>

<p>I've already decided on Linux and Apache (or custom server).</p>

<p>What I think I've learned is that this can be done multiple ways.  In order of the speed or efficiency you will get.</p>

<ol>
<li>Write the Server</li>
<li>Write an Apache Module</li>
<li>Write it to use Fast CGI</li>
<li>Write it to use CGI</li>
</ol>

<p>I have about 1400 lines of PHP so my web app is small.  I also know that CS courses in web typically have the students write a basic web server as lab.  Fast CGI claims to be faster than CGI as the name implies..and I've heard that a module is fastest as it has a tighter integration with Apache.  Writing your own server would probably be the fastest as it would be application specific instead of all purpose. </p>

<p>I'm trying to put together a project I can finish in under a year and keep the code base under 6000 lines or so.</p>

<p>What is the fastest way to do this that is reasonable?</p>

<p><strong>Related SO Posts</strong></p>

<ul>
<li><a href="http://stackoverflow.com/questions/6912761/how-to-use-c-for-apache-server">Compiled or Interpreted</a></li>
<li><a href="http://stackoverflow.com/questions/6618367/c-c-module-for-apache">Apache Modules</a></li>
<li><a href="http://stackoverflow.com/questions/2067814/apache-mod-c-wanted">C++ Server Hello World</a></li>
</ul>

<p><strong>C++ Web Libraries</strong></p>

<ul>
<li><a href="http://cppcms.com/wikipp/en/page/who_uses" rel="nofollow">CppCMS</a></li>
<li><a href="http://www.webtoolkit.eu/wt" rel="nofollow">Wt</a></li>
</ul>

<p><strong>Similar SO</strong></p>

<ul>
<li><a href="http://stackoverflow.com/questions/175507/c-c-web-server-library">C++ Web Library Needed</a></li>
</ul>
