I am planning to build a bunch of C++ based process to provide data as HTTP rest api on the front-end. I have been trying to decide if it is better to build in the HTTP server or to use FastCGI in the C++ processes. In either case the processes will be behind some webserver like nginx. To me it seems like FastCGI is simpler and would be easier to work with then having a fully HTTP server. FastCGI would also seem fast, not that it would matter much. I see testing would be easier if the C++ processes had HTTP built in just connect directly to it for internal use, but I have not found a simple C++ HTTP server library that I like yet. I am looking any other pro or cons.
Share
I found libevent has a simple http server built in. I have been using it and am very happy. I am using Qt and had to do a little work to put a wrapper around libevent in a thread, but it works great and is very simple.