Multiplexing fastcgi?

I am running the fastcgi application, after reading the fastCGI specification, I found a function called query multiplexing. It reminded me of Adobe RTMP multiplexing back in the days when the protocol was proprietary and closed.

As far as I understand, multiplexing allows you to reduce the overhead of creating new connections to FCGI clients, effectively interlacing pieces of requests, and at the same time allows you to connect the "keep-alive" model. Latter allows you to send multiple requests on the same connection.

The first question is - do I understand?

The next one - after some googling, I did not find a server there that implements FCGI multiplexing, I was primarily interested in the "popular" servers, I mean nginx and lighttpd. I even found some discussion about refusing FCGI request multiplexing.

So the question is, is there a server that supports this feature?

+4
source share
1 answer

I don’t know if any server implements FASTCGI multiplexing (which, I think, you understood correctly, but the details are indicated in the specifications of the FASTCTI protocol), and I would not worry.

You are likely to use FASTCGI through your existing FASTCGI library (e.g. Ocamlnet if you code in Ocaml, etc.). And this library will do multiplexing if that happens. From your point of view (this user of the library), you do not care if you yourself do not code such a library.

If FASTCGI multiplexing bothers you, you can use the SCGI protocol, which offers similar functionality but is simpler, slightly less efficient and without multiplexing.

0
source

All Articles