Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FastCGI for C++

Tags:

c++

fastcgi

I've found only two FastCGI libraries for C++. There's the "official" one, and fastcgi++. How is either one better than the other? Do any others exist?

like image 392
Gordon Avatar asked Nov 21 '09 05:11

Gordon


People also ask

When should I use FastCGI?

Why Use FastCGI Proxying? FastCGI proxying within Nginx is generally used to translate client requests for an application server that does not or should not handle client requests directly.

Is FastCGI fast?

FastCGI is a fast, open, and secure Web server interface that solves the performance problems inherent in CGI, without introducing the overhead and complexity of proprietary APIs (Application Programming Interfaces).

What is FastCGI server?

Fast Common Gateway Interface (FastCGI) is a standard protocol for interfacing external applications to Web servers. It is a feature-enhanced version of the existing standard Common Gateway Interface (CGI).

What is FastCGI module?

The FastCGI module in IIS enables popular application frameworks that support the FastCGI protocol to be hosted on the IIS Web server in a high performance and reliable way.


2 Answers

What you probably want is hidden in the contrib directory of Cgicc package.

fcgi-test.cpp is an example of how to use cgicc with FastCGI.

Path to the installed fcgi-test.cpp should be /usr/share/doc/libcgicc-doc/examples/contrib/fcgi-test.cpp

like image 106
Korusef Avatar answered Oct 05 '22 20:10

Korusef


As fastcgi++ is still listed as "Development Status: 4- Beta" so I would suggest going for the official one. It has been around for ages and has bindings for a whole host of languages. Licences between the 2 don't seem to make much difference. Put some measurements in your code and if performance is an issue then spend some time playing around with alternatives.

like image 32
Stuart Matheson Avatar answered Oct 05 '22 21:10

Stuart Matheson