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.
I've already decided on Linux and Apache (or custom server).
What I think I've learned is that this can be done multiple ways. In order of the speed or efficiency you will get.
- Write the Server
- Write an Apache Module
- Write it to use Fast CGI
- Write it to use CGI
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.
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.
What is the fastest way to do this that is reasonable?
Related SO Posts
C++ Web Libraries
Similar SO